SPI to WS2812B Converter: More LEDs, More Power!
on
Use the WS2812(B)’s Headroom
Usually, it is assumed that WS2812(B) LEDs (and its clones) must run at 800 kHz, which is an inconvenient frequency for microcontrollers clocked at 4, 8, 12 or 16 MHz or any other frequency that is not a power-of-two multiple of 800 kHz. However, when you read the LED’s datasheet carefully, you will notice that the timing tolerances are almost 50%, which is rather generous.This means that a data rate of 1 MHz should work too as it is only 25% faster than 800 kHz and therefore within the 50% headroom. 1 MHz is a frequency that most SPI peripherals can produce easily, even if they only have a basic clock prescaler.
In this video we show you how to profit from this by adding a few components to the microcontroller.

Discussion (4 comments)