DIY Raspberry Pi Indoor Outdoor Webcam

19,929

316

39

About: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths caused by my projects.

Intro: DIY Raspberry Pi Indoor Outdoor Webcam

Ever want to monitor your home but don't want to buy a $100 1080p webcam? Or just wanted to build your own, well that is exactly what will happen in this instructable!

To begin your going to need the following parts:

Pi Camera: https://goo.gl/uzoLxo

Pi Zero W: https://goo.gl/49FyvW

Cable Adapter: https://goo.gl/49FyvW

Waterproof DC Jack: https://goo.gl/2vUC9p

Housing: https://goo.gl/49FyvWCamera

5v 2A DC Power Supply

and the following tools:

Soldering Iron

Drill

Screw Driver

Step 1: Download and Flash Rasbian Jessie Lite

Visit https://goo.gl/KJcV7F to download the zip file, then extract it to flash with win32 disk imager which can be found here: https://goo.gl/VgGrNm.

Step 2: Make the SD Card Headless

In the boot partition, the one you see on windows, add a file named wpa_supplicant.conf and edit it in notepad. Copy and past the code below, and edit the ssid and password variables.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="SSID"

psk="PASSWORD" }

Then add a blank ssh.txt file to turn on ssh.

Step 3: Connect to the Pi Via SSH

I used Fing to scan my network to find the Raspberry Pi, then used Putty (https://goo.gl/d7nFtq) to connect via SSH

Step 4: Setup the PiCam

This is easy, copy the commands below into the terminal, it should do everything it self right now!

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git
git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git
cd RPi_Cam_Web_Interface 
./install.sh

Step 5: Setup PiCam

The subfolder field is the field that you get to the camera from (EX: 192.168.1.12/camera), this can be anything you want. Everything else is ready to go!

Were not going to reboot yet because we still need to turn the camera on, so select "NO" when it asks.

Step 6: Turn on the Camera

Were now going to turn on the camera. Run raspi-config

sudo raspi-config

then select interfacing options, then camera. A message will pop-up saying "would you like to turn the camera on" select yes, then yes again when it asks to reboot.

Step 7: Focus the Camera

Crewmen the lens until it is perfect, it should be focused no matter what distance an object is from it. The live video feed has no lag so it is really easy.

Step 8: Put Everything in the Box

solder the wires by following the image i have provided. I would recommend checking the dc jack polarity before connecting but 5v 'normally goes to the shorter pin', and GND 'normally goes to the longer pin'. Use hot glue to hold everything in place, in case you want to remove it later, be sure not to set any glue in the connectors. I used some standoffs to hold the camera into place, it works but remember they probably are not the strongest things so be gentle with it.

Step 9: Your Done!

Make sure to check out my YouTube video, it shows it in action! If you have any questions leave them in the comments.

I hope you liked the project, I have found it to be really useful let me know what you plan to do with it!

Also be sure to become part of my social community:)

Facebook: https://goo.gl/bzoDKz

Instagram: https://goo.gl/Z3XkdF

Youtube: https://goo.gl/RRSRwW

FunguyPro: https://goo.gl/7QxRG3

Se ya next time :)

Share

Recommendations

  • Tiny Home Contest

    Tiny Home Contest
  • Fix It! Contest

    Fix It! Contest
  • Metalworking Contest

    Metalworking Contest

39 Discussions

0
None
Solent Phil

6 hours ago

Have you had any issues with heat? My supplier of the camera mentions in their description, that the IR lights generate quite a bit.

0
None
merpenbeck

3 months ago

This is a fantastic instructable! I've already ordered 95% of the materials and I am excited. Could you please tell me where to get the "5v 2A DC Power Supply", in looking at https://goo.gl/2vUC9p, I'm assuming it's not a standard raspberry pi zero w connector. Also, where did you get the extender posts that you glued to the camera? I apologize if I missed any of this in the material.

The video was also great. Very creative. It's very clean and professional the way that you glue all the items. One note, `git` is pronounced as a strong g rather than a j sound. https://dictionary.cambridge.org/us/pronunciation/... Just an FYI, it didn't detract from the video.

Once again, thanks for all the hard work on this instructable and video, I'm already starting my project.

0
None
DannyM62

5 months ago

Great project, I want to make one. Just a quick question, do you have any problem with a reflection from the IR leds on the camera?

0
None
dpcons

Question 7 months ago on Step 9

Nice Instructable!
How hot do the internals get with those IR emitters blasting away all the time. Did you vent the box??

0
None
FredF20

1 year ago

Very nice project;

I enjoyed this project, and managed to get my camera working; however it was not as easy as the author seem to make it. (At least for me)

let me list the issues I had.

1) when I tried to download the camera file, using git; it bombed out about halfway through the download. I had to download the file on my PC, then FileZilla the unzipped file to the pi zero.

2) in order to run the ./install.sh file I had to make it executable:

sudo chmod +x install.sh

then to run the file I had to run it as super user:

sudo ./install.sh

I did not see the author run it that way. I tried without the super viewer prefix, but it said permission denied!

3) I did not realize the pi camera requires a special ribbon cable to connect to the pi zero. Perhaps I missed that in the write up

Please believe, these are not criticisms; these items are the issues I had making my project work. This was a very well composed project description. Congratulations to the author.

Fred

1)

1 reply
0
None
nuckleboneFunguypro

Reply 1 year ago

Mmm...they're not. I was talking about the links in the parts list. Which the poster just above also didn't see.

Would be helpful for noobs like us that didn't know a special cable was required for the pi zero.

:)

0
None
Funguypronucklebone

Reply 1 year ago

The part list includes everything you need for the project, it included the Pi Cable which was the Camera to Pi Adapter Wire. Hope that helps. ;)

0
None
miguipda1

1 year ago

Hi,

could please complete this tutorial with a solar power bank ?

I means how many mAh must be used for a solar power bank to be sure :

1) it may power this camera and

2) have enough power for each day

Sincerely thanks

4 replies
0
None
Melantechmiguipda1

Reply 1 year ago

Great little thing you made here! Thank you for sharing with us.

Said that, miguipda1 here beat me. That is my very same question. Have you measured the power draw? I intend to put one of these on a rural isolated area so no power cord nearby.

Thank you!

0
None
FunguyproMelantech

Reply 1 year ago

Hi, yes I just did it seems to stay around 5v 800mA but varies ±500mA. I hope that helps.

0
None
Funguypromiguipda1

Reply 1 year ago

Hello, I would recommend reading this article http://www.voltaicsystems.com/blog/powering-a-raspberry-pi-from-solar-power/