Introduction: DIY Raspberry Pi Indoor Outdoor Webcam

Picture of 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:

Pi Zero W:

Cable Adapter:

Waterproof DC Jack:


5v 2A DC Power Supply

and the following tools:

Soldering Iron


Screw Driver

Step 1: Download and Flash Rasbian Jessie Lite

Picture of Download and Flash Rasbian Jessie Lite

Visit to download the zip file, then extract it to flash with win32 disk imager which can be found here:

Step 2: Make the SD Card Headless

Picture of 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


psk="PASSWORD" }

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

Step 3: Connect to the Pi Via SSH

Picture of Connect to the Pi Via SSH

I used Fing to scan my network to find the Raspberry Pi, then used Putty ( to connect via SSH

Step 4: Setup the PiCam

Picture of 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
cd RPi_Cam_Web_Interface 

Step 5: Setup PiCam

Picture of Setup PiCam

The subfolder field is the field that you get to the camera from (EX:, 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

Picture of 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

Picture of 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

Picture of 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!

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





Se ya next time :)


ahmadwahid (author)2017-11-23

hi , i got problem when i type this code "git clone

I Can't clone it to my raspberry pi 3

Funguypro (author)ahmadwahid2017-11-24

Have you installed git

nucklebone made it! (author)2017-08-29

Has anyone tried this project in a dark/no light setting? I notice it get's pretty hot with the night vision feature. Just wondering if the case gets excessively hot.

Funguypro (author)nucklebone2017-08-30

P.S, thanks for sharing it means a lot to see other people built it. Thanks

Funguypro (author)nucklebone2017-08-30

Hi, I have ran it overnight and it seemed to not overheat, You may want to add a heat-sink though and try to keep it out of the sun if you can, cheers!

FredF20 (author)2017-08-28

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 ./ file I had to make it executable:

sudo chmod +x

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

sudo ./

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.



Funguypro (author)FredF202017-08-30

Thanks for sharing!

nucklebone (author)2017-08-25

Any chance you'll fix your links?

Funguypro (author)nucklebone2017-08-26

Hello, they should be fixed

nucklebone (author)Funguypro2017-08-29

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.


Funguypro (author)nucklebone2017-08-30

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. ;)

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

What does this mean: "Crewmen the lens"?

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

That is a truly excellent typo.

miguipda1 (author)2017-08-08


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

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!

Funguypro (author)Melantech2017-08-09

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

Melantech (author)Funguypro2017-08-09

It will indeed. Thank you again.

Funguypro (author)miguipda12017-08-09

Hello, I would recommend reading this article

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?

Funguypro (author)boy2man2017-08-08

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

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!

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

timeman2 (author)Funguypro2017-08-08

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

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.

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.

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 :


Funguypro (author)JofejemaP2017-08-08

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

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

not_a_droid (author)wmrhoward2017-08-08

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

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

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.

greygeek (author)2017-08-07

Pi Zero W:

Cable Adapter:

links appear to be broken - both resolve to:

Google URL Shortener URL Shortener

404: Page not found – the page does not exist.

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

Southerner (author)greygeek2017-08-08

Remove the word at the end of the URL so becomes

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

Funguypro (author)greygeek2017-08-07

Hi sorry, try Alternatively, Both direct you to adafruit if you want to just search

AlexandreS15 (author)2017-08-08

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

Funguypro (author)AlexandreS152017-08-08

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

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!

Funguypro (author)kooth2017-08-07

Thank you, and I'll slow down my talking

About This Instructable




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: