RGB LED 5 mm pinout
RGB LED 5 mm, common cathode (4 pins), RGB LED, common cathode, 5 V logic, 9.4×15.9 mm, 4 pins
partly verified17.10.2026
Side view, rim flat edge on the left (at red), pins down: R, common (longest), G, B.
Download PNG- Chip
- RGB LED, common cathode
- Logic
- 5 V
Important
- Common cathode to GND, each color through its own resistor to a PWM GPIO: analogWrite / ledcWrite sets the brightness.
- Green and blue need 3.0–3.4 V: they are dim from 3.3 V, so they need a small resistor (33–47 Ω for 10 mA).
- There is a common anode variant (led-rgb-5mm-ca): it looks the same from outside, test with a battery.
All pins
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| R | pin 1 | Red anode | not from manufacturerThe common cathode datasheet at the SparkFun link is unavailable; the order R, common, G, B is from the SparkFun page and the common anode variant's datasheet. Unbranded ones can be R, common, B, G: test with a 3 V battery through 100 Ω.Through its own resistor to a GPIO: red about 150 Ω from 3.3 V for 10 mA. | |
| − | pin 2 | Common cathode (-): the longest lead | not from manufacturerThe common cathode datasheet at the SparkFun link is unavailable; the order R, common, G, B is from the SparkFun page and the common anode variant's datasheet. Unbranded ones can be R, common, B, G: test with a 3 V battery through 100 Ω.To GND. A color lights when its pin is HIGH.Labelled on other revisions as: -, GND | |
| G | pin 3 | Green anode | not from manufacturerThe common cathode datasheet at the SparkFun link is unavailable; the order R, common, G, B is from the SparkFun page and the common anode variant's datasheet. Unbranded ones can be R, common, B, G: test with a 3 V battery through 100 Ω.Through its own resistor to a GPIO: green and blue 33–47 Ω from 3.3 V or 180 Ω from 5 V for 10 mA. | |
| B | pin 4 | Blue anode | not from manufacturerThe common cathode datasheet at the SparkFun link is unavailable; the order R, common, G, B is from the SparkFun page and the common anode variant's datasheet. Unbranded ones can be R, common, B, G: test with a 3 V battery through 100 Ω.Through its own resistor to a GPIO: green and blue 33–47 Ω from 3.3 V or 180 Ω from 5 V for 10 mA. |
Sources
Not verified against the manufacturer: 4 of 4 pins. The pin card says what confirms each one and where sources disagree.
- China Young Sun YSL-R596CR3G4B5C-C10 (SparkFun copy)datasheet, checked 17.10.2026same layout as the common anode: 1 R, 2 common (longest), 3 G, 4 B; Vf R 2.0, G and B 3.2 V
- SparkFun COM-00105 LED RGB Clear Common Cathodethird-party source, checked 17.10.2026common cathode is the longest pin, second from the left
Size: Ø5 mm bulb, pins spread to 2.54; the common pin is longer (approximate).



