Introduction: 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/49FyvWCamera

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

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 :)

Comments

author
Konrad-der-Rote (author)2017-08-09

What does this mean: "Crewmen the lens"?

author

Whoop's, typo. I ment screw in the lense. Sorry

author
miguipda1 (author)2017-08-08

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

author
Melantech (author)miguipda12017-08-09

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!

author
Funguypro (author)Melantech2017-08-09

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

author
Melantech (author)Funguypro2017-08-09

It will indeed. Thank you again.

author
Funguypro (author)miguipda12017-08-09

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

author
boy2man (author)2017-08-08

It's great campaign! Can you tell me can I use this camera like a webcam when I connect it with PC?

author
Funguypro (author)boy2man2017-08-08

Hello, unfortunately the webcam only works with raspberry pi board's

author
timeman2 (author)2017-08-08

Great 'ible! In the picture, you show a solar battery bank. Can you provide a link as to where you got the item? Thanks again for this useful instructable!

author
Funguypro (author)timeman22017-08-08

Hi, they no longer sell the exact same one but this one is identical in the specs, it just looks different http://amzn.to/2vBReAi

author
timeman2 (author)Funguypro2017-08-08

Thank you so much for your timely answer! I have ordered all but that and the camera.

author
Southerner (author)2017-08-08

I am trying to print the pdf but am unable to print pages 7 and 8. Even in the Adobe (Pro) it starts the picture in step 7 and then shows items 1 through 62 as undefined. Again this is either printing or viewing in the pdf.

author
Funguypro (author)Southerner2017-08-08

Hi, I'm sorry about this but unfortunately there is nothing I can do, I would recommend contacting instructables support to solve the issue. Good luck.

author
JofejemaP (author)2017-08-08

Hi, and thanks, I really want to make this one.

Q. do you know if the pi3 camera works on the pizero W?

Also, here is another link to a pi zero W vendor :https://goo.gl/mfv9DW

jmp

author
Funguypro (author)JofejemaP2017-08-08

Yes all pi cameras are compatible but you will need a cable adapter as mentioned

author
wmrhoward (author)2017-08-08

As a very old newbie, and living in the Mac world- how difficult will it be to find Mac equivalents to the referenced Windows tools? Thanks

author
not_a_droid (author)wmrhoward2017-08-08

Use etcher to write the image to the SD card, http://etcher.io (Windows users could use that too). The Pi foundation have a page on how to use etcher…

https://www.raspberrypi.org/blog/magpi-video-tutor...

ssh is accessed via Terminal, which is built in on OS X. I can't see anything else that is required.

author
Funguypro (author)wmrhoward2017-08-08

It's really easy, in fact most of the tool are either for Mac or windows or they are or preinstalled on Mac.

author
greygeek (author)2017-08-07

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

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

links appear to be broken - both resolve to:

Google URL Shortener URL Shortener

404: Page not found – the page https://goo.gl/49FyvWCamera does not exist.

If you typed in or copied/pasted this URL, make sure you included all the characters, with no extra punctuation.

author
Southerner (author)greygeek2017-08-08

Remove the word at the end of the URL so

https://goo.gl/49FyvWCamera becomes

https://goo.gl/49FyvW

Same thing for the weatherproof enclosure url. Then the links will work.

author
Funguypro (author)greygeek2017-08-07

Hi sorry, try https://goo.gl/49FyvW. Alternatively, Both direct you to adafruit if you want to just search

author
AlexandreS15 (author)2017-08-08

One can always use motioneyeos - it gives you some nice capabilities, like motion detection and time schedule

author
Funguypro (author)AlexandreS152017-08-08

Hello, I haven't fooled around with that one but I know this one does both also.

author
kooth (author)2017-08-07

Very nice instructable! You could have spoken a little slower; however, that is my only critique. This is well-thought-out, and well filmed! Thanks for posting!

author
Funguypro (author)kooth2017-08-07

Thank you, and I'll slow down my talking

About This Instructable

12,252views

262favorites

License:

Bio: 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 ... More »
More by Funguypro:3D Print Your House!!!!!DIY Raspberry Pi Indoor Outdoor WebcamSee Through Buildings With a Drone
Add instructable to: