ws2813

Working libraries, libraries being ported and related hardware
Post Reply
schoch
Posts: 4
Joined: Thu Jan 25, 2018 11:13 pm

ws2813

Post by schoch » Thu Jan 25, 2018 11:26 pm

Hello,

I just acquired a length of ws2813 LEDs but I can't seem to find an arduino library for them. Is anyone working on something or should I try to brush up on my C enough to take a pass at writing something?

User avatar
mrburnette
Posts: 2230
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: ws2813

Post by mrburnette » Fri Jan 26, 2018 12:01 am

I did a quick search of our libraries for STM32DUINO and did not find anything, but
A Google search did reveal a number of Arduino results:

Code: Select all

https://www.google.com/search?client=tablet-android-verizon&q=arduino+library+ws2813&oq=arduino+library+ws2813
This seems promising: https://forum.arduino.cc/index.php?topic=405287.0

schoch
Posts: 4
Joined: Thu Jan 25, 2018 11:13 pm

Re: ws2813

Post by schoch » Fri Jan 26, 2018 3:04 am

Thanks, I didn't pickup that fastled supported STM32. From further reading early adopters were using ws2812. I thought it might be something more like the apa102 but it appears the 2nd data connection is just hooked to the same data out pin and only serves as a backup connection.

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ws2813

Post by RogerClark » Fri Jan 26, 2018 9:24 pm

If these are just the standard addressable LEDs aka NeoPixels , there are at least 3 libs that support them.

I have one in my GitHub repo, @rickkimball posted some code, as did one or two more people.

So I don’t know why your searches didnt find these

But perhaps it’s a different device entirely

schoch
Posts: 4
Joined: Thu Jan 25, 2018 11:13 pm

Re: ws2813

Post by schoch » Sat Jan 27, 2018 12:17 am

Thanks for replying Roger.

I initially tried your library but it didn't appear to work and was causing flashing and odd behavior.

While the fastled has some support for the STM32 it doesn't look like the blue pill is supported in the mainline branch. I was able to get it working by using the following fork:

https://github.com/eosrei/FastLED-STM32

Using this fork required git clone it and then remove the FastLED installed via the Arduino IDE. I just moved it out of the <arduino home>/librararies folder and closed/relaunched the IDE.

Thanks so much for all your work in this community.

User avatar
mrburnette
Posts: 2230
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: ws2813

Post by mrburnette » Sat Jan 27, 2018 1:35 am

schoch wrote:
Sat Jan 27, 2018 12:17 am
...
Using this fork required git clone it and then remove the FastLED installed via the Arduino IDE. I just moved it out of the <arduino home>/librararies folder and closed/relaunched the IDE.
...
You are going to run into library issues now-and-then. Rather than moving around directories, you may find that incorporating STM32 library mods easier by including them into the sketch folder.

http://stm32duino.com/viewtopic.php?f=3&t=3146#p40432

Ray

racemaniac
Posts: 699
Joined: Sat Nov 07, 2015 9:09 am

Re: ws2813

Post by racemaniac » Sat Jan 27, 2018 8:45 am

it's indeed the same protocol as ws2812/neopixel, so should be easy to find libraries :)

Post Reply