Skip to content

APA102 LED Strip

Addressable RGB LED strip with clocked SPI-like data interface

APA102 LED node

The APA102 (also known as DotStar) is an addressable RGB LED that uses a two-wire clocked SPI-like protocol — separate data and clock lines — rather than a single-wire timing-sensitive protocol. This makes it significantly easier to drive at high speeds and from any GPIO pair.

PinDirectionDescription
DILeftSerial data input
CILeftClock input
+5VLeftPower supply (5 V)
GNDLeftGround
OptionTypeRangeDefaultDescription
nodesNumber1–10001Number of LEDs in the strip

Each LED consumes a 32-bit frame:

BitsContent
[31:27]Start frame — 0b111 (3 ones)
[26:24]Global brightness (0–31)
[23:16]Blue (0–255)
[15:8]Green (0–255)
[7:0]Red (0–255)

A full transmission starts with a 32-bit zero start frame, followed by one frame per LED, then an end frame of 32 ones (or n/2 clock pulses for long strips).

The simulator renders each node in real time as SPI frames are received. The colour of each node reflects the last complete frame written to it, including the per-LED global brightness factor.

  • Maximum of 1000 nodes per strip instance
  • End-frame requirements beyond 32 bits (for strips > 64 LEDs) are handled automatically
  • No power consumption modelling
  • No daisy-chain latency simulation between nodes