Using RGB LEDs to Create Color Sequences
by sister mariaM in Circuits > Microcontrollers
2745 Views, 2 Favorites, 0 Comments
Using RGB LEDs to Create Color Sequences
![Copy of Copy of Magnificent Gaaris (2).png](/proxy/?url=https://content.instructables.com/FW7/P2H2/JNOVK0DH/FW7P2H2JNOVK0DH.png&filename=Copy of Copy of Magnificent Gaaris (2).png)
This Instructables will show how to use RGB LEDs to create color sequences by using Arduino Uno and a Code .
The 3 RGB LEDs will change colors during time while the 2 other RGB LEDs will remain the same color .
How the RGB LEDs Work and Electronic Components in the Circuit
![Copy of Copy of Magnificent Gaaris.png](/proxy/?url=https://content.instructables.com/FPU/FP15/JNOVK0GL/FPUFP15JNOVK0GL.png&filename=Copy of Copy of Magnificent Gaaris.png)
The electronic components in the circuit are ;
5 RGB LEDs (cathode type)
10 ;1 k resistors(brown,black red))
3; 470 resistors (yellow purple brown)
Arduino Uno
wires
The RGB LEDs(see image 2) are 3 LEDs connected together with a common cathode (negative lead)
The RGB will function when current flows from the anode to the cathode .(see image three)
A resistor is connected before to the anode to control the amount of current flow .
The Circuit
![Copy of Copy of Magnificent Gaaris (2).png](/proxy/?url=https://content.instructables.com/FIA/M1OO/JNOVK0MA/FIAM1OOJNOVK0MA.png&filename=Copy of Copy of Magnificent Gaaris (2).png)
Please click on the first image and enlarge it . The first RGB lead (red)is connected to digital pin 11 .
The second lead is the cathode and connected to ground .The third lead (blue) is connected to digital pin 9.
The last lead (green is connected to digital pin 10).The first RGB is the lead RGB it will control the other 2RGBs which are wired to it . Please see all other connections of the circuit (see image) The Code will create the changing color sequence.The Code is image 3
Downloads
The First Color Sequence
![Copy of Copy of Magnificent Gaaris.png](/proxy/?url=https://content.instructables.com/FNE/R8AS/JNOVK0U4/FNER8ASJNOVK0U4.png&filename=Copy of Copy of Magnificent Gaaris.png)
The first color sequence is the image above .Please click on this and enlarge
The Second Color Sequence
![Copy of Copy of Magnificent Gaaris (3).png](/proxy/?url=https://content.instructables.com/FXB/4Q00/JNOVK0YB/FXB4Q00JNOVK0YB.png&filename=Copy of Copy of Magnificent Gaaris (3).png)
This is the second color sequence .Note that the 3 RGB LEDs have changed color (click on image and enlarge)
Third Color Sequence
![Copy of Copy of Magnificent Gaaris (4).png](/proxy/?url=https://content.instructables.com/FBO/72ZJ/JNOVK12K/FBO72ZJJNOVK12K.png&filename=Copy of Copy of Magnificent Gaaris (4).png)
This is the third color sequence .Note the change of colors (click on image)
The Fourth Color Sequence
![Copy of Copy of Magnificent Gaaris (5).png](/proxy/?url=https://content.instructables.com/F3G/02NG/JNOVK14N/F3G02NGJNOVK14N.png&filename=Copy of Copy of Magnificent Gaaris (5).png)
This is the 4th sequence .Note the color changes (check image)
The Fifth Color Sequence
![Copy of Copy of Magnificent Gaaris (6).png](/proxy/?url=https://content.instructables.com/FAF/68A7/JNOVK171/FAF68A7JNOVK171.png&filename=Copy of Copy of Magnificent Gaaris (6).png)
This is the fifth color sequence .Note the change of colors(check image)
The Sixth Color Sequence
![Copy of Copy of Magnificent Gaaris (7).png](/proxy/?url=https://content.instructables.com/FY7/6R2P/JNOVK1AG/FY76R2PJNOVK1AG.png&filename=Copy of Copy of Magnificent Gaaris (7).png)
This is the 6 th color sequence .Note the change in colors( see image above)
The Seventh Color Sequence
![Copy of Copy of Magnificent Gaaris (8).png](/proxy/?url=https://content.instructables.com/FQ7/R0SZ/JNOVK1E3/FQ7R0SZJNOVK1E3.png&filename=Copy of Copy of Magnificent Gaaris (8).png)
This i the 7 th color sequence .Note the color changes .(see image)
The 3 RGBs Will Turn Off
![Copy of Copy of Magnificent Gaaris (9).png](/proxy/?url=https://content.instructables.com/FLL/3QVY/JNOVK1HK/FLL3QVYJNOVK1HK.png&filename=Copy of Copy of Magnificent Gaaris (9).png)
The 3 RGB LEDs will turn off .The 1st RGB LED stays on. It is a pink color .Note the connections to acquire this color.
The last RGB LED stays on and is light blue .Note the connections to acquire this color .
Conclusion
![Copy of Copy of Magnificent Gaaris (1).png](/proxy/?url=https://content.instructables.com/FMC/86RD/JNOVK1SQ/FMC86RDJNOVK1SQ.png&filename=Copy of Copy of Magnificent Gaaris (1).png)
![Copy of Copy of Magnificent Gaaris (2).png](/proxy/?url=https://content.instructables.com/FWW/7A2S/JNOVK1T1/FWW7A2SJNOVK1T1.png&filename=Copy of Copy of Magnificent Gaaris (2).png)
![Copy of Copy of Magnificent Gaaris (3).png](/proxy/?url=https://content.instructables.com/FE5/T7M6/JNOVK1TD/FE5T7M6JNOVK1TD.png&filename=Copy of Copy of Magnificent Gaaris (3).png)
![Copy of Copy of Magnificent Gaaris (4).png](/proxy/?url=https://content.instructables.com/F4H/CP7U/JNOVK1U1/F4HCP7UJNOVK1U1.png&filename=Copy of Copy of Magnificent Gaaris (4).png)
![Copy of Copy of Magnificent Gaaris (5).png](/proxy/?url=https://content.instructables.com/F0T/GCDT/JNOVK1UM/F0TGCDTJNOVK1UM.png&filename=Copy of Copy of Magnificent Gaaris (5).png)
![Copy of Copy of Magnificent Gaaris (6).png](/proxy/?url=https://content.instructables.com/F72/H2CQ/JNOVK1UZ/F72H2CQJNOVK1UZ.png&filename=Copy of Copy of Magnificent Gaaris (6).png)
![Copy of Copy of Magnificent Gaaris (7).png](/proxy/?url=https://content.instructables.com/FOJ/ZIKH/JNOVK1VB/FOJZIKHJNOVK1VB.png&filename=Copy of Copy of Magnificent Gaaris (7).png)
![Copy of Copy of Magnificent Gaaris (8).png](/proxy/?url=https://content.instructables.com/FSJ/7L40/JNOVK1VE/FSJ7L40JNOVK1VE.png&filename=Copy of Copy of Magnificent Gaaris (8).png)
![Copy of Copy of Magnificent Gaaris (9).png](/proxy/?url=https://content.instructables.com/FWR/HN36/JNOVK1VX/FWRHN36JNOVK1VX.png&filename=Copy of Copy of Magnificent Gaaris (9).png)
This Instructables shows how you change use RGB LEDs to create a color sequence with Arduino Uno and a Code . (the Code is included above ,last image .)You can see the complete sequence if you click on each image .
This circuit was created on Tinkercad ,It was tested and works .I enjoyed creating the project .I hope it helps you understand RGB LEDs . Thank you
Downloads
RGB Circuit ;color Sequence
![RGB ;color sequence with Arduino Code](/proxy/?url=https://content.instructables.com/FTA/PWRI/JSIUOAQE/FTAPWRIJSIUOAQE.jpg&filename=RGB ;color sequence with Arduino Code)
![RGB ;color sequence with Arduino Code](/proxy/?url=https://content.instructables.com/FKU/FP17/JSIUOALJ/FKUFP17JSIUOALJ.jpg&filename=RGB ;color sequence with Arduino Code)
![RGB ;color sequence with Arduino Code](/proxy/?url=https://content.instructables.com/FMD/1QYX/JSIUOAWA/FMD1QYXJSIUOAWA.jpg&filename=RGB ;color sequence with Arduino Code)
![RGB ;color sequence with Arduino Code](/proxy/?url=https://content.instructables.com/F27/TZ0A/JSIUOB5G/F27TZ0AJSIUOB5G.jpg&filename=RGB ;color sequence with Arduino Code)
This is a RGB circuit .It has a color sequence with a Arduino Code(see video below ;had trouble to upload ,but now it works)