rausch88
Posts: 11
Joined: Fri May 01, 2015 3:19 pm

ws2812b LED stips

Sat May 02, 2015 4:22 pm

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.

User avatar
DougieLawson
Posts: 35598
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: ws2812b LED stips

Sat May 02, 2015 6:08 pm

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.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
mikronauts
Posts: 2710
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: ws2812b LED stips

Sat May 02, 2015 6:18 pm

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.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
Douglas6
Posts: 4715
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: ws2812b LED stips

Sat May 02, 2015 7:39 pm

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.

User avatar
mikronauts
Posts: 2710
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: ws2812b LED stips

Sat May 02, 2015 10:36 pm

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.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

Return to “Windows 10 for IoT”