Arduino-Android Bluetooth LED Controller

4,727

44

1

Published

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

Share

Recommendations

  • Oil Contest

    Oil Contest
  • Make it Move Contest

    Make it Move Contest
  • Clocks Contest

    Clocks Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

Comments

can i use hc05? thanks