In this tutorial iam going to show you how to monitor movement within a particular distance through an android phone . The device is controlled from a android phone and output is received as messages. The system is password protected.
This is fun project and it is portable also.
So let's begin...
Step 1: Required Materials
1.Atmega 328 freeduino
2.hc sr04 ultrasonic sensor
4.hc 05 Bluetooth module
8.Android smart phone
And you need to download Bluetooth terminal app from play store. Its available for free.
Now let's get started!!
Step 2: Circuit Connection
Install the app "Bluetooth terminal" in your android phone!
Step 3: Arduino Code
upload the code given below.you can also modify the code to make it more efficient or change the code the way you wish this circuit need to work!
Step 4: Working!!
Now device is activated by character 'p'.
Once activated the mobile continues to receive continuous messages like NO DANGER, object approaching, Object receding, Object too close.
At any point if you send 'a' . It will send you the exact distance of object and real time and date at that instant.
Character 'b' will switch off the device.
Note: you need to connect the power bank immediately after uploading the code otherwise it creates time delay in etc.
Step 5: Thinking Further!
You can even use light signals as means of communication between two breadboards, of any!
You can change the current code by adding/removing functions based on purpose.
Hope you enjoyed building this project.
If any doubt, feel free to leave comment below!