RGB Led Is A Component That Contains Three Individual Channels
RGB Led Is A Component That Contains Three Individual Channels
By controlling the intensity of each color, you can create a wide range of colors through color mixing.
- To light up a specific color, you connect the common anode to VCC (5V) and control
the cathodes by connecting them to GND through resistors.
- To light up a specific color, you connect the common cathode to GND and control the
anodes by connecting them to VCC (5V) through resistors.
Description of االرجل:
The longest رجلis usually the common (anode or cathode), shared for all three LEDs.
The other three ارجلcorrespond to the red, green, and blue LEDs used to control the colors.
How to connect ?
Red, Green, Blue ارجل: Connect to Arduino PWM pins through current-limiting resistors.
Circuit diagram :
Simulation :
https://wokwi.com/projects/425675173465457665