Introduction: Android Controlled RGB LED Using Arduino
Hai to everyone in the post iam going show how to control the RGB LED using android with arduino and HC-05 Bluetooth module.
I searched in web there is lot of techniques to control the RGB LED. But this is the method which is very simple and easy.
In this method the color of LED is controlled by using the android application which is freeware you can download it from google play store.
Step 1: COMPONENTS NEED
Arduino uno or any arduino clone. (atmega 328)
1.HC-05 Bluetooth Module
Step 2: RGB LED
I used here is RGB LED you can also use a normal THD(Through Hole Device)LED.before choosing the LED be careful whether it is common anode type or common cathode.here i used is common anode type. which means the R,Gand B terminals is connected to PWM pins and the final terminal is connected to vcc 5v in arduino. I soldered the RGB LED in the pref board so it is easy to connect to arduino.
Step 3: CIRCUIT DIAGRAM & SCHEMATICS
connection is made by based on the type of the LED you use. I used here is common anode type common pin is connected to +5 vcc.
RGB LED CONNECTION (Only pin 3,5,6,9,10,11 are PWM pins)
Pin 3 of arduino is connected to red pin of RGB LED.
Pin 5 is arduino connected to green pin of RGB LED.
Pin 6 of arduino is connected to blue pin of RGB LED.
HC-05 Bluetooth module connection
Pin vcc is connected to +5 or +3 based on your module.
Pin gnd is connected to arduino gnd pin.
Pin Txd is connected to arduino pin 11.
Pinn Rxd is connected to arduino pin 12.
Step 4: ANDROID APPLICATION
Download the color LED controller application from the google play store.
Click Here To Download
The application sends the information to HC-05 Bluetooth module then the module send the data to the arduino then then the color is varied by PWM pins in arduino.
Step 5: PROGRAMMING
Download the program and upload it to arduino. If you bought common anode type upload the rgb_led_ca for common cathode use rgb_led_cc
The difference between the two program is.For common cathode the program sends positive value to PWM pins.
For common anode type
Step 6: VIDEO
NOTE: Don't upload while bluetooth module connected to arduino. disconnect the module before uploading and connect it back after uploading the program.
Participated in the