I made a project using an Arduino, an ultrasonic sensor, and a 1Sheeld, which allows you to tap into your smart phone's sensors and capabilities and lets you use them in your Arduino projects. Basically, it is a hardware shield that sits on top of your Arduino board and communicates over Bluetooth to 1Sheeld app, to transfer data between it and your smart phone.
When someone approaching the room, your phone will notify you with "vibration" and saying "mom is coming". If this is your first time using 1Sheeld, I recommend you start with the getting started tutorial first to know how to use the 1Sheeld.
For more advanced projects click here. Besides Arduino IDE you need to:
- Download and place 1sheeld library and 1Sheeld app from here: http://1sheeld.com/downloads/
- Download Ultrasonic library from https://github.com/JRodrigoTech/Ultrasonic-HC-SR04...
1. Install 1sheeld app on your smart phone (you can install it directly from Play Store).
2. Connect the 1sheeld over the Arduino board.
3. Connect the Ultrasonic sensor HC-SRF 04 to 1Sheeld like this:
//Vcc >> +5 ..... Tri >> digital pin #12 .... Echo >> digital pin #13 .... GND >> Gnd
4. Download 1sheeld library into Arduino IDE.
5. Write the code on Arduino IDE after adjusting the detection distance from 2cm to 400 cm (I make it if < 50), connect Arduino board to PC and upload the code into Arduino board.
(Hint: Take care about Upload mode and Operating mode of the 1 sheeld board also Arduino UNO working on 5V).
6. Connect 1sheeld mobile app to 1sheeld board, select the required sheelds (vibration - text to speech) from 1sheeld app, and make a test.
Congratulations, now you can do this yourself.
Any comments and suggestion will be welcome.