RGB LED 5 mm common cathode
Red, green and blue LEDs in one package with a shared ground leg.
Colour / typeRed, green and blue in one package
Forward voltageRed about 2.0 V; green and blue about 3.0 to 3.2 V
Max continuous current20 mA per colour
Package5 mm, 4 legs
SemiconductorsReviewedMPN 5 mm RGB common cathodeUsed in 9 projects
In short
What is the RGB LED 5 mm common cathode and what is it used for?
Red, green and blue LEDs in one package with a shared ground leg. Makers use it for colour mixer.
Check common cathode vs common anode before wiring.
In the real world
Status lights, mood lights
How it works
Mixing the brightness of three colours makes almost any colour.
Key specifications
| LED and switch spec | Value |
|---|---|
| Colour / type | Red, green and blue in one package |
| Forward voltage | Red about 2.0 V; green and blue about 3.0 to 3.2 V |
| Max continuous current | 20 mA per colour |
| Package | 5 mm, 4 legs |
| Polarity | Longest leg is the common cathode (to GND) |
Pinout
RRed anode, through 220 Ω
Common (longest)Cathode, to GND
GGreen anode, through 220 Ω
BBlue anode, through 220 Ω
How to use it
Give each colour its own resistor and a PWM pin. Common-anode versions exist: then the long leg goes to 5 V and the logic is inverted.
void setup() {}
void loop() { analogWrite(9, 255); analogWrite(10, 0); analogWrite(11, 128); }Applications
Status lightsMood lamps
Builds that use it
Guided build
RGB colour mixer
Guided build
UV index meter for the terrace
Guided build
Shower timer for saving water
Guided build
Heat index and comfort display
Guided build
Electronic Ludo dice
Guided build
RGB mood lamp with three knobs
Idea
Heated gloves controller
Idea
Touch-sensitive glow wand
Showing 8 of 9
Alternatives
- LED 5 mm redSingle colour
Common questions
What is the RGB LED 5 mm common cathode used for?
In products: status lights, mood lights. In maker projects: colour mixer.
How does the RGB LED 5 mm common cathode work?
Mixing the brightness of three colours makes almost any colour.
What voltage does the RGB LED 5 mm common cathode need?
Red about 2.0 V; green and blue about 3.0 to 3.2 V.
What can I use instead of the RGB LED 5 mm common cathode?
LED 5 mm red.
