Page 1 of 1

ws2812b LED stips

Posted: Sat May 02, 2015 4:22 pm
by rausch88
Hy

Did someone tried to use an LED strip of WS2812B LEDs with an Raspbery and Windows?
Or do you have an idea how that can work?

Thanks for your answers.

Re: ws2812b LED stips

Posted: Sat May 02, 2015 6:08 pm
by DougieLawson
Get it running with Linux by following http://popoklopsi.github.io/RaspberryPi-LedStrip/#/

Then to run it with Win10 IoT all you'll need to do is amend the supplied "Blinky" sample program to drive three GPIO pins rather than one.

Re: ws2812b LED stips

Posted: Sat May 02, 2015 6:18 pm
by mikronauts
Sorry, won't work for the OP as he was asking about WS2812 programmable LED's

The timing for those is insanely tight, I am not convinced a Pi could drive them (well, maybe with DMA and large memory buffer)

Easiest way: use an external microcontroller (AVR, PIC, Propeller) to do the crazy timing, and talk to it over serial.

I use Propellers to drive WS2812's, but I've seen Arduino's drive them too.
DougieLawson wrote:Get it running with Linux by following http://popoklopsi.github.io/RaspberryPi-LedStrip/#/

Then to run it with Win10 IoT all you'll need to do is amend the supplied "Blinky" sample program to drive three GPIO pins rather than one.

Re: ws2812b LED stips

Posted: Sat May 02, 2015 7:39 pm
by Douglas6
mikronauts wrote:The timing for those is insanely tight, I am not convinced a Pi could drive them (well, maybe with DMA and large memory buffer)
It can be done; there's a good write-up here: https://learn.adafruit.com/neopixels-on ... i/overview. Apparently using DMA and a large memory buffer. They do warn that it may not work on the Pi2B, and I have no idea if the code could be ported to Win10 IoT.

Re: ws2812b LED stips

Posted: Sat May 02, 2015 10:36 pm
by mikronauts
Thanks - I will check out the writeup!

Re/ Win10IoT... it would have to give an API for setting up a large DMA buffer, with the correct timing, then it should work there as well.
Douglas6 wrote:
mikronauts wrote:The timing for those is insanely tight, I am not convinced a Pi could drive them (well, maybe with DMA and large memory buffer)
It can be done; there's a good write-up here: https://learn.adafruit.com/neopixels-on ... i/overview. Apparently using DMA and a large memory buffer. They do warn that it may not work on the Pi2B, and I have no idea if the code could be ported to Win10 IoT.