APA102 aka “Superled”

Posted on Monday, September 22nd, 2014 in LEDs by DP


cpldcpu writes:

I contrast to the very timing-sensitive one-wire protocol of the WS2812, the APA102 uses a standard two wire SPI protocol – one clock line and one data line. Each LED has two inputs and two outputs which can be daisy chained. At the first sight this may seem wasteful, but it has the advantage of being supported by standard microcontroller periphery and it is insensitive to timing variations. Due to the critical timing requirement it is not possible to control the WS2812 from SOCs with multitasking operating systems, such as the Raspberry Pi. This should not be an issue with the APA102. Furthermore, the data can be transferred at an almost arbitrary clock rate. I was able to control the LEDs with 4 MHz SPI clock without any hitch. It appears that the maximum speed is mainly limited by the parasitics of the wiring.

This entry was posted on Monday, September 22nd, 2014 at 9:00 pm and is filed under LEDs. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

7 Responses to “APA102 aka “Superled””

  1. Kermit says:

    It would have been so much easier to lay out on a one layer flexi if they had put power and ground on opposite corners!

  2. LolAtKermit says:

    Kermit: just turn the chip 90 degrees.. power on top, ground on bottom and you can stripe do/co to di/ci of next chip.

  3. skoo says:

    It’s possible to control WS2812 from multitasking OS with SPI, assuming that SPI speed can be set so that bit timing is within WS2812’s specs (400ns+-150ns short pulse / 850ns+-150ns long pulse).

    For example using 3MHz SPI clock (333ns/bit) and 4-bits of memory for each WS2812 bit: 0111 = 3*333ns = 999ns (long pulse), 0001 = 1*333ns = 333ns (short pulse). These are barely in spec, but seem to work, better timings can be achieved by using more bits and faster clock or better fitting SPI clock if available.

    Data can be generated beforehand for whole string of LEDs (3x8x4 bits for each LED @3MHz) and buffer can be sent by using DMA transfer or by filling FIFO in IRQ.

  4. SOI Sentinel says:

    It’ll be fine. You want a ground plane underneath the chip anyway for thermal, so run the ground line along the top and flood under the chip down to the ground pin.

  5. Linda says:

    apa102 is a new product, many people are not familiar with it.
    you’d better read the Datasheet of APA102 Led Diode before use, below is the pdf datasheet in google:

  6. Alan says:

    what is the different from APA102 and APA102c, and SK9822, i read this from, now i am confuse about it

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Joe Desbonnet: Ya, I can recommend the low melting point solder. I used brand 'ChipQuik' and it's amazingly easy to use.
  • Jerome: I need a new BusPirate for the Fablab ;) Many thanks!
  • Max: Seems like an unexpectedly violent way to remove the chip indeed. A hot air station should of course do the job just fine, but in...
  • jose: Part removal described here is pure butchery, the cheapest hot air station will do a fast and clean job removing the QFP, heat air to...
  • Cody: Yes please