RGB LED 5MM
5 mm RGB LED (4‑Pin Through‑Hole)
Overview
A classic 5 mm RGB LED, combining red, green, and blue light emitters in a single package—perfect for adding full-color effects to electronic projects. Compatible with Arduino, ESP32, Raspberry Pi, and other microcontrollers. Use PWM control to mix colors and create custom lighting effects.
Key Features
4-pin through-hole: common anode or common cathode versions
Diffused lens for smooth color blending
Individual forward voltages: approx. 2.0 V (red), 3.2 V (green/blue)
Typical max current: 20 mA/color, combined up to ~60 mA
60° viewing angle; durable plastic housing
Lifespan: 50,000+ hours
Technical Specifications
Parameter | Value |
---|---|
Diameter | 5 mm |
Pins | 4 (1 common + 3 color pins) |
Forward Voltage | Red: 2.0 V; Green/Blue: 3.2 V |
Current per LED | Max 20 mA |
Viewing Angle | ~60° |
LED Type | Diffused |
Wiring with Arduino UNO (Common Cathode Example)
LED Pin | Arduino Connection |
---|---|
Common (longest) | GND |
Red | PWM pin ~11 via 270 Ω resistor |
Green | PWM pin ~10 via 270 Ω resistor |
Blue | PWM pin ~9 via 270 Ω resistor |
Use analogWrite() on each pin to mix RGB colors via PWM.
Applications
Indicator lights and status displays
RGB fading effects and animations
Mood lighting and color mixing experiments
Visual output in interactive electronics
Learning PWM and LED control techniques
Resources
🎥 Arduino RGB LED Tutorial youtube.com