Play with colors

RGB LED stands for Red, Green, Blue LEDs. The combination of these three colors can produce over 16 million hues. There are two different types of RGB LEDs namely common cathode RGB LED and common anode RGB LED. The RGB LED has four different pins, three for the Red, Green and Blue LEDs and the remaining pin for common anode or common cathode, which will be the longest pin. So it actually consists of three different LEDs in one. How to use an RGB LED with Arduino For this experiment, you will need an Arduino, a  breadboard   resistors  and a common cathode RGB LED or a common anode RGB LED. The RGB LED we are using here is a common cathode. The RGB LED is connected to the Arduino with the help of the breadboard and resistors. The circuit diagram can be found below Upload the following code to your Arduino IDE View the code on Gist. The RGB LED blinks red, blue and green colors in sequence with a 1-second delay between each change in colors. Now that you have learned how to get the three different colors in the RGB LED, start experimenting with the values in analogWrite function to…

10Maximum Marks

ENDED Time Remaining Hours Minutes

We would love to see what you build out of these learnings!

Click here to submit your projects, share it with the world and stand a chance to be rewarded.


Knowledge and Content by Li2 Technologies | © 2021 NASSCOM Foundation | All rights reserved