RGB LEDs play a large part in applications like outdoor decoration lighting in cities, stage lighting designs, home decoration lighting and LED display matrix. Recently, RGB color mixing technology can also be found in LCD backlighting and projectors.
In this tutorial we will learn how the RGB LED works and how we can control RGB led using HC-05 Bluetooth module, Arduino IDE and an Android application.
What is RGB LED?
RGB LED is actually three LEDs, red, green, and blue inside one package. Three PWM Outputs are used to control the RGB LED. A PWM value of 0.0 would be off and a 1.0 full on for each color LED. This allows a program to vary both the color and brightness level of the LED.
Typically an RGB LED has four pins. One common pin and one for each of the three LEDs. In the LED seen below, the common pin is the longest pin. The RGB LED can be classified as either common anode or common cathode. The common pin in the common anode RGB LED is connected to VCC while in the common cathode it is connected to the ground.
NOTE: Red, Green and Blue are called primary colors and by mixing each other with different intensity we may get millions of color outcomes. This is the basic concept of the RGB led.
Connecting the RGB LED and HC-05 Bluetooth module to Arduino
VCC – to VCC of Arduino.
GND – to GND of Arduino.
RX – to digital pin 0(TX pin) of Arduino.
TX – to digital pin 1(RX pin) of Arduino.
Note:
i).Connect RX and TX pins after uploading the code
ii).The terminals of the RGB LED should be connected to PWM pins of the Arduino.
Android App used for Arduino RGB led Bluetooth control
For this project we use Arduino RGB Led Control app which is got from the Google play store. This Application enables us to connect the phone and the Arduino board through Bluetooth.
You can get the Application from here
After connecting the circuit , now you can upload the code and test the
output results.
Comments