Intro: Low Cost Raspberry Pi Based HD Surveillance Camera
In this project I'm going to tell you about how to make a raspberry pi based low cost surveillance camera. This is really great thing, as you can installed this in your home or maybe in your office. So whenever any intruder will come you can identify him, as you can access this from anywhere in the world using any web browser even in your smartphone.
Step 1: Software Used
a) Raspbian OS:
This is the recommended os for raspberry pi. You can also installed other OS from third party. Raspbian OS is debian based OS. We can install it from noobs installer. you can Download here
b) Python idle: This is the software we get in raspbian os. For this project we have used python script.
c) Putty: we are using putty for remote access of Raspberry Pi.you can Download here
d) Win32DiskImager: This software is used to burn Raspbian Os on SD Card. you can Download here
e) SDFormatter: This software is used to format memory card. you can Download here
Step 2: Component Used
1) Raspberry Pi
2) Raspberry Pi Camera
3) Power Supply
Raspberry Pi: This is the latest version of raspberry pi. In this we have inbuilt Bluetooth and wi-fi, unlike previously we have to use Wi-Fi dongle in one of its usb port. There are total 40 pins in RPI3. Of the 40 pins, 26 are GPIO pins and the others are power or ground pins (plus two ID EEPROM pins.) There are 4 USB Port and 1 Ethernet slot, one HDMI port, 1 audio output port and 1 micro usb port and also many other things you can see the diagram on right side. And also we have one micro sd card slot wherein we have to installed the recommended Operating system on micro sd card. There are two ways to interact with your raspberry pi. Either you can interact directly through HDMI port by connecting HDMI to VGA cable, and keyboard and mouse or else you can interact from any system through SSH.
2. Raspberry Pi Camera:
The Raspberry Pi camera module can be used to take high-definition video, as well as stills photographs. It’s easy to use for beginners, but has plenty to offer advanced users if you’re looking to expand your knowledge. There are lots of examples online of people using it for time-lapse, slow-motion and other video cleverness. You can also use the libraries we bundle with the camera to create effects.
Step 3: Working of Project
First you need to update and upgrade your raspberry pi by giving commands
sudo apt-get update
sudo apt-get upgrade
After successful upgrade of your raspberry pi you need to clone one github repo on your terminal. Here are the commands:
chmod u+x *.sh
After successful installation of this you need to open your favourite browser, and type the IP address of your raspberry pi, and then here you will get one html folder so click on that, here you will get the live video streaming of your raspberry pi within the local area network. So for the local area you can install this setup in your office and you will get the real time video streaming of your office.
Now the question is how to make this setup publicly accessible, So for that you can do port forwarding in your router and by giving the public IP of your network and with forwarded port in your browser you can get the same result, But there are some third party options as well.
Step 4: How to Use Ngrok
So you can use ngrok, ngrok is a tool which makes secure tunnels to localhost. There are some other options as well for that, one of that is pagekite, But pagekite free version is for 30 days. The advantage of pagekite is that you can give your pagekite name unlike ngrok where you will get some random alphanumeric, but any how you can chose anyone, here in this case we have chosen ngrok
Download ngrok and unzip that by giving command
$ unzip /path/to/ngrok.zip
now run ngrok by giving
./ngrok http 80
After giving this command you will see your localhost 80 port is forwarded to some rendom url
Now just paste that URL then click on http you can see the live streaming from any network, here in this case you will get some latency, as you are tunnelling your localhost, but that is minute and you will get the visuals of your live streaming.
you can learn more about ngrok here
Step 5: Video of the Project
Here you can watch it out in action of this project,
Congratulations you have successfully finished your project
If you have any doubt regarding this project feel free to comment us below or you can mail us on email@example.com.
And if you want to learn more about these type of project then feel free to visit our youtube channel.
Thanks & Regards,