DIY Raspberry Pi Security CameraIbeyonde
DIY Raspberry Pi Security Camera
If you are a tech enthusiast and wish to get your hands dirty by building your own functional DIY raspberry pi security camera with access to cloud AI, then continue reading. Raspberry Pi is a tiny powerhouse that can be made into any IoT project. We will build a DIY security camera that will rival many commercial offerings.
While building the raspberry pi security camera, you will learn more about manipulating various video format like H264 to Mp4, streaming it to web and peer devices. You can add cloud AI to your camera using cloud connect. The AI will let you recognise up-to 400 different types of objects and optionally alert you on detection. It is free for nominal usage that should suffice for most of the general home usage. You will get PIR motion sensor for motion detection and, recording and saving motion data. Also comes bundled is DHT11/DHT22 temperature and humidity sensor to keep track of the weather in real-time. With cloud connect, these are displayed as 24 hours humidity and temperature graphs.
All the components to build your own DIY cloud security camera are available on this website. Off course, you are free to modify given code to modify the functionality for the cloud camera. You can customize it to use it as a baby monitor or for keeping an eye on an elderly patient. Let’s start with the listing of components that you will need with respective pricing. You can visit the online shop to order these components.
Components of the DIY Raspberry Pi Security Camera
|9||The metallic camera stand with 2 degrees of rotation. This will let you fix the camera on the wall as well as table top.|
|1||A headless Raspberry Pi Model A+. This device can operate without the need for external monitor or ethernet cable. All you need is a mobile phone and wifi to connect to it... read more||This includes Raspberry Pi Model A+, Mini Wifi Dongle and 8GB SD Card.|
|2||Sensor Hat with Pi Camera. This module attaches to your raspberry pi to provide camera, motion sensing and temperature and humidity sensing capabilities to your raspberry pi.||Items included on the PCB are 1. 5MP camera, 2. DHT22 temperature and humidity sensor, PIR motion sensor and a reset button.|
|3||Camera housing. A hard plastic shell that will fit your Raspberry Pi A+ model based cloud camera.||A moulded strong black coloured shell for the assembled Pi Camera. This fits only the A+ model of Raspberry pi.|
|4||Raspberry Pi Image that enables headless operation and converts the assembly into a cloud camera. download||Free download.|
|5||Cloud connect, that enables your sensor data to be accessed in real time from browser on any device.|
Mobile apps for ios and android can also be downloaded to access your cloud connected device.
|Cloud access is free for first 3 months. You don;t need to do port forwarding.|
|6||Micro SD Card Reader|
|7||Micro SD Card|
|8||A standard 5V 2Amp Raspberry Pi Adapter.|
You will have access to cloud AI, temperature and humidity graphs, data usage reports and much more!
Follow the following steps to assemble a cloud camera:
|Attach the flex camera cable that is coming out of sensor hat camera module to the raspberry pi camera connector. The cable slots into the connector situated between the Ethernet and HDMI ports.|
|Connect the sensor hat 40 pins female socket and seat it on top of raspberry pi 40 mins male connector.
Align as shown in this picture.
Don’t push it too hard!
|Next, take out the set of screws and spacers.
Place the spacers to maintain a safe distance between the raspberry pi and the sensor. Add all four screws so that the unit is secured.
|Take out the camera cover. Unscrew the bottom bolts that you have screwed on while testing. You don’t need these as the shell contains the female nut. Carefully place the assembly into the plastic cover and tighten the screws. Later you can attach the stand to the assembly.|
The camera on first boot expands the file system. Once it is booted, it will present itself as a hotspot. You can configure and play with your camera by connecting to the hotspot. The ssh is also enabled, and you can connect to the ssh port, and you have access to the Debian bash shell. This way, you can play around with the given functionality and further customise it as per your needs. What a great way to learn to tinker with Linux, python, FFmpeg, gpios, streaming, motion detection, video streaming in IP mode, video streaming in cloud mode, the difference between mjpeg and mp4 etc.!
Create a cloud account at http://app.ibeyonde.com. The username and password are case sensitive. These will be required to Cloud Connect your DIY Raspberry Pi Cloud Security Camera.
Prepare the sd card. You need to download the image from the link here. Copy the downloaded image to your sd-card. Use any of the methods prescribed here for your os:
Attach and switch on the power supply. The device will now advertise itself as a hotspot that is visible on the wifi list on your mobile or laptop. You need to connect to this to configure the device. Instructions are here.
If you followed the above steps, then you will have a working DIY Raspberry Pi Security Camera that should give you a low latency video feed to all the major browsers on all major devices (smartphones, tablets, and laptop). You can now add more DIY raspberry pi security cameras to your account to create a grid of such devices that can all be viewed and controlled from your own cloud account.