This project aims to create a cheap and robust security system which can be configured through the web and can provide detailed reports of the activities.
Security is a great concern in today's world and security of home is of utmost importance. We can utilize the power and convenience of Raspberry Pi and cheap PIR Motion sensor to create an exhaustive security system which is configurable through the web and detailed reporting is available through azure.
The system works as follows:
Whenever the Pi senses any movement it sends events to Azure Cloud Service along with the picture of the scene(optional). The cloud service processes these events and decides whether notification is to be sent to the owner or not (which is configurable) and forwards the data to Microsoft Service Bus Event Hub further forwards it to Microsoft Power BI for reporting. The owner can turn on or turn off notification through the convenience web browser.
The construction is as follows:
Firstly, construct a simple motion detection circuit as shown in the attached picture.
This is a simple circuit in which as soon as it detects some motion a led is lit.
Write the code which will send these motion event details to the cloud service. If any network camera is available we can use that to capture the image and we can send that along with the event.
Create Azure cloud service which will have two end points. One on which the camera would be sending the data, and the other one for configuring the notification service.
The notification service end point would be accepting a parameter which would enable or disable the notification system. The other end point would receive the data and based on notification status send email to the user about the motion sensed. It also forwards the event to Microsoft Service Bus Event Hub.
There is a stream analytics job created to consume the data and send it to Microsoft Power BI.
Comprehensive reports can be generated through Power BI on the data. It would show us details like the peak time for movement and the times whenever motion was sensed in the late hours of the day or whenever the notification system was turned on.
Comments