CCTV (closed-circuit television) camera systems are installed to protect your home and
When a thief enters a jewellery shop, the shop owner automatically gets a notification on his/her phone. Also, the device automatically calls the cops while the thief is busy stealing the valuables. This is possible with our smart device that we are going to make.
[defineweblang title=”Change Video Language” language=”English,Hindi”]
[getvideolang url= “https://www.youtube.com/embed/a0ZGj7zNCco?start=53″ language=”English”][/getvideolang]
[getvideolang url= “https://www.youtube.com/embed/BYeQWO-E1eA?start=53″ language=”Hindi”][/getvideolang]
To make this project first gather the following components.
Bill Of Material
After gathering all the components, open the Arduino IDE and write the following code (Fig 1).
First of all, take a variable for motion sensor pin. Here we have used Arduino digital pin 7. After that create a set-up function and set the Bluetooth baud rate (here we have used baud rate 9600) and set the pin mode for PIR sensor as input. Then in the next part of the code, create a loop function and under that create an ‘if condition’ that checks the status of motion detection by PIR sensor. When the PIR motion sensor detects any human motion, the Arduino sends a number over Bluetooth to our Android app that we are going to make in next part.
To make the app, use MIT App Inventor. First, create a layout for an app and add the following components (Refer fig 2 ).
- Vertical arrangement
- A list picker
- 3 Text levels
- A text bar
- Bluetooth client
- Phone call
- Clock Timer
After adding all the components and creating layout, go to phone caller components and set the number to which you want to get call. You can either set your own number or any other number (Refer Fig 3 ).
Now, join the MIT app inventor code blocks according to Fig 4.
Now connect the components as illustrated below (Refer fig 5).
|Pin 7||PIR Motion sensor OUT|
|5V||VCC of Bluetooth and PIR|
|GND||GND of Bluetooth and PIR|
Testing and working
Cross check all the connections and then power the Arduino with battery and fix the device in a room. After that connect the app that we have created. Now, whenever anyone enters your room, it will send a number to the app and the app will automatically call on the phone number that we have set earlier. So, now you can fix this device in your home and leave for a vacation without worrying about security.