Team-BHP > Shifting gears > Gadgets, Computers & Software
Register New Topics New Posts Top Thanked Team-BHP FAQ


Reply
  Search this Thread
9,225 views
Old 19th April 2020, 16:40   #1
BHPian
 
turboNath's Avatar
 
Join Date: Jan 2020
Location: Kolkata
Posts: 186
Thanked: 1,566 Times
Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-cctv.jpg

What do the following devices have in common ?
-An 8-year-old Nexus 10 tablet(that runs for less than 5 minutes on a fully charged battery)
-An 8-year-old (forgotten) Creative Webcam
-A Raspberry Pi Model 3B+
-A 10Ah Ambrane Powerbank

Well it’s the fact that all of these can work in tandem to provide a state-of-the-art , round the clock surveillance system!

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-20200419_160645.jpg

The heart of the system - Raspberry Model 3B+

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-screenshot_20200419160709_gallery.jpg

Display - Nexus 10 Tablet (it was an absolute beast of a tablet)

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-screenshot_20200419160748_gallery.jpg

Creative Webcam of ancient origins - the eye of the system

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-screenshot_20200419160808_gallery.jpg

Ambrane Powerbank 10Ah - the powerplant


The backdrop:

Quarantine weekends can be excruciatingly painful for petrol-heads. Nothing is worse than having to sit and watch your beloved machines gathering dust in the garage.
But what if you could lovingly gaze at them all the time, whenever you wanted with the additional benefit of recording any suspicious activity that might go on outside your home?
Let's do it, yeah !
This prompted me to come up with a DIY: CCTV home project with recyclable components. I already had the RPi (purchased it last year for a hackathon) along with a prehistoric web-camera and an extremely competent (useless as a ‘mobile’ device) Nexus10. And the best part was that all of these components were just lying around without any specific purpose/utility.

The Setup:

Thanks to the extremely active Raspberry Pi Users Community, it was fairly easy to install the required dependencies and packages onto my Pi. Fortunately it could also recognize the Creative Webcam without the need for any additional software installations.
After performing some modifications to the configuration file, I was ready to switch it on and leave it in the ‘production’ mode!
Our letterbox has acres of space to comfortably fit a Raspberry Pi(with its plastic enclosure), a 10Ah power bank and the webcam.

The complete setup looks like this :

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-img20200419wa0004.jpg


The Webcam, R-Pi in its case and the Powerbank - Perfect fit

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-img20200419wa0000.jpg

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-screenshot_20200419160613_gallery.jpg

And the final view !

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-img20200419wa0002.jpg

Connections,power & memory requirements :

I have found the 10Ah Powerbank to be sufficient to power both the pi and the webcam for the greater part of a day (will perform full 24 hour tests from tomorrow).
The Nexus 10 is being primarily used as a real time display, connected to its native charger.
The RPi has a 32GB class 10 micro-SD card (borrowed from my Go-Pro). Right now the recording is only on if there is a motion (and it exceeds the specified threshold of changing frames).
Since the RPi is connected to my home Wi-Fi, all the devices on my home network can easily access the real time video stream through the IP of the Rpi and the port (8081).
If there’s a need to keep the recording on throughout the day, I will think of mounting my external HDD and use it as a dedicated storage.
So there goes my DIY:CCTV project !

Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi-capture.jpg

I have plenty of ideas to extend this project further like building a pet cam, running a real time video recognition feed to identify all the different species of birds that regularly show up on my bird feeder setup etc. Hope to turn them into reality someday!
Possibilities and utilities are limitless!

Last edited by turboNath : 19th April 2020 at 17:14.
turboNath is offline   (40) Thanks
Old 20th April 2020, 06:42   #2
Team-BHP Support
 
Join Date: Feb 2004
Location: Mumbai
Posts: 18,814
Thanked: 81,256 Times
re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Thread moved out from the Assembly Line. Thanks for sharing!
Aditya is online now   (3) Thanks
Old 20th April 2020, 07:16   #3
BHPian
 
deep_bang's Avatar
 
Join Date: Mar 2007
Location: Bangalore / Boise
Posts: 911
Thanked: 1,397 Times
re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Thanks. Would you mind detailing the tools used for this?
I plan to do a similar thing but use the old phones at home as wireless cameras.
deep_bang is offline   (1) Thanks
Old 20th April 2020, 13:17   #4
Senior - BHPian
 
blackwasp's Avatar
 
Join Date: Apr 2015
Location: Pune
Posts: 2,992
Thanked: 26,468 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Superb thread there turboNath. This is the best part of Raspberry Pi - it makes you come up with ideas to use the existing hardware lying around your house.

Some more ideas for you:
1. Run an automatic number plate recognition system that will alert you if some other vehicle is in your spot.
2. Use the Raspberry Pi camera module (you can get IR one) for monitoring at night / watching the bird feeders in dark.

I used to tinker a lot with it in my college day, and at one point had a media sever running off it for movies and songs stored in a HDD. At came to and end when the HDD crashed

Maybe this lockdown will get me to restart my hobby for Raspberry pi.
blackwasp is offline   (5) Thanks
Old 20th April 2020, 22:41   #5
BHPian
 
turboNath's Avatar
 
Join Date: Jan 2020
Location: Kolkata
Posts: 186
Thanked: 1,566 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Quote:
Originally Posted by deep_bang View Post
Thanks. Would you mind detailing the tools used for this?
I plan to do a similar thing but use the old phones at home as wireless cameras.
Thanks deep_bang.
For this project I used my old android tablet, R-Pi Model 3B+ (connected to my home wi-fi).However. if you want to use your phone cam, I think an app like IP cam or Droid cam will come in handy for real time video streaming.
In that you won't be needing the Raspberry Pi.

Quote:
Originally Posted by blackwasp View Post
Superb thread there turboNath. This is the best part of Raspberry Pi - it makes you come up with ideas to use the existing hardware lying around your house.

Some more ideas for you:
1. Run an automatic number plate recognition system that will alert you if some other vehicle is in your spot.
2. Use the Raspberry Pi camera module (you can get IR one) for monitoring at night / watching the bird feeders in dark.

I used to tinker a lot with it in my college day, and at one point had a media sever running off it for movies and songs stored in a HDD. At came to and end when the HDD crashed

Maybe this lockdown will get me to restart my hobby for Raspberry pi.
Thanks for the great ideas blackwasp.
R-Pi is really a magician that fits in your pocket !
Using the Infra Pi-Cam for night time monitoring is a reallt great idea. I will order it post the lockdown.
I have also made some plans to use it as a tool for enabling precision farming real soon but time is a major constraint and that project seems distant.
turboNath is offline   (2) Thanks
Old 21st April 2020, 05:34   #6
Senior - BHPian
 
sandeepmohan's Avatar
 
Join Date: Feb 2010
Location: Wellington
Posts: 3,201
Thanked: 5,742 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Thanks for sharing. I have yet to fiddle with a Rasberry Pi. Seems like there are lots of use cases while keeping it budget friendly.

I don't have a lot of electronics lying around. For the time being, I have taken out the dash board camera from my car and mounted it on my bedroom window, looking out to the common area of the house. A 1 ampere Belkin phone charger feeds it power. A 128gb micro sd card is plenty for loop recording.
sandeepmohan is offline   (3) Thanks
Old 21st April 2020, 20:07   #7
BHPian
 
turboNath's Avatar
 
Join Date: Jan 2020
Location: Kolkata
Posts: 186
Thanked: 1,566 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Quote:
Originally Posted by sandeepmohan View Post
Thanks for sharing. I have yet to fiddle with a Rasberry Pi. Seems like there are lots of use cases while keeping it budget friendly.

I don't have a lot of electronics lying around. For the time being, I have taken out the dash board camera from my car and mounted it on my bedroom window, looking out to the common area of the house. A 1 ampere Belkin phone charger feeds it power. A 128gb micro sd card is plenty for loop recording.

Thanks Sandeep ! You have put your dashcam to good use!
As for the Pi, you can easily get a good board(or should I call it a 'PC' !)
under 4k(model 3B is cheaper at around 3k) and it can also function as your secondary PC(if you ever need one). Since it runs on Debian, it's really fast and clutter free unlike Windows !
turboNath is offline   (1) Thanks
Old 20th May 2020, 20:15   #8
BHPian
 
chiro3110's Avatar
 
Join Date: Mar 2015
Location: Asansol
Posts: 38
Thanked: 444 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Quote:
Originally Posted by turboNath View Post
I have plenty of ideas to extend this project further like building a pet cam, running a real time video recognition feed to identify all the different species of birds that regularly show up on my bird feeder setup etc. Hope to turn them into reality someday! Possibilities and utilities are limitless!
This is a fantastic idea and neatly done project!

But nitpicking a bit, what are your plans for the power delivery? The usage of the power bank won't be viable much once you start getting busy and may forget to switch it with a charged one. One idea could be to house the R-Pi connected to a wall outlet inside the house and using a USB-Cat5 extender (like this) to connect the webcam. This can be a cheaper and easy to implement option. Also curious on one thing, is the R-Pi powerful enough to run a video recognition program?
chiro3110 is offline   (1) Thanks
Old 23rd May 2020, 12:37   #9
BHPian
 
turboNath's Avatar
 
Join Date: Jan 2020
Location: Kolkata
Posts: 186
Thanked: 1,566 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

Quote:
Originally Posted by chiro3110 View Post
This is a fantastic idea and neatly done project!

But nitpicking a bit, what are your plans for the power delivery? The usage of the power bank won't be viable much once you start getting busy and may forget to switch it with a charged one. One idea could be to house the R-Pi connected to a wall outlet inside the house and using a USB-Cat5 extender (like this) to connect the webcam. This can be a cheaper and easy to implement option. Also curious on one thing, is the R-Pi powerful enough to run a video recognition program?
Thanks chiro3110 !
For now two power banks (each with 10000mAh capacity) are helping me run it 24X7. There's a power socket nearby inside our toolshed but that currently runs the pump. So I might need to add another three pin socket and hookup the pi with it for continuous power supply.
Your suggested USB-Cat5 will surely come in handy during that time ! Thanks !

Yes, R-Pi can aid several video recognition projects. You can easily install Open CV 4 on your pi and then the possibilities are limitless !
turboNath is offline   (1) Thanks
Old 29th June 2020, 00:08   #10
Newbie
 
Join Date: Jan 2016
Location: Assam
Posts: 20
Thanked: 46 Times
Re: Quarantine DIY: 24x7 Surveillance System for your Garage with Raspberry-Pi

That's a good hobby project.

But, do you plan to make that a permanent fixture? I hate to put a red flag here. This set up of yours wouldn't work long-term.

1. The webcam isn't rated for external duty. The humidity, UV rays, dust grime would kill it, i.e, unless your local postman, courier guy don't pinch it earlier. There's a reason why instruments are IP rated. It's antiquated yes, but still could be put to better use.

2. Your beautiful RPi would be dead too in a few months time housed in that environmentally exposed letter box.

3. Besides, economically it doesn't make sense. An RPi 3 B+, with a case, MicroSD and charger would cost you anywhere between 4-4.5K. 800 more if you are using a good quality power bank. So, in all around 6-6.5K, and where the MicroSD would give up the ghost in a few months time, if set to 24X7 high throughput read-write mode. They still on HDDs on DVRs for this very reason.

Decent 4 channel DVRs cost between 2-3K. 500 for a decent non HD camera. 3.5-4K for a CCTV HDD, and you have a secure reliable working solution, that would serve you years, hasslefree. And if you are really keen on having more control and playing around, you can explore DVRs with flashable firmwares, Linux based.

You can do so much more and better with an RPi.
ElonSkum is offline   (1) Thanks
Reply

Most Viewed


Copyright ©2000 - 2024, Team-BHP.com
Proudly powered by E2E Networks