Arduino-Android Bluetooth LED Controller

7,610

46

3

Introduction: Arduino-Android Bluetooth LED Controller

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,... .

1 Person Made This Project!

Recommendations

  • Big and Small Contest

    Big and Small Contest
  • For the Home Contest

    For the Home Contest
  • Game Design: Student Design Challenge

    Game Design: Student Design Challenge

3 Comments

0
15211a1101
15211a1101

Question 4 years ago

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

0
LuisF45
LuisF45

5 years ago

can i use hc05? thanks