← All parts
SK6812 Addressable LED
SK6812
Worldsemiinterface io display
The SK6812 is an intelligent RGB LED with an integrated control IC in a 5050 package. Each pixel uses a single-wire data protocol with built-in constant-current drive and can be cascaded for addressable strings.
In stock
Specifications
7- Operating Voltage
- 4.5 to 5.5 V
- Supply Current
- 1 mA
- Interface
- Single-wire NRZ
- Data Transmission Rate
- 800 kHz
- Gray Scale
- 256 levels per channel
- Operating Temperature Range
- -40 to 85 °C
- Package Types
- SMD 5050
Pinout
4| Pin | Name | Functions | Notes |
|---|---|---|---|
| 1 | VSS | GND | Ground for signal and power supply |
| 2 | DIN | GPIO | Control signal data input |
| 3 | VDD | POWER | Power supply pin |
| 4 | DOUT | GPIO | Control signal data output to next cascaded pixel |
Interactive pinout
Highlight:
SK6812
Click a pin to copy its name · tap a tag above to spotlight a bus.
Starter code
Community starter examples — minimal, unofficial, and provided to get you wiring fast. Verify against the manufacturer datasheet before relying on them.
Arduino (C++)
Arduino library: Adafruit NeoPixel
arduino
// SK6812 RGBW addressable LEDs — community starter example
#include <Adafruit_NeoPixel.h>
#if defined(ESP32)
#define LED_PIN 5
#else
#define LED_PIN 6
#endif
#define NUM_LEDS 8
// SK6812 is often RGBW (4 bytes/LED) — use NEO_GRBW; plain RGB SK6812 -> NEO_GRB
Adafruit_NeoPixel strip(NUM_LEDS, LED_PIN, NEO_GRBW + NEO_KHZ800);
void setup() {
strip.begin();
strip.setBrightness(60);
strip.show();
}
void loop() {
for (int i = 0; i < NUM_LEDS; i++) {
strip.setPixelColor(i, strip.Color(0, 150, 0, 0)); // green
strip.show();
delay(80);
}
for (int i = 0; i < NUM_LEDS; i++) strip.setPixelColor(i, 0);
strip.show();
delay(300);
}MicroPython
python
# SK6812 RGBW (ESP32) — community starter example
# uses the built-in `neopixel` module (bpp=4 for RGBW)
from machine import Pin
import neopixel, time
NUM = 8
np = neopixel.NeoPixel(Pin(5), NUM, bpp=4) # DIN on GPIO5, RGBW
while True:
for i in range(NUM):
np[i] = (0, 60, 0, 0)
np.write()
time.sleep_ms(80)
for i in range(NUM):
np[i] = (0, 0, 0, 0)
np.write()
time.sleep_ms(300)Wiring
| Pin | Arduino Uno R3 | ESP32 DevKitC (WROOM-32) | Notes |
|---|---|---|---|
| VDD | +5V | 5V | 5 V; ~80 mA per LED at full white (RGBW) |
| VSS | GND | GND | Common ground with the board |
| DIN | D6 | GPIO5 | Data in; ~330 ohm series resistor |
Typical uses
- RGBW addressable lighting (true white channel)
- Signage and ambient lighting