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

LabelNumberFunctionsLimitsCheck
Rpin 1Red anodenot from manufacturer
−pin 2Common cathode (-): the longest leadnot from manufacturer
Gpin 3Green anodenot from manufacturer
Bpin 4Blue anodenot from manufacturer

Sources

Not verified against the manufacturer: 4 of 4 pins. The pin card says what confirms each one and where sources disagree.

Size: Ø5 mm bulb, pins spread to 2.54; the common pin is longer (approximate).

You might also need

Similar boards