LED string – Hackaday https://hackaday.com Fresh hacks every day Mon, 31 Jan 2022 18:55:02 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 156670177 Reverse-Engineering a Two-Wire LED Strip Protocol https://hackaday.com/2022/01/31/reverse-engineering-a-two-wire-led-strip-protocol/ https://hackaday.com/2022/01/31/reverse-engineering-a-two-wire-led-strip-protocol/#comments Tue, 01 Feb 2022 00:00:05 +0000 https://hackaday.com/?p=517923 An LED bulb with integrated controller chipAlthough 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 …read more]]> An LED bulb with integrated controller chip

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?

An oscilloscope screenshot showing the data protocol used in an LED string
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.

]]>
https://hackaday.com/2022/01/31/reverse-engineering-a-two-wire-led-strip-protocol/feed/ 19 517923 LED light string component An oscilloscope screenshot showing the data protocol used in an LED string
LED Stick Person Costume Lights Up the Night https://hackaday.com/2018/10/31/led-stick-person-costume-lights-up-the-night/ https://hackaday.com/2018/10/31/led-stick-person-costume-lights-up-the-night/#comments Wed, 31 Oct 2018 08:00:01 +0000 http://hackaday.com/?p=330983 Sometimes a simple idea can yield fantastic results. A few runs of LED strips fastened to a black hoody and sweatpants and just like that…a LED stick person costume for …read more]]>

Sometimes a simple idea can yield fantastic results. A few runs of LED strips fastened to a black hoody and sweatpants and just like that…a LED stick person costume for Halloween. The creator of the “Glowy Zoey” [Royce] originally put together some glow in the dark stick person suits to stand out when hitting the slopes at night. Now he’s taken that simple idea for a costume and made a small business out of it.


“I had a lot of extra parts laying around. I gathered everything up and got to work soldering.”  – Royce Hutain

The suits themselves consist of button snaps and ribbon loops sewn into a pattern that routes the LED strips around the jacket’s hood and down each arm. To make the lighting effect pop, an all black plastic mask is used to cover the wearer’s face. It wouldn’t be that much a stretch to substitute EL wire in place of the LED strips if one were so inclined. We’d wager a number of you could pull this off straight out of the junkbox.

The Glowy Zoey stick figure suits even received some mainstream television press a few years ago when they were featured on Jimmy Fallon’s Late Night show. Note that visiting the Glowy Zoey website may take you back a bit since it features one of those autoplay jingles that were so prevalent in the Web 1.0 days. In fact the same jingle is used in the video below from their YouTube channel:

In case you missed it, check out this smokin’ hot Ghost Rider costume featured on Hackaday.

]]>
https://hackaday.com/2018/10/31/led-stick-person-costume-lights-up-the-night/feed/ 16 330983 GlowyZoey-Costume
A look at Chinese Value Engineering https://hackaday.com/2017/11/21/a-look-at-chinese-value-engineering/ https://hackaday.com/2017/11/21/a-look-at-chinese-value-engineering/#comments Wed, 22 Nov 2017 03:00:32 +0000 http://hackaday.com/?p=282292 Seventy cents doesn’t buy you a lot these days. Maybe some sweets or candies at most. How about a string of LEDs that you can use to decorate your home …read more]]>

Seventy cents doesn’t buy you a lot these days. Maybe some sweets or candies at most. How about a string of LEDs that you can use to decorate your home during the festive season? [Amaldev] was curious to know what was, or wasn’t, inside these blinky LED strings which made them so cheap. He’s done a Christmas LED Light Teardown and shows how blinky LED string lights can be built with the bare minimum of components.

The string he purchased had 28 LEDs – seven each in four colors, a controller box with one push button and a  power cord. Without even knowing what is inside the controller box, the cost of the product seems astonishing based on this BoM. The single push button cycles through eight different light patterns for each press. It even has a faux CE mark for the supply plug. Cracking open the case, he finds that the controller board is sparsely populated with just seven through hole components and a COB (chip on board) module. A simple, 8-bit, 8-pin microcontroller is possibly what controls the device.

[Amaldev] sketches out a schematic to figure out how it works. There are two arms with 14 LEDs of alternating colors, each of which is controlled by an SCR. Two GPIO output pins from the COB control the gates of each of these SCR’s. The button is connected to a GPIO input, and a second input is connected to the AC supply via a current limiting resistor. Most likely, this is used to determine the zero crossing of the waveform so that the COB can generate the appropriate trigger signals for the gate outputs.

It is unlikely that these products are manufactured using automated processes. The PCB production could be automated, but soldering all the wires, fitting it all in the enclosure and preparing the LED string itself would require manual labor. At US$ 0.7 retail on the street, it is difficult to imagine the cost breakdown even when the quantities are in large numbers. Maybe a combination of cheap components, recycled or rejected parts (mains cord/enclosure), lack of safety and protection measures (no fuses, no strain reliefs) and reducing the component BoM to an absolute, bare minimum, coupled with very high volumes lets them pull it off? What are your thoughts – chime in with comments.

]]>
https://hackaday.com/2017/11/21/a-look-at-chinese-value-engineering/feed/ 63 282292 string_light_01
The Collatz-O-Matic: a State Machine with Style! https://hackaday.com/2016/10/10/the-collatz-o-matic-a-state-machine-with-style/ https://hackaday.com/2016/10/10/the-collatz-o-matic-a-state-machine-with-style/#comments Mon, 10 Oct 2016 11:00:00 +0000 http://hackaday.com/?p=226191 If you have ever thought that working out a Collatz sequence by hand was alright but lacked buttons and lights, the Collatz-o-matic by [mechatronicsguy] has you covered! The device is a type of Tag …read more]]>

If you have ever thought that working out a Collatz sequence by hand was alright but lacked buttons and lights, the Collatz-o-matic by [mechatronicsguy] has you covered!

collatz-o-matic-closeupThe device is a type of Tag system calculator. [mechatronicsguy] explains that a Tag system is a method of computing similar to a Turing machine; it consists of a read & write FIFO array (or tape or queue) of indeterminate length, and at every step the system reads the symbol at the “head”, deletes a fixed number of symbols from the “head”, and depending on what that first symbol was, appends one or more symbols to the “tail”. Then the process repeats with whatever new symbol is at the head.

The Collatz-o-Matic uses an RGB LED string to represent the queue, and is set up in the following way:

  1. Delete two symbols (tags) from the front of the queue.
  2. If the first symbol deleted was:
    1. A – then write BC to the rear of the queue
    2. B – then write A to the rear of the queue
    3. C – then write AAA to the rear of the queue

Numbers are as easily represented as any other symbol, and the Collatz conjecture is that no matter what integer you start with, the system (probably) always eventually reaches state 1. There is video of the device demonstrating exactly that embedded below.

LED strips are clever stand-ins for a tape of indefinite length. The similarity to a Turing machine is clear, and we’ve seen a variety of physical implementations of Turing machines in the past – some with exquisite workmanship.

]]>
https://hackaday.com/2016/10/10/the-collatz-o-matic-a-state-machine-with-style/feed/ 2 226191 collatz-o-matic-headline collatz-o-matic-closeup