Arduino-Android Bluetooth LED Controller

6,405

45

3

I made a 3-LED by-Android-controlled Arduino application.

I used the HC-06 Bluetooth module, bought from Alibaba.

The arduino and LEDs are pretty standard.

For the app I used the incerdible online MIT App inventor application.

Step 1: Hardware

The hardware is pretty simple. You'll need some LEDs, I used 3 of different colors.

The connections are as followed:

  • pin11 --[orange]-- redLED+ --- redLED- --- 220OhmsResistor --- GND
  • pin12 --[orange]-- greenLED+ --- greenLED- --- 220OhmsResistor --- GND

  • pin13 --[orange]-- blueLED+ --- blueLED- --- 220OhmsResistor --- GND

  • 5v --[green]-- HC06VCC
  • GND --[yellow]-- HC06GND
  • TX --[orange]-- HC06RX
  • RX --[yellow]-- HC06TX

This application will be onedirectional: APP --> Arduino, so the 6th connection is not needed.

Step 2: Arduino Code

I started my code, based on http://randomnerdtutorials.com/how-to-use-app-inve...

I use 3 LEDs instead of only 1.

Step 3: Android App

The app is made using MIT app Inventor:http://appinventor.mit.edu/explore/front.html .

The App interface is build using 3 buttons with an image over it.

I just used powerpoint to gave it some different colors and a white or yellow background.

When pressed, the the image switches between a white background image and the yellow background image.

The APK file is included.

It is very easy to expand the app further to include eror handling, support more LEDs, communicate back,... .

Share

Recommendations

  • Colors of the Rainbow Contest

    Colors of the Rainbow Contest
  • Fandom Contest

    Fandom Contest
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest

3 Discussions

0
None
15211a1101

Question 2 months ago

i have a doubt regarding the bluetoothclient 1byte number
why did you used 49,50..... numbers???
please reply me asap

1 answer
0
None
LuisF45

1 year ago

can i use hc05? thanks