When we use RGB Color Changing LED , you no longer have to decide which color to use. You can either allow the lights to cycle through a continuous color changing pattern, or stop the controller at any color you like. The possibilities are endless. Change your color scheme with the seasons, or simply at your whim with RGB Color Changing LED lights.
RGB LED contain red, blue and green LED's. Blue and green combine to produce turquoise, green and red combine to produce yellow, red and blue combine to make violet, red, green and blue combine to make white. There are literally more than 16,000,000 possibilities with the more sophisticated controllers. With an RGB LED you'll be able to produce any colour glow your heart desires. At first using an RGB LED seems quite complex, but it quite quickly becomes clear when you starts hand on over these types. In this isnstuctable i will show to how to begin with RGB leds with some basic codes and finally i will show you 5 different colour scheme using RGB Led with arduino with different codes.
Lets get Started!
Note: I have used COMMON ANODE(+) type LED.
Step 1: Ingredients
1. RGB LED-Common Anode
2. Arduino UNO
3. Resistor- 100 ohm
~Or near by Value
4. NPN Transistor-BC 547
5. Potentiometer 10K
6. ON/OFF Button
7. Connecting wires
Step 2: Understand RGB and Circuit
When you will buy a RGB led it will be availablein two configuration that is Common Anode And Common Cathode
Step 3: Simple Blink Code
Here we go with the first code. I have added a copy of code with this step. You have to review the code in order to understand the workind of led and in the starting of code you will see the PINS connection which connects to RGB led .In some case you may have to change the connection due to PWN Pins of the arduino.
So at the beginning of the code please review the pin and connect accroding to them and then upload the code and finally you with the initial success of your RGB led .
Step 4: Simple Colour Mixing
Now we are going to upload our next basic code that is colour mixing. In the beginning i have mentioned that how mixing of colour takes place. connect the pins of led according to code and then upload. You will find that how easy it is and how attractive the LED looks like when Mixing takes place
Step 5: Colour Fading and Mixing
Step 6: Colour Mixing With Freeze Button
When we need to freeze a particular colour, we can also do that. i just added simple on off button to stablize the led in order to give a particular colour. For example if we want on green led to glow then, we have to wait for green colour to apper and at the same instant we have to press the button. In this way we can freeze any colour we want.
Step 7: Brightness Control
To control the brightness of the LED just add a Potentiometer acreoos the common Anode this will enable us to control the current flow to the positive terminal of the LED. Simple and Easy isn't is! Also the higher the resistance of potentiometer lighter the LED will glow.
Now you have enough knowledge to how to get start with some basic circuits of RGB LED using Arduino.
Step 8: Implement
With the use of above different schemes you can use in any of your project including bedroom lightning(Next project),Door lights,ocassional lights,etc.
This marks the end of this instructable.
Hope you liked it.
Please vote for the project and share if you think it was awesome.
Don't forget to follow for more cool projects!!
Fell free to have any query.
Share and Vote Thanks.