KY-016 RGB Full Color LED Module – 5mm RGB LED for Arduino & ESP32
The KY-016 RGB Full Color LED Module is a compact LED module designed to produce a wide range of colors for electronic projects, visual indicators, and decorative lighting applications.
Featuring a 5mm RGB LED, the module combines red, green, and blue light elements in a single LED package. By independently controlling each color channel using PWM (Pulse Width Modulation), users can create different colors, brightness levels, and dynamic lighting effects.
The KY-016 is ideal for Arduino, ESP32, Raspberry Pi, robotics, automation, and DIY electronics projects.
Key Features
-
Model: KY-016
-
LED Type: 5mm RGB LED
-
LED Colors: Red, Green, Blue
-
Color Mixing: Multiple Colors Using PWM Control
-
LED Configuration: Common Cathode (Typical)
-
Control Method: Digital Output / PWM
-
Interface: 4 Pins (R, G, B, -)
- Independent Brightness Control for Each Color
- Compact PCB Design
- Suitable for Arduino, ESP32, and Raspberry Pi Projects
Technical Specifications
| Parameter |
Specification |
| Model |
KY-016 |
| Product Type |
RGB Full Color LED Module |
| LED Type |
5mm Through-Hole RGB LED |
| Number of LEDs |
1 RGB LED |
| LED Colors |
Red, Green, Blue |
| LED Configuration |
Common Cathode (Typical) |
| Red Forward Voltage |
Approximately 1.8–2.2V |
| Green Forward Voltage |
Approximately 3.0–3.3V |
| Blue Forward Voltage |
Approximately 3.0–3.3V |
| Control Voltage |
3.3V / 5V Logic with Suitable Current Limiting |
| Control Method |
PWM / Digital Output |
| Number of Pins |
4 |
| Typical Pin Configuration |
R / G / B / - |
| Board Dimensions |
Approximately 18.5 × 15mm |
| Current Limiting |
Required for Each LED Channel |
Pin Configuration
| Pin |
Function |
| R |
Red LED Control |
| G |
Green LED Control |
| B |
Blue LED Control |
| - |
Common Ground (Cathode) |
Arduino Connection Example
| KY-016 |
Arduino Uno |
| R |
D9 through a suitable resistor |
| G |
D10 through a suitable resistor |
| B |
D11 through a suitable resistor |
| - |
GND |
Use suitable current-limiting resistors for each color channel unless the supplied module already includes them.
Arduino Example Code
const int redPin = 9;
const int greenPin = 10;
const int bluePin = 11;
void setColor(int red, int green, int blue) {
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);
}
void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop() {
setColor(255, 0, 0); // Red
delay(1000);
setColor(0, 255, 0); // Green
delay(1000);
setColor(0, 0, 255); // Blue
delay(1000);
setColor(255, 255, 0); // Yellow
delay(1000);
setColor(255, 0, 255); // Purple
delay(1000);
setColor(0, 255, 255); // Cyan
delay(1000);
setColor(255, 255, 255); // White
delay(1000);
setColor(0, 0, 0); // OFF
delay(1000);
}
This example cycles through several RGB color combinations using Arduino PWM outputs.
Applications
- Arduino and ESP32 Projects
- Raspberry Pi GPIO Indicators
- RGB Color Mixing Experiments
- Robotics Status Indicators
- Decorative LED Lighting
- Electronic Control Panels
- Interactive Displays
- Educational STEM Projects
- DIY Electronics
- Visual Alarm and Notification Systems
Important Notes
-
The KY-016 is a non-addressable RGB LED module. Each color channel must be controlled individually.
- Unlike WS2812B or NeoPixel LEDs, it does not use a serial digital communication protocol.
- The KY-016 typically uses a common-cathode RGB LED. Verify the configuration of the supplied version before wiring.
- Some versions include onboard current-limiting resistors; others may require external resistors.
- Use PWM-capable outputs for smooth brightness adjustment and color mixing.
-
For ESP32 and Raspberry Pi, respect the 3.3V GPIO voltage and current limits.
- The module is designed for indicator lighting and educational projects, not high-power illumination.
Package Includes
1 × KY-016 RGB Full Color LED Module