The KY-016 Full Color RGB LED emits a wide range of different colors by mixing red, green and blue light. Compatible with many popular microcontrollers like Arduino, Raspberry Pi and ESP32.

KY-016 Specifications
This module consists of a 5mm RGB LED, 3 150Ω limiting resistors to prevent burnout and 4 male header pins. Adjusting the PWM signal on each color pin will result on different colors.
| Operating Voltage | 5V |
| LED Drive Mode | Common cathode drive |
| LED Diameter | 5mm |
| Board Size | 15mm x 19mm [0.59in x 0.75in] |
Connection Diagram
Connect the module red pin (R) to pin 11 on the Arduino. Blue (B) to pin 10, green (G) to pin 9 and ground (-) to GND.
| KY-016 | Arduino |
|---|---|
| R | Pin 11 |
| B | Pin 10 |
| G | Pin 9 |
| – | GND |

The following Arduino sketch will gradually increase/decrease the PWM values on the red, green and blue pins causing the LED to cycle through various colors.