DIY Raspberry Pi Security Camera

Ibeyonde Cloud Camera

DIY Raspberry Pi Security Camera

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

 DescriptionImage/DescriptionComments
9The metallic camera stand with 2 degrees of rotation. This will let you fix the camera on the wall as well as table top.
Cloud camera metallic stand

Cloud camera metallic stand

1A 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
Raspberry Pi A+ With Wifi Dongle and SD-card

Raspberry Pi A+ With Wifi Dongle and SD-card

This includes Raspberry Pi Model A+, Mini Wifi Dongle and 8GB SD Card.
2Sensor 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.
Sensor Hat With Camera

Sensor Hat With Camera

Items included on the PCB are 1. 5MP camera, 2. DHT22 temperature and humidity sensor, PIR motion sensor and a reset button.
3Camera housing. A hard plastic shell that will fit your Raspberry Pi A+ model based cloud camera.
Cloud Camera Hard Shell

Cloud Camera Hard Shell

A moulded strong black coloured shell for the assembled Pi Camera. This fits only the A+ model of Raspberry pi.
4Raspberry Pi Image that enables headless operation and converts the assembly into a cloud camera. download
Raspberry Pi Debian Jessie image with Ibeyonde software

Raspberry Pi Debian Jessie image with Ibeyonde software

Free download.
5Cloud 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.
6Micro SD Card Reader
Mirco SD-Card Reader

Mirco SD-Card Reader

7Micro SD Card
Micro SD Card Representational Image

Micro SD Card Representational Image

8A standard 5V 2Amp Raspberry Pi Adapter.

 

You will have access to cloud AI, temperature and humidity graphs, data usage reports and much more!

Assembling components

Follow the following steps to assemble a cloud camera:

Step 1
Raspberry Pi Sensor Hat with PiCamera

Raspberry Pi Sensor Hat with PiCamera

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.

 

Step 2
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!

Sensor Hat positioned on top of Raspberry Pi Model A+

Sensor Hat positioned on top of Raspberry Pi Model A+

Set of spacers and screws to secure your assembly

Set of spacers and screws to secure your assembly

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.

 

Step 3
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.
Sensor Hat and Raspberry Pi assembly positioned inside the shell

Sensor Hat and Raspberry Pi assembly positioned inside the shell

 

Step 4

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.

 

Step 5

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.

Cloud Connect

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.

 

A sample screenshot of how the live streaming from diy cloud security camera

A sample screenshot of how live streaming(MJPG/MP4) from the DIY cloud security camera

 

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *


You've just added this product to the cart: