An LED bulb with integrated controller chip

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?

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.

Remoticon 2021 // Debra Ansell Connects PCB In Ways You Didn’t Expect

“LEDs improve everything.” Words to live by. Most everything that Debra Ansell of [GeekMomProjects] makes is bright, bold, and blinky. But if you’re looking for a simple string of WS2812s, you’re barking up the wrong tree. In the last few years, Debra has been making larger and more complicated assemblies, and that has meant diving into the mechanical design of modular PCBs. In the process Debra has come up with some great techniques that you’ll be able to use in your own builds, which she shared with us in a presentation during the 2021 Hackaday Remoticon.

She starts off with a quick overview of the state of play in PCB art, specifically of the style that she’s into these days: three dimensional constructions where the physical PCB itself is a sculptural element of the project. She’s crossing that with the popular triangle-style wall hanging sculpture, and her own fascination with “inner glow” — side-illuminated acrylic diffusers. Then she starts taking us down the path of creating her own wall art in detail, and this is where you need to listen up. Continue reading “Remoticon 2021 // Debra Ansell Connects PCB In Ways You Didn’t Expect”

Improving An Already Phenomenal Star Trek Prop

When Star Trek: Voyager was in the development phase, concept art was created for a new style of tricorder to be used by the crew of the titular starship. But as it often the case with a younger sibling, the show ended up having to largely make do with the hand-me-down props from Star Trek: The Next Generation, which had recently finished its TV run.

Trek aficionado [Mangy_Dog] completed a jaw-dropping recreation of this unused tricorder design back in 2019, but unable to leave well enough alone, he’s recently completed a second version that truly raises the bar for fan replicas. It’s not hyperbole to say that the prop he’s created is of a far higher quality and fidelity than anything they would have had during the actual filming of the show.

Now you might be thinking that building the second version of the tricorder was easier than the first, and indeed, [Mangy_Dog] learned some important lessons from the earlier build. But that’s not to say that construction of this new replica, which was actually done on commission, went off without a hitch. In fact, he almost immediately ran into a serious problem. When he attempted to order a new display from Nextion, he found the quality had dropped significantly from the ones he’d used previously. The viewing angles and color reproduction were abysmal, so he was forced to go back to the drawing board and not only find a new display, but a completely new graphics chip to talk to it. Continue reading “Improving An Already Phenomenal Star Trek Prop”

Segments light up as a person's step goal is achieved.

Slither: A Visual Pedometer That Sheds Light

Have you already broken that New Year’s resolution to get more exercise? Yeah, us too. Maybe the problem is simply that we didn’t gamify the goal. A simple visual aid that shows your progress can help make a goal more achievable and easier to stick to, day after January day. That’s the idea behind [skhackett]’s Slither, the visual pedometer.

Slither's backssssideAlthough Slither uses the Fit Bit app, no actual Fit Bit is required — great news for those of us who don’t like to wear accessories. But you will have to carry your phone everywhere if you want your steps to count. By tracking the steps taken each day, the sum of Slither’s segments signifies a weekly total goal of 50,000 steps.

Around back is a Feather Huzzah that receives step data from the phone and drives a strand of side-lit LED strips. There’s a Hall effect sensor in the tail, and Slither is powered on and off with a small, separate piece of wood and acrylic with a magnet embedded inside. Isn’t that a classy way to switch a snake?

We really like the look of the plywood here, though [skhackett] recommends using MDF instead because they experienced a fair amount of chipping. If you just want to watch the snake light up, it shouldn’t be too hard to cheat the pedometer.

Tileable LED matrix

Tiny LED Matrix Panels Tile Together Perfectly

There’s a lot to admire about LED matrix projects, which more often than not end up looking really cool. But most of them rely on RGB matrix panels sourced from the surplus market, and while there’s nothing wrong with that, building your own tiny, tileable LED matrix panels makes these builds just a little bit cooler.

There’s a lot to admire about these matrix panels, not least of which is the seamless way they tile together. But to get to that point, [sjm4306] had a lot of prep work to do. He started with a much simpler 5×7 array, using the popular WS2812 RGB LEDs on a custom PCB. With a little practice under his belt, it was time to move to the much smaller SK6805 LEDs, which were laid out in an 8×8 matrix. The board layout is about as compact as it can be; [sjm4306] reports that it pushed the PCB fab to their limits, but he ended up with LEDs spaced perfectly on the board and just enough margin to keep consistent spacing in two dimensions when the boards are adjacent to each other.

Assembly of the boards was challenging, to say the least. The video below shows that the design left barely enough room for handling the LEDs with tweezers, and some fancy finagling was needed to get the boards on and off the hotplate for reflow. [sjm4306] says that he’ll be exploring JLC PCB’s assembly service in the future, since each board took an hour for him to assemble. But they look fantastic when daisy-chained together, with no detectable gaps at the joints.

With matrices like these, the possibilities are endless. We’ve even got a whole list of LED matrix projects over on Hackaday.io for you to check out.

Continue reading “Tiny LED Matrix Panels Tile Together Perfectly”

Detail of an LED display made using ping-pong balls

Modular Design Enables Huge Ping-Pong Ball LED Displays

Ping-pong balls have many uses: apart from playing table tennis, they have been used for countless art projects, science experiments, and even to raise ships from the bottom of the ocean. As it turns out, they also come in handy as diffusers for LED pixels, allowing the construction of large-size displays without requiring large individual LEDs.

[david] designed an LED ping-pong ball display using 3D printed components, which allows for the construction of arbitrarily-large LED displays thanks to a strictly modular design. The basic unit is a small piece that holds a single LED module and has a cup-like structure for attaching a standard table tennis ball. Twenty-five of these basic units combine together into a panel that also contains wiring ducts. Finally, any number of these panels can be combined into a display, thanks to clips that give the structure rigidity in the out-of-plane direction.

A 3D-printed frame for making an LED display
A single panel holds 25 LEDs and comes with cable ducts. On the right is a clip for connecting multiple frames together.

Of course, simply mounting LED modules is not enough to create a display: the LEDs also need to be connected to power and data lines. [david] didn’t relish the thought of having to cut and strip 1,800 pieces of wire, and therefore devised a clever way of automating this process: he put a bunch of wires onto a piece of card stock and used a laser cutter to burn off the insulation at regular intervals. Then it was simply a matter of soldering these wires onto the LEDs and snipping off pieces along the data bus.

The finished panel is driven by a combination of a Teensy 3.2 to generate the data signals and a Raspberry Pi to process the images. You can see the rather impressive result in the video embedded below; if this inspires you to build your own, you’ll be happy to hear that the STL files and all code are available on [david]’s project page.

Massive LED displays are always fun to watch, and although this is not the first one to use ping-pong balls as diffusers, its modularity and open-source design makes this one perhaps the easiest to replicate. Assuming you have a good supplier of ping-pong balls, of course.

Continue reading “Modular Design Enables Huge Ping-Pong Ball LED Displays”

Need A Small, Cheap Ammeter? Blinkenlights To The Rescue!

You know how it is. You’ve got that new project running, and while it doesn’t consume much power, it also doesn’t give much indication of whether it’s functioning or just sitting there with a dead battery. What you need is an ammeter to check power consumption, even from across the room. And it just so happens that [Manuka] has Just The Circuit You Need, complete with a demonstration in the video after the break!

Oh sure, you could grab a cheap ammeter at your favorite tool import store or site, but those are bulky and take batteries. You could put in an LED that gets dimmer as voltage drops. But wait- is that the sun shining on it? or is it on? Or has something gone awry and it’s consuming too much power?

What [Manuka] gives us is a circuit that is designed to be built into your project or project’s power supply. Using only an ultra-bright white LED, red blinking LED, PNP transistor, and a diode, the circuit gives a strong visual indication of current consumption by blinking brighter and more frequently as current increases. With a bit of calibration, accurate measurements can be obtained. All of this is made possible by using the Flashing LED as a driver for the ultra-bright LED, which is a pretty slick hack!

Flashing LEDs have a great number of uses, like protecting your family from lions. Yes, really. Got a cool tip for flashing LEDs, blinkenlights, 555’s, or any odd thing that strikes your hackers fancy? Let the tip line know!

Continue reading “Need A Small, Cheap Ammeter? Blinkenlights To The Rescue!”