5mm RGB LED – 4-Pin Multicolor Through-Hole LED
The RGB LED is a multicolor light-emitting diode that combines three individual LEDs—Red, Green, and Blue—inside a single transparent package.
By adjusting the brightness of each color independently, the RGB LED can produce a wide range of colors and lighting effects.
Featuring a 4-pin through-hole design, this LED is ideal for Arduino, ESP32, Raspberry Pi electronics, DIY projects, decorative lighting, and electronic indicators.
Key Features
-
RGB Color Mixing: Combines Red, Green, and Blue LEDs in one package.
-
Multicolor Output: Produces a wide range of colors by mixing the three primary colors.
-
4-Pin Configuration: Individual connections for Red, Green, Blue, and a common terminal.
-
PWM Compatible: Supports brightness and color adjustment using PWM signals.
-
Transparent Lens: Allows light from the three LED elements to mix.
-
Compact Design: Suitable for breadboards, PCBs, and electronic projects.
-
Low Power Consumption: Suitable for low-voltage electronic applications.
Technical Specifications
| Parameter |
Specification |
| Product Type |
RGB LED |
| LED Diameter |
5mm |
| LED Colors |
Red, Green, Blue |
| Number of Pins |
4 |
| LED Package |
Through-Hole |
| Lens Type |
Transparent / Clear |
| Color Control |
Individual RGB Channels |
| Brightness Control |
PWM Compatible |
| Common Terminal |
Common Anode or Common Cathode (verify version) |
Pin Configuration
The RGB LED features four terminals:
| Pin Function |
Description |
| Red (R) |
Red LED Connection |
| Green (G) |
Green LED Connection |
| Blue (B) |
Blue LED Connection |
| Common |
Shared Anode (+) or Cathode (−) |
Note: Pin order and common terminal polarity depend on the LED version. Verify the pinout before connecting.
Connection with Arduino or ESP32
- Identify the RGB LED's common terminal and polarity.
- Connect the common terminal according to the LED type.
- Connect the Red, Green, and Blue pins to suitable GPIO outputs through individual current-limiting resistors.
- Use PWM signals to adjust the brightness of each color.
- Combine different brightness levels to generate custom colors and lighting effects.
Applications
- Arduino and ESP32 Projects
- Raspberry Pi Electronic Circuits
- RGB Lighting Effects
- LED Status Indicators
- DIY Electronics
- Educational STEM Projects
- Decorative Lighting
- Breadboard Prototyping
- Electronic Displays and Indicators
Important Notes
- Always use a suitable current-limiting resistor for each LED color channel.
- Do not connect the LED directly to a power supply without current limiting.
- Common anode and common cathode versions require different wiring and control logic.
- Forward voltage and current ratings vary between the Red, Green, and Blue LED elements.
- This is a standard RGB LED, not an individually addressable LED such as WS2812B.
Package Includes