book collections email follower instructable user
Picture of DIY Professional Open Source Night Vision Security Camera

In this new tutorial, we will together make our Raspberry Pi open source video surveillance camera.
Yes, we are talking here about a real open source outdoor surveillance camera, capable of night vision and motion detection, all connected to our Jeedom domotic solution.

Now let's have fun. ^^

Step 1: Equipments

In order to launch this project, we will need:

  • Raspberry Pi 3B + (important)
  • 32 GB SD card
  • Cooling kit
  • USB IR camera or raspicam
  • PVC pipe diam. 63 mm, length 20 cm
  • Sleeve and trapdoor diam. 63 mm
  • Poe injector (12/24/48V DC power source)
  • DC/DC converter
  • Camera mounting arm
  • Waterproof PG13 mouthpiece
  • Anti-humidity bags
  • Spay paint
  • Files
  • PVC glue

Total cost around 100€, maybe less if you have already some parts at home. Of course, the Raspberry PI and USB camera are the most expensive things in the list.

DannyM628 months ago
Do you have any problem with reflection from the IR leds back from the lens?
Blackir (author)  DannyM628 months ago
At first yes, but then I cut an aperture for the lens in the plexiglass circle. And since the quality is perfect and without reflection. You can judge on the screenshots of motioneyeos and jeedom.
If anyone has a solution without cutting an opening in the plexiglass circle I am curious. I have a second camera under construction that could do beta test.
Could you share any more about the LEDs that you used in this project.
Blackir (author)  DIY Hacks and How Tos8 months ago
The LED set is supplied with the USB camera and triggers automatically, no adjustment possible.
I added a link in the article.
https://www.aliexpress.com/item/2018-ELP-5mp-2592-...

Patjgibbons8 months ago
Please provide more information on the USB camera
Blackir (author)  Patjgibbons8 months ago
dreisn8 months ago
When you refer to 63 cm (everywhere) don't you mean 63 mm?
How about the 20 cm pipe?
Thanks for the post.
Blackir (author)  dreisn8 months ago
Yes you are right PVC pipe diameter 63 mm length 20 cm. I correct the article. thanks
sam_cat8 months ago
63cm diameter.... You could stuff a whole laptop in there!
I think you mean 63mm.

Blackir (author)  sam_cat8 months ago
Thanks, I correct the mistake. You are right 63 mm diameter.
SeanB268 months ago
I was wondering how this would work in the winter time here in Canada. -30C is not uncommon.
Blackir (author)  SeanB268 months ago
This is a very good question, I am happy to answer you, I found an answer on the site of raspberry. https://www.raspberrypi.org/documentation/faqs/

"The Raspberry Pi is built from commercial chips which are qualified to
different temperature ranges; the LAN9514 (LAN9512 on older models with 2
USB ports) is specified by the manufacturers as being qualified from
0°C to 70°C, while the SoC is qualified from -40°C to 85°C. You may well
find that the board will work outside those temperatures, but we're not
qualifying the board itself to these extremes."

What fear me the most is moisture, IT's why I put moisture bags inside the pipe.
auto131428288 months ago
What is the total parts cost?
Blackir (author)  auto131428288 months ago
I made my estimates and I added that in the tutorial, I get around 100 €. It may be less expensive if you, for example, get a pipe fall at the hardware store. Bomb paint at the discount store. And the camera on a Chinese site, mine comes from below and I'm very happy with the quality.
Okay, so in summary of everyone else's questions plus my own. What was the total cost of the parts? Do you have any reflection from the IR LED's? What camera are you using as well as link to that?
Blackir (author)  AlexTheLion20158 months ago
I made my estimates and I added that in the tutorial, I get around 100 €. Regarding the reflection, I had at first, but by cutting a circle in the center of the plastic circle to pass the lens I can not get any more. The Jeedom screenshot shows you the result I get in complete darkness with active IR.
And I found my camera here : https://www.aliexpress.com/item/2018-ELP-5mp-2592-...

AndrewA1678 months ago
Not the author, but I quickly looked things up on Ebay (all prices are approximate and in USD):

Camera - $40 - $50.00
RasPi - $40.00
Voltage Converter - $3.00

Figure another $10 - $15.00 USD for the PVC pipe and fittings (and that's probably high), and the software being free; you're looking at a total cost of around $100.00 USD.

You might be able to find the camera module cheaper on AliExpress or other retailers like that; you could also substitute in a different module, or one that connects up to the Pi's camera connector (though you wouldn't get the IR capability - you'd have to come up with a different solution for that). You might be able to bring the cost down to $70.00 USD total with some careful shopping.

I've built a MotionEyeOS camera using parts off Amazon - a CanaKit Pi Zero W and a SainSmart camera module - for about $40.00. The Pi Zero kit comes with a case for mounting the Pi and camera in, and you can power the module off USB (via the kit's 5V power supply or otherwise). WiFi connect to the network. I have mine set up - just with MotionEyeOS - to email me pictures to a gmail account when triggered. Works very well. Doesn't have IR, though. But really inexpensive (AFAIK the cheapest and smallest Wireless IP camera you can purchase).

For a mount I added a 1/4-20 nut to the backside with epoxy, then standard hardware to attach to things (the 1/4-20 is standard photography nut size - so you can mount it on a regular tripod if you wanted, or any other similar standard mount).
Blackir (author)  AndrewA1678 months ago
Super comment. I did the same calculation on my side, I arrive at the same estimates. Indeed the camera module on a Chinese dealer is less expensive. I put the link in the article where i found mine and the quality is top.
tytower8 months ago
I guess you enjoy doing it yourself. When you want a better solution look up Fredi cam .
It will do all that and better and tell you anywhere in the world to boot.for $30AUD or about $20 USD