Adding external Neopixel (WS2812) LEDs

There are plenty of different versions of Neopixel and WS2812 boards/strips available. They all work more or less the same. Normally the first LED of a board or strip is accessible via the DI pin. The DO output pin of the first LED is connected to the DI input of the next LED. That way all LEDs are connected in a row. You can address them by counting the number of LED - the first LED is number 0.

All boards/strips have at least the following four connectors: VCC/5V, GND, DI, DO.

  • 3.3V pin of the Kniwwelino Board connects to the +5V pin of the LED board/strip
  • GND pin of the Kniwwelino Board connects to the GND pin of the LED board/strip
  • D5/D6/D7 pin of the Kniwwelino Board connects to the DI pin of the LED board/strip

If you want to connect more boards, the DO pin of the first board needs to be connected to the DI pin of the next board. VCC and GND need to be connected to all boards.

First you need to specify how many LEDs you want to connect and which pin you want to use. This block is absolutely nessessary if you want to use the Neopixel LEDs.

You can either set the color of all LEDs at once, or one color per LED.

There are plenty of predefined effects that shown fancy rainbows, sparkles etc.. on your connecte LEDs.

You can although change the brightness of all LEDs and the speed of the effect.

For example, to change the effect and color of the LEDs with the Kniwwelino buttons, you could use the following blocks:

Please make sure to not use any wait blocks in your “repeat forever” block, otherwise the LED effects will get very slow.

If you want to use a bigger number of LEDs (>10) you need to power them with an external 5V source. See for more information.