Controlling WS2812 device (RGB LED strip)
-
@Brice-Parent No need for extra hardware, you can drive WS2812 and WS2813 directly from the Omega, using the ws2812_draiveris kernel module. I mentioned the fact that the driver blocks the kernel for relatively long time because it will affect other kernel timing that is in the sub-millisecond range.
In practice however, I haven't noticed any delays in the usual services running in parallel on the Omega (ssh, onion desktop etc.).
So it's basically just a thing to keep in mind, in case you experience strange behaviour with other peripherals that might rely on tight timing. But otherwise, just use ws2812_draiveris and enjoy the colors
-
@Thomas-Mueller Hmm, im about to leave for a week of vacation - but on one of my Omegas indeed messagetorch does not work (it does on another one, though). I guess it must be something with libary dependencies, probably my build depends on a newer version of libstcpp or librt, which might be fixable/hackable by symlinks. I'll look into it when I'm back in a week.
-
thanks for having a look into this.
I have compiled the source now on myself and now it seems to work.If I have a couple of hours freetime in the next days I will build a "test torch".
If someone is interested in the binary which is working on stock Onion firmware then let me know and I will upload it somewhere.
GenieΓ deinen Urlaub!
-
I actually saw this post a few days ago, and I had previously been planning on having 5050 RGB strips in my room. I was planning on using the esp8266 but when I realized that it would take some time and programming understanding to control the rgb's, so I decided to use an LED amplifier because they generally cost less than $2 even with a remote. So I am going to use an arduino ir receiver to read the encoding from the remote and replicate it, so that the arduino/omega can send the ir signals to the RGB strips and I dont have to do much work.
-
@Matthew-Hartsuch that sounds like a good practical solution for lighting, where you want the same color for all LEDs of a strip
WS281x/SK6812/APA102 on the other hand allow controlling the color of each individual LED indepentently, which is great for animations and fancy light effects of all kinds.
-
@luz you are right, except that this does have color changing features, I can do the moving rainbow function, or just have one straight color, there are 20 basic colors plus the rainbow and some flashing light features, and I can change how fast it moves
-
@Thomas-Mueller looking forward to hear about test torch results
I probably built the messagetorch binary in the wrong openwrt tree, as I've switched from 15.05 to current master for my own experiments and also trying LEDE in parallel...
Returning from vacation, I found the APA102/Dotstar LEDs I ordered in the mailbox, and quickly tried those today. They seem to work fine with the Omega's GPIO based (bitbanging) SPI (first using the spi-tool as shown here and some useful background info!
I will now refactor my WS281x-wrapper class to also support APA102 (in addition to WS2812,WS2813,SK6812), and then use it in messagetorch, along with cleaning it up a bit. Once that's working, I'll try to provide new binaries actually working on stock Omegas.
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
@Alvin-chan said in Controlling WS2812 device (RGB LED strip):
@Matthew-Hartsuch so good,and clever. we are the professional led strip manufacturer,like ws2812b,5050rgb.ws2813,apa102,sk6812,sk9822,8806,dmx512 with good price and quality,,if need,contact me.
Email:Alvin@.........
@Alvin-chan no need to spam this forum with your advertisement!
-
@Luciano-S. It's a bot, no point in talking to it. Just report its posts and move on.
-
@Luciano-S. Your comment is OK, but please remove your unneeded quote (it's still spam).
-
@WereCatf said in Controlling WS2812 device (RGB LED strip):
@Luciano-S. It's a bot, no point in talking to it. Just report its posts and move on.
It is just a shame that there are no admins around to keep order here ... bot or not, make order is up to them.
-
@Luciano-S. I agree - haven't seen the admins around here for a long time - and there are a few issues that need addressing. I know they will have been busy with getting the Omega2 out, but now that it is being delivered is just the time we need their presence
-
@Kit-Bishop i believed it was not a startup campaign anymore ... but it looks like that they do similar mistakes again.
Letting wait a active community makes ppl move on ... good that there are other IOT projects with a good working infrastructureTony Stark is definitely missing in this forum
-
All of our Tony Starks have been heads down on getting to Omega into the hands of all of the backers, so we've been absent from the community for a little while.
@Kit-Bishop @Luciano-S I agree, we need to be more present on the Community and it's definitely our New Year's resolution
Expect to see a LOT more of us around here from now on.(I've deleted the spam btw)
-
i think you can use SK9822 LED Strip , just use the dotstar APA102 liBrary , by the way , WS2813 is also a choise , as it is faster and one led broken will not affect another
-
Timing of the WS2812B and SK6812 LEDs ( datasheet http://www.ledlightinghut.com/files/SK6812 LED Datasheet.pdf ) is not as critical as the datasheet alludes to. The only thing that matters is the high time for setting either a 0 or 1 bit.