Recently, I’ve noticed many projects incorporating Android-Arduino communication. One of the easiest (and cheapest) ways of achieving this is to use a HC-05/06 Bluetooth module. You can pick one up from amazon.ca for ~$15.
For this project, i used a Galaxy S3 to independently control 4 LED’s. You will need to download the app ‘Arduino Bluetooth Terminal’, which is available for free on the Play Store.
To hookup the bluetooth module, connect the 5v and GND to their corresponding arduino headers of the same name. For the TX/RX pins, use digital pins 10(TX) and 11(RX)
You’re indicator led on the HC-05/06 should now start blinking.
To pair your android to the module, use the passcode “1234″. Try “0000″ if that does not work. Once paired, the indicator led should now be constant ON.
To set-up the simple LED cct, please refer to the the picture below. Note the GREEN, BLUE, RED, and WHITE led’s are powered by digital pins 4, 5, 6, and 7, respectively.
Upload this sketch to your board:
SoftwareSerial bluetooth(10, 11); // RX, TX
int ledGRN = 4;
int ledBLU = 5;
int ledRED = 6;
int ledWHI = 7;
Now you should be able to turn on the 4 LED’S by entering the numbers ’1 2 3 4′, and turn them off by pressing ’0′.
Think of all the possibilities that are now open to you! For example, you could control any 120V cct. by simply adding a relay, instead of powering a led. Remember, creativity is limitless!
Leave your questions & comments below.