IoT: DIY cloud security camera

Cloud Security Camera

Cloud Camera Kit is available at Rs 10000 (USD 150), write to us at info[at] to get one.

If you are a tech enthusiast and wish to get your hands dirty by building your own functional DIY raspberry pi security camera with programmable and extendable AI functions, then this kit is for you.   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 customise 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


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

For more information do get in touch.

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 pins 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[/caption]

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[/caption]


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 customize 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  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, Email for image. 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. Check FAQs for setup instructions.

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 For more information do get in touch.