Home Creators Posts Import Register Favorites Logout

Content

This is a very basic spiral LED strip just like the white version I looked at, but with no base and an extremely optimised controller that is literally operating on the very edge of WS2811/WS2812B addressable RGB LED timing.

When I tested the controller with other random WS2812B LED arrays the results were often glitchy due to the on-the-edge timing from the controller.

But it's still very impressive that they have managed to achieve what they have with a cheap microcontroller.

https://youtu.be/VGB7CFavLJ8

Files

RGB 36-LED spiral - bit bashed to the edge

Although this unit has been cost cut to the edge in terms of its controller, it would be the ideal base for a custom RGB control project. It has a spiral with 36 WS2812B style LEDs in it. If using with a different controller, make sure you double check the wire colours. In mine, red was +5V, white was 0V and black was data! As supplied it comes with a very basic controller that seems to be bit-bashing (literally toggling a bit in software) to create a very crude approximation for the data stream required to send data to WS2812B style addressable LEDs. A test with other strings of addressable LEDs showed that they have pushed the timing to the edge to the point that some LEDs struggled to handle the rogue timing and glitched randomly. It is possible that the strings I tested it with were over-sensitive to the timing. Because of the way the data is transferred along a string of LEDs one at a time, if there is an excessive delay between each RGB set then it's possible for one or more previous LEDs in the string to decide that the current stream of data has ended and to dump their data out to their LED chips and then wait for a new stream. That means that LEDs beyond that point may never receive data, or may end up glitching or have stuck-data - since future updates may not reach them. The ideal setup for controlling these addressable LEDs is a dedicated serial module in a microcontroller that churns out data from an area of memory continuously at the perfect rate. In this case they have squeezed surprising functionality out of a cheap microcontroller running on an internal oscillator, and just squeezing the timing tolerance of the LEDs to the every edge to allow a bit of processing between each burst of data. Not an easy feat with WS2812B style LEDs as they command a very high data speed with very little leeway. The bit that's causing the issue here is the tolerance of the "end of stream" timer in the LEDs. It's impressive that they have managed to achieve what they have in the software. It's also possible that they have chosen batches of the LEDs with a slower internal oscillator to widen the timing tolerance to make it work. Once again, this light came from AliExpress (not a sponsor):- https://www.aliexpress.com/item/1005007552112385.html Note that the listing is for a few styles and both plain white and RGB. If you enjoy my videos, the easiest way to support the channel is to subscribe and enjoy watching more videos. You can also help keep the channel independent from the quirks of the YouTube algorithm by supporting the channel on Patreon, which lets me link to my content on other platforms if YouTube uses the ban-hammer (again!) I release content for critique and feedback on Patreon as soon as it has been made. https://www.patreon.com/bigclive Alternatively, for a single contribution you can use PayPal:- https://www.paypal.com/paypalme/bigclive #ElectronicsCreators

Comments

Dave Frederick AKA @amorphuc

Very cool but that whole data line thing seems really complicated. Thanks so much for sharing.

Mike Page

I've checked and the "10 cent microcontroller" CH32V003 should be able to drive at least a short string of WS2812Bs. I ought to get up to speed with it - get a dev board. At 10c the assembly and programming costs could predominate. But they're a constant with microcontrollers, so I suppose a silly low price is still winning. I wondered if they might make good "slave" devices in larger designs. In that case I'd look at getting the big processor to program the small one(s).

Big Clive

I wasn't aware of those chips. And the programmer and software actually available too. I'll have to investigate that - especially given the huge clock speed.

Big Clive

It's demanding of processor time, but an incredibly simple serial stream and dynamic self addressing system.