#ledstring

2023-08-29

Made this string of addressable LED unicorns out of a bunch of Wilko unicorn solar lights, a WS2811 12V LED string, a DC-DC converter and an ESP32.

The only problem is I have fifty LEDs, but only thirty unicorns. Clearly I need to get more unicorns.

Also, yes, they are all extremely gay.

#ledstring #electronics #unicorns #pride #esphome #FastLED

A bunch of WS2811 unicorns showing the 6-colour Pride flagA bunch of WS2811 Unicorns showing the Trans Pride flagA bunch of WS2811 Unicorns showing the Pan Pride flagSome WS2811 Unicorns lit up in white
2022-02-01

Reverse-Engineering a Two-Wire LED Strip Protocol

Although Christmas may be several weeks behind us, various colorful LED contraptions can nowadays be found in our houses at any time of year. [Tim] got his hands on an LED curtain that came with a remote control that allows the user to set not only the color of the LEDs as a whole but also to run simple animations. But these were not your standard WS2812B strips with data lines: all the LEDs were simply connected in parallel with just two wires, so how was this even possible?

The LED string protocol is very simple, with one address field and one data field.

[Tim] hooked up his oscilloscope to the LED strings to find out how they worked, detailing the results in a comprehensive blog post. As it turns out, the controller briefly shorts the LED strip's supply voltage to generate data bits, similar to the way old pulse-dialing phones worked. A tiny chip integrated into each LED picks up these pulses, but retains its internal state thanks to a capacitor that keeps the chip powered when the supply line goes low.

After reverse-engineering the protocol, [Tim] went on to implement a similar design using an ATMega328P as a controller and an ATtiny10 as the LED driver. With just a few lines of code and a 100 nF buffer capacitor across the ATtiny's power pins, [Tim] was able to turn an LED on and off by sending pulses through the supply lines. Some work still needs to be done to fully implement a protocol as used in the LED strings, but as a proof-of-concept it shows that this kind of power-line communication is possible with standard components.

We've seen projects that send signals down a two-wire LED chain before, although as an add-on to a more ordinary LED strip. [Tim] is not the first to reverse-engineer poorly documented LED strip protocols, but probably won't be the last either.

#ledhacks #ledstring #powerlinesignal #twowirecommunication

image

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst