This project is "Comuter communicate with cell phone by using arduino"
Download the application "Bluetooth spp pro".
Nest, connect your phone and blutooth module.
Then you can chet computer with phone like these.
You can use this technology in real life.
By chetting, you'll be able to turn the light in your room on and off likely following pictures' LED
#include
SoftwareSerial BTSerial (12, 13); // BTSerial (Rx, Tx); Based on the Aduno board// Connect pin of Aru InnoBoard 12 with Bluetooth module TX pin, pin 13 and RX pinint led = 8; char command; void setup () { Serial.begin (9600); BTSerial.begin (9600); } void loop () { if (BTSerial.available ()) {// If there is an input value from the Bluetooth module, char command = BTSerial.read (); // Save command received in Bluetooth to command Serial.println (char (command)); if (command == 'Y' || command == 'y') { // function call to advance RC car when receiving F or f as input digitalWrite (led, HIGH); } else if (command == 'N' || command == 'n') { digitalWrite (led, LOW); } } }
Comments
Please log in or sign up to comment.