Rewriting WS2812 Driver Libraries For Optimization

ws2812_compared

We like [Tim’s] drive for improvement. He wrote a WS2812 driver library that works with AVR and ARM Cortex-M0 microcontrollers, but he wasn’t satisfied with how much of the controller’s resources the library used to simply output the required timing signal for these LED modules. When he set out to build version 2.0, he dug much deeper than just optimizing his own code.

We remember [Tim] from his project reverse engineering a candle flicker LED. This time, he’s done more reverse engineering by comparing the actual timing performance of the WS2812(B) module with its published specs. He learned that although several timing aspects require precision, others can be fudged a little bit. To figure out which ones, [Tim] used an ATtiny85 as a signal-generator and monitored performance results with a Saleae logic analyzer. Of course, to even talk about these advances you need to know something about the timing scheme, so [Tim] provides a quick run-through of the protocol as part of his write-up.

Click the top link to read his findings and how he used them to write the new library, which is stored in his GitHub repository.

Arduino Xmas Tree Shield

christmasshield

Nothing reminds us that it’s the holiday season more than an LED Christmas Tree submission. This obviously is not the first of its kind, but [Jose] does offer up a new technique using addressable RGB LEDs.

[Jose] decided to use 20 WS2812B RGB LEDs, which if you haven’t seen before, are RGB LEDs with an integrated controller. Yep, that’s right, just power/ground and 1 data line is all that is needed to control hundreds of RGB LEDs. This LED tree’s design is simple: a custom-etched PCB cut it in to the shape of a Christmas tree. The WS2812B LEDs helped keep everything clean, so the tree lacks any ‘ugly’ ornaments, except for the required bypass cap here and there. For an added bonus, the tree’s LEDs are synchronized to music generated by an Arduino via a piezo buzzer. Why is it a shield?  Well, the whole tree plugs in nicely to a standard Arduino interface. This looks like the perfect starter project to familiarize yourself with addressable LEDs, or at least to get you warmed up before building your own infinity portal.

Continue reading “Arduino Xmas Tree Shield” →

Backlit PCB Panel As Wall Art

For his buddy’s wedding [Saar Drimer] wanted a one-of-a-kind gift, and what’s more unique than a piece of art? He set out to design something that would speak to his geeky game-loving friend. This full-panel PCB is what he came up with. It’s a wall hanging that uses addressable LEDs and a PCB for the enclosure and as a diffuser.

On the right you can see the panel as it was delivered to him. He used routed slots to separate the main body of the enclosure from the four side pieces and the mounting bracket. This design lets him snap off the parts and solder them in place. The only thing you need to add to it is a pair of screws (well, and the components that make it light up).

We’re shocked by how well the PCB works as a diffuser. The substrate is translucent when not covered with silk screen or the copper layers. The outline of the letters uses that, as well as circular areas along the side pieces. The letters themselves are copper fills that have artistic patterns removed from them. This really adds to the visual appeal when the piece is illuminated by 42 WS2812B LEDs. The video below shows the piece in action. It really takes PCB as art to the next level

Continue reading “Backlit PCB Panel As Wall Art” →