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”]
[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]
[/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.
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
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.
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 |
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.
excellent issues altogether, you just won a new reader.
What could you suggest about your publish that you made some days ago?
Any positive?
Good day Sir,
I like this project, so, where and how can I buy the components so that I can build it.
Kind regards
lucien
you can get all these components from kits n spares
https://www.kitsnspares.com/
Hi Sir!!
I m doing this project , can i use GSM module instead bluetooth??
Yes, You can take reference of this:- https://www.electronicsforu.com/electronics-projects/smart-gsm-based-anti-drunk-car-alert-system
Hello..Mam i m doing now same above project &
In My Arduino there are two GND pin And two 5V pin So My question is can i connect one GND to sensor and another to bluetooth? and same for 5V pin?
Mam..i am doing same above project and
my ardunio uno has two GND and 5V pin so my question is that can i connect 1 of them gnd pin with bluetooth and another with sensor??
and same for 5v pin??
yes
Hello mem.. I want more details about that project. Bcz you provide connection diagram and i want circuit diagram and overall block diagram . So that i can put on my PowerPoint presentation.. Please share all the details related to thi project. Reply me as soon as possible
i hav doubt in connections how to use same wire for bluetooth and motion sensor to 5v and grd
Connect the both VCC of components to a wire and then use that wire to %v pin of arduino or you can use beardboard
I have doubt in connections how to connect both wires to 5v and grd
connect the VCC of both components and then insert that wire in 5V pin of arduino
sir please give the proper app making…i am not finding and create app….give me a link to the app creating
Download mit app inventor and import the .aia file provided with code
Sir I have ltitle bit of time ..I am trying to create the app….the above pictures are not clarity…have you any link that app
how it is work…we do all the steps u provided …. but we not getting connection between app and bluetooth.
when we open the app it automatically goes to call.please explain it completely.
Did you get the solution to your problem, which am also facing the same.
Code is not correct and it showing errors of not declaring identifier serial…help me out
Code is correct, and tested remove a alone “s” in code before { s
} in code if you see it that might come mistakenly.
Sir I build it but I get a problem that it doesn’t call itself just give number and we need to click on it to make a phone call the
I’am facing the same issue.
can you explain us?
Sir the app doesn’t call the number it just pastes the number to dialer pad also without detecting human it goes to dailerpas and pastes the number
I also have same issue did you get any reply from ashwini sinha
Hey.. I am also facing the same issue.. Can u please reply if u resolved your issue..
Hey..i am facing the same issue..did your problem get solved?
Everything is done as per the described method, when I connected it to Bluetooth, it is just randomly opening the call log (when there is no motion and it is not calling the person). Can you please send a video with clear instructions.
Sir, is the Arduino program just that?
yes. it include the app also.main works is for app
when we open the app it automatically goes to call. please explain it completely.
sir plz send project report u have any
What kind of project report can you elaborate.
All the project details and code is available here in the website for more info please ask me
why i am not receiving phone calls but the output is displayed.
how it can identify difference between owner and thief?suppose owner placed it in their shop and goes out for some work and then comes back and open the door of shop then how it can identify owner or thief?
Give the full code. How to connect the app and code.I have many doubts so I want to contact you please give details and full abstract about this project.
i created app but it doesnt calling automatically what can i do now
Kindly elaborate your query.
is there any code require for Bluetooth to operate?
Heyy can you please share the android layout and description code
which software will be helpful to have a testing of this project
Proteus is good for testing this.
can you explain the procedure to run this in proteus
can you please explain the procedure to run this on proteus.
please reply back soon mam. Thanking you in advance.
As it uses Bluetooth HC 05 that need to be connected to Smartphone so it is difficult to do it in proteus.
Thank you So much for helping us mam!
mam it is must for us to do this project on proteus mam. please explain what is the difficulty mam! and when opening the app in mobile it is showing bad arguements end the application.
please explain this error mam!!
please reply soon mam.
Thanking you in advance.
Hello Sir.. we got the project simulation running somehow. But please tell us why it is not running with bluetooth! we don’t know what is the problem but simulation is running smoothly(not with bluetooth connected). we have all the codes ready (both arduino and mit app) but we are able to receive any call when the toggle(toggle is connected to pir) is set to 1.
please help us Sir…
Thanking you in advance.
please reply soon mam
Hey!
I need help. When the motion is there it is detected in serial monitor but call is not coming.
Also when opening app it is calling automatically.
Help please. I have my project expo in a few days
Have connect the Bluetooth module and paired with phone. Also check the app inventor blocks. The block should be in such a way that the what ever the command is received from Bluetooth on motion detection the code blocks call the “makephone.call immediately function”. if still face any problem please ask me back
Can you send me the connections and app making with our number. I have to submit it in few days. When I connect all things am not receiving call and when I open app it is showing bad argument.
While am performing the project, blue-tooth HC-05 is connected but it was showing 507 argument error. How to rectify this problem.
I need help in this project i.e., am getting an error in the app. The error is “Bad argument to> the operation>cannot accept the argument” How can I get out of it.
Can you send me the connections and app making with our number. I have to submit it in few days. When I connect all things am not receiving call and when I open app it is showing bad argument.
I had done the project as you said still getting same error. Along with that when I connect Blue-tooth HC-05 RX-TX and TX-RX blue-tooth is getting turn off. I had changed the 5 blue-tooth modules but getting the same error. “Bad argument” and “Kindly turn on the blue-tooth”. How can I get out of this.?
Dude First turn on the Bluetooth of phone and then open the app now connect the Bluetooth HC 05 and its done .If still get this error then press back or tap any were outside the this black pop of box.
Now let’s understand why error come :-
The app is trying to read values from the Bluetooth before the Arduino actually send that or before you actually pair with Bluetooth module.
You can also get rid of this by modifying the code blocks to
when the blurtooth.connected and bluetooth bytes available >0
then read the Bluetooth value.
Hi sir,
Can you send me ,this project perticular which month Efy issue,so I can see there, as am sucsriver of EFY, since 2012.
Pl rply
Dear Mr. Sinha,
I tried to make app but it is not clear print,
Is possible to send me clear print to make app or Vedio how to make app
Thank you,
Pl reply
Ramesh
Dear sir,
Am not able to see how to put components into screen, pl send procedure to make app of this project.
Pl rply,
Ramesh
tit is drag and drop type. Frag the component and drop where you want to put
Hello Sir!!
I am doing this project , sir i want to know that can i use GSM 800 module instead of bluetooth ?
I’m having the issue on running the app but I’m having the error showing “the operation >can’t accept the arguments, [” “], 10” how can I solve this problem? Please respond me.
hello mam my board name is unknown how can i get to know my board name??
and i have an error occur always ” avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 ” while uploading
I m making this project and go it and it an issue that when the app start it automatically open contact & show only the number which i add in app , but its not calling………………………..??can u help me?
Hey…i also faced the same issue…did the problem get solved?
I have a doubt … How this device will get to know about thief????
Sir i like this project can u tell me the modules name you use and its back end and front end please
sir, when i directly install your apk file and enter any number more than 10 on the screen, it directly dials your no. but when i modify your AIA file to set my no and create the apk file online, it only pastes the no on the dialer screen, but do not dial. can you give me the solution to direct dial.
DHURJATI SINHA
GENERAL MANAGER( ELECT)
[email protected]
BHILAI STEEL PLANT
its just typing the phone number on dialpad but not making a call? what should i do?
use make call direct code block in MIT app inventor if using new app inventor
When I open application on mobile device, I find this error. ‘The opertion > cannot accept the arguments:,[“”],[10] ‘
So please help me how to deal with such error or what I have to do. I have completed my connections, uploaded code to Arduino and developed application as described by you.
try to tap outside the popup message or press back to get out of this popup and then try to connect. if still got the problem use if serial bytes available code block during app making. if face a problem in making app contact me on whats app 7061350809
Hello everyone, i am facing a problem in this project. It is as in this project, when motion sensor detects any motion, call is suppose to generate in those circumstances. Problem is, when i connect my application with bluetooth HC05, it directly generates phone call, but when any motion is performed in front of motion sensor, no phone call is generated. What can be the issue and how to tackle with it.
Hello everyone, as in this project call is supposed to be generate when motion sensor detects any motion.
There is a problem in My side, when I connect my application with Bluetooth HC05 at that time application is generating call directly, but when I perform any motion against PIR motion sensor, no call is generated. So what can be the problem? Can anyone help me out of this? Thank you.
Sir is there any need of emulator for running app
Sir is there any need of emulator to run app
No you can directly install app on phone and then give permission to call and it will work
Sir, what is text for text box 2. Is there any need of hint for text box2
No not need to put any hint text
Sir i have make app as you’r guidelines. But when I open app it is saying’ bad arguments to >’. What can I do now.
Sir I have build app as your guidelines
But when I open app it is saying’ bad argument to >’. What I do now
In the designer slect clock1 unselect “TimerEnaled” IN AfterPicking.list block Add another block “Label1.tect.connected ” set.ClockEnabled=True
hi Team,
Request you help me with the detailed steps for app creations.