Tuesday, April 29, 2025

Smart Home Security System With Automatic Phone Calling System Using Arduino With The IoT

CCTV (closed-circuit television) camera systems are installed to protect your home and shops from burglary and break-ins. But with our busy lives, it is not possible to monitor it 24*7. So, we need a more reliable and robust smart security system that can notify us when someone breaks into our shop or home.

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”]

- Advertisement -

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

- Advertisement -

[/defineweblang]

To make this project first gather the following components.

Bill Of Material

Arduino Coding

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.

Fig 1. Arduino Code

App making

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
Fig 2. App Layout

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 ).

Fig 3. Setting phone number in phone call component

Now, join the MIT app inventor code blocks according to Fig 4.

Fig 4. MIT app inventor code blocks

Connection

Now connect the components as illustrated below (Refer fig 5).

Arduino Components
Pin 7 PIR Motion sensor OUT
5V VCC of Bluetooth and PIR
GND GND of Bluetooth and PIR
RX Bluetooth TX
TX Bluetooth RX

 

Fig 5. Connection Diagram

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.

Download Source Code

If you found this IoT project useful then you may also like Top 30+ IoT Projects | IoT Project Ideas for Enthusiasts.

Ashwini Sinha
Ashwini Sinha
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.

EFY Prime

Unique DIY Projects

Truly Innovative Electronics

Electronics News

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics

×