Throwback: Designing Addressable LEDs From Scratch

These days, addressable LEDs are all the rage. A little chip paired with each LED receives signals and modulates the light output as needed. [John Peterson] was working on a project along these very lines, designing his Curilights back in 2008!

[John] wasn’t the first to come up with the idea; he designed the Curilights to replicate a string of programmable LEDs he’d seen called Triklits. His design involved each RGB LED being fitted with a Microchip PIC 16F688 microcontroller, which could receive serial data and control the LED channels with PWM. These LEDs could then be strung up to create an addressable chain. It’s fundamentally the same concept as the WS2812, just in a larger format and built by hand. His design also had the benefit of non-volatile memory onboard the PICs, so animations could be stored even after power off. [John] later went on to build a controller for his lights, complete with sensors. It could be triggered by a motion sensor or light sensor, and would run animations on the string without the use of a computer.

While [John]’s design didn’t go on to bigger things or commercial success, it did win first place at the Third Annual Lantronix Wireless Design Contest. It also goes to show that many people will come around to the same idea when it makes good sense!

If you’re interested in the wider world of addressable LEDs, check out our breakdown on some of the products out there. Meanwhile, if you’re brewing up your own flashing, glowing projects, be sure to notify the tipsline!

Three flowers in a corner of a darkened room, shining in different colors.

LED Flower Bouquet Is A Radiant Hacker Desk Decoration

[Jeremy Cook] writes to us about a project of his – a bouquet of LED cube flowers. The flowers are PCB cubes made out of small castellated PCBs, each of those having an individually addressable LED in its center. Castellations hold the cubes together mechanically, and thanks to a cleverly chosen pinout, only two different kinds of PCB need to be ordered for building such a flower!

As a vase for these flowers, he decided to use a glass bottle – which would need a cutout to fit a ESP8266-powered NodeMCU board, a controller of choice for the project. After a few different approaches for cutting glass all resulted in the bottles cracking, he gave up on the “clean cut” idea and reused one of the broken bottles, gluing it back together well enough for the aesthetic to work.

[Jeremy] tells us that he’s had help from a hack we covered back in 2017 – using a diode for level shifting, as the ESP8266’s 3.3 V level signals aren’t a good match for WS2812 inputs. From there, the WLED firmware for the ESP8266 ties everything together beautifully. It’s clear that [Jeremy] had a field day designing this, toying with all the ideas and approaches!

Colorful LEDs are a must-have for decorating hacker homes. From a bouquet of flowers, you might find yourself sketching a castellated PCB tile design, and next thing you know, you’ve created a beautiful system of LED triangle tiles. Some PCB fabs scoff at castellations, and if that’s the case, you might as well finish the job yourself.

Continue reading “LED Flower Bouquet Is A Radiant Hacker Desk Decoration”

Image showing differences between WS2815 and WS2813 LED strips - the WS2815 strip lighting is more uniform throughout the strip's length.

Teaching You Everything You Might Have Missed About Addressable LEDs

Often, financial motivation results in people writing great educational material for hackers. Such is absolutely the case with this extensive documentation blog post on addressable LEDs by [DeRun]. This article could very be named “Addressable LEDs 101”, and it’s a must-scroll-through for anyone, whether you’re a seasoned hacker, or an artist with hardly any technical background and a desire to put LEDs in your creations.

This blog post is easy to read, painting a complete picture of what you can expect from different addressable LED types, and with apt illustrations to boot. Ever wonder which one of the addressable strips you should get from your retailer of choice, and what are the limitations of any specific type? Or, perhaps, you’d like to know – why is it that a strip with a certain LED controller is suspiciously cheap or expensive? You’re more than welcome to, at least, scroll through and fill into any of your addressable LED knowledge gaps, whether it’s voltage drops, color accuracy differences, data transfer protocol basics or dead LED failsafes.

Addressable LEDs have a special place in our hearts, it’s as if the sun started shining brighter after we’ve discovered them… or, perhaps, it’s all the LEDs we are now able to use. WS2812 is a staple of the addressable LED world, which is why we see them even be targets of both clone manufacturers and patent trolls. However, just like the blog post we highlight today mentions, there’s plenty of other options. Either way do keep coming cover a new addressable LED-related hack, like rewriting their drivers to optimize them, or adding 3.3V compatibility with just a diode.

We thank [Helge] for sharing this with us!

Keep Track Of Your Google Calendar With This Custom Build

Keeping track of your appointments on Google Calendar is easy enough if you’re holding a phone or sitting at a computer, but sometimes you just want to know what’s going on at a glance. This desktop calendar build from [andrei.erdei] does just that with plenty of helpful LEDs.

The attract mode is very cool, even if it doesn’t display any actual information.

The design is simple, using WS2812 LEDs to backlight numbers to indicate whether they are weekdays, weekends, anniversaries, holidays, or any other dates of importance. The numerical layout is a nifty perpetual design allowing the display to easily accommodate the structure of any month, even those neat and tidy ones that start on Monday.

The design relies on an ESP-01 to communicate with Google Calendar and display the relevant data. It’s all wrapped up in a 3D printed case, with the printed paper template backlit from behind some smoked acrylic giving a surprisingly professional-looking finish.

If you’re tired of picking up your phone for every last thing, this design could be just what you’re after for keeping track of your appointments. Alternatively, you could always go the hard copy route. Video after the break.

Continue reading “Keep Track Of Your Google Calendar With This Custom Build”

A NeoPixel Punk Console

NeoPixel Punk Console Drives WS2812s Using 555 Timers

NeoPixels, a type of LED strip with individually addressable pixels, are a firm favorite among creators of intricate light effects. They are popular for their versatility and the ease with which you can daisy-chain them. Although the protocol to drive these little LEDs can be rather tricky to implement due to tight signal timing constraints.

However, [Adrian Studer] proved that driving WS2812-based LED strips like the NeoPixel series doesn’t necessarily require hand-optimized assembly code. In fact, it doesn’t require any code at all. He built the NeoPixel Punk Console, a device that creates a light show without even using a microcontroller. Just a handful of 555 timers and some 74HC series logic work together to produce pulses with approximately correct timings.

Operating the device is as easy as tweaking a few potentiometers, just like its namesake the Atari Punk Console. It’s quite a random process though, and it might be impossible to re-create a pattern that you liked. Also, the LEDs mostly light up in primary colors at full power, though [Adrian] plans to make an improved version that drives the red, green, and blue subpixels separately. But the fact that all of this is implemented by just a bunch of 555 timers makes it a rather impressive hack by any standard.

We’ve seen more than a few ways of driving NeoPixels or similar WS2812-based LED strips, though all of them use a microprocessor of some sort; you can fire up a classic 6502, use SPI and DMA on a PIC32, or just plug in a single ARM Cortex M0+.

Continue reading “NeoPixel Punk Console Drives WS2812s Using 555 Timers”

WS2812s On A 6502

We can still remember when the WS2812 LED first came into our consciousness, way back in the mists of time. The timing diagrams in the datasheet-of-questionable-veracity made it sound quite tricky, with tight timing tolerances and essentially a high-speed two-bit PWM data protocol at 500 kHz. It was a challenge to bit-bang with an ATtiny85 back then, but there’s no way something as old and crusty as an Apple II would be up to snuff, right?

[Anders Nielsen] took up the challenge of getting the venerable 6502 processor to drive Neopixels and won! After all, if the chip is good enough for Bender and the Terminator T-800, it should be able to blink some colored LEDs, right? The secret sauce is shift registers!

Specifically, [Anders] abuses the 74LS165 parallel-in, serial-out shift register for his dirty work. Instead of bit-banging the WS2812’s “long high is a 1, short high is a 0” signal directly, the first few bits of the shift register are hard-wired to VCC and the last few to GND.

The bits in the middle determine if the pulse shifted out is long or short, and they’re set by the 6502, through a 6522 VIA chip, just like the Apple II would have. Clocking the data out of the shift register handles the timing-critical stuff. Very clever!

Video below the break.

Continue reading “WS2812s On A 6502”

FFT display on 16x16 RGB LED grid

Art Project Fast And Fouriously Transforms Audio Into Eye Candy

Fast Fourier Transforms. Spectrum Analyzers. Waterfall displays. Not long ago, such terms were reserved for high end test gear. But oh, how things have changed! It’s no surprise to many Hackaday readers that modern microcontrollers have transformed the scene as they become more powerful and as a result are endowed with more and more powerful software libraries. [mircemk] has used such a library along with other open source software combined with mostly off the shelf hardware to create what he calls the DIY FFT Spectrum Analyzer. Rather than being a piece of test gear, this artful project aims to please the eye.

The overall build is relatively simple. Audio is acquired via a line-in jack or a microphone, and then piped into an ESP32. The ESP32 runs the audio through the FFT routine, sampling, slicing, and dicing the audio into 16 individual bands. The visual output is displayed on a 16 x 16 WS2812 Led Matrix. [mircemk] wrote several routines for displaying the incoming audio, with a waterfall, a graph, and other visualizations that are quit aesthetically pleasing. Some of them are downright mesmerizing! You can see the results in the video below the break.

Of course the build doesn’t stop with slapping some hardware and a few passive components together. To really be finished, it needs to be encased in something worth displaying. [mircemk] does not disappoint, as a beautiful 3D-printed enclosure wraps it all up nicely.

We think that the final product is great, and it reminds us of some of the very things that inspired us early on in our hacking careers. We would love to see this project integrated with an Interactive Musical Art Installation of any kind, the more esoteric the better. Perhaps a 555 timer synth could fit the bill? Be sure to share your own hacks with us via the Tip Line!

Continue reading “Art Project Fast And Fouriously Transforms Audio Into Eye Candy”