Five Different Colour Scheme Using RGB Led With Arduino

by kavish laxkar in Circuits > LEDs

11771 Views, 26 Favorites, 0 Comments

Five Different Colour Scheme Using RGB Led With Arduino

DCIM 5865.jpg
rgb photo.jpg
RGB LED Tutorial using Arduino and Transistor as a Switch -Part 2

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.

Ingredients

DSC_4059.jpg
DCIM 5836.jpg
DSC_4064.jpg
DSC_4065.jpg
DSC_4067.jpg
DSC_4071.jpg
DSC_4066.jpg
DSC_4063.jpg
DSC_4068.jpg

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

Understand RGB and Circuit

DSC_4062.jpg
Edit ryb.PNG
DSC_4058.jpg
DSC_4055.jpg

When you will buy a RGB led it will be availablein two configuration that is Common Anode And Common Cathode

Simple Blink Code

DSC_4060.jpg
RGB led blinking using Arduino-Part 1

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 .

Simple Colour Mixing

DSC_4054.jpg

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

Colour Fading and Mixing

DSC_4053.jpg

Watch Video
Colour Fading depends on PWM. If you dont know what is all about PWM. Please reffer to this link.
With the increase in time LED goes brighter and then goes lighter and his is what all about duty cycle.

Downloads

Colour Mixing With Freeze Button

DSC_4070.jpg

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.

Brightness Control

DSC_4069.jpg

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.

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.