Dedicated LED Animation Framework For ESP32

[Eric Arcana] has been creating animated holiday decorations for several years, which involved a lot of custom code to make things light up the way he wanted, pulling the microcontroller to make changes. Using ESP32s with remote software updates is easier, but [Eric] also wanted to make the code simpler. To achieve this he created Fade, a custom programming language/framework for controlling LED animations from the ESP32.

Fade is written for addressable RGB LEDs like the Neopixel/WS2812. It keeps track of the current color of every LED in the system and allows the user to define what color it should be at a specified time in the future. Time is specified using 10 ms clock cycles. The LEDs will smoothly change from one color to the other in the specified number of clock cycles, without needing to specify what the intermediate colors should be.

Code is written in simple IDE, running on a web server on the ESP32 itself, or on a remote Windows PC. The language is very simple, but still powerful enough to create complex LED animations. A key part of it is the ability to specify multiple concurrent state changes in just a few lines of code. [Eric] also included optioning to take touch button inputs and use them to update the animations. Another nice feature is a simulation window on the desktop IDE. It allows you to create custom LED layouts on PC, and test your code without needing to send it to the ESP32.

Addressable LEDs have made creating large LED installations a lot simpler, like this 6 foot LED ball or a LED Video Wall.

Continue reading “Dedicated LED Animation Framework For ESP32”

Cool WS2811 Trick Makes LED Art Installation Smooth

Normally, when a project calls for addressable LEDs, we just throw a strip of WS2812s and an Arduino together, cobble together some code from the examples in the FastLED library, and call it a day. We don’t put much thought into what’s going on under the hood, unless and until we run into an LED project that’s a little more challenging.

Inventor [Leo Fernekes] found himself in such a situation recently, when he pitched in on an LED art installation. The project called for rings of LED bars around the trunks of trees on a private estate. The physical size of the project and the aesthetic requirements created significant challenges, though. One of these was finding a way to control the LED bars, each of which draws about 100 mA and needs to be very smoothly dimmed. [Leo] looked at the WS2811 LED driver, but found that the low drive current and the 8-bit PWM output failed to tick either of those boxes.

[Leo] solved both problems by using two of the three PWM channels on the chip in concert — one to control the current and one to PWM the LED. The circuit he came up with is deceptively simple — just four transistors, a Schottky diode, and a bunch of passives. The other clever bit is the data interface between LED bars, which can be configured as either single-ended or differential. This allows the same interface to be used for the short distance between bars on a tree, and the longer runs between trees.

As usual, [Leo] does a great job of explaining his design and how it works, which we find very instructional. He did something similar when he managed to dim a non-dimmable LED fixture.

Continue reading “Cool WS2811 Trick Makes LED Art Installation Smooth”

salah_360display-photos

A New Spin On 360 Degree Displays

Back in 2018, [Salah] created a prototype display that seems to defy logic using little more than a Pringles can and a fast motor. While not volumetric, this hack does show the same 2D image from any vantage point in 360 degrees around it.

How can cardboard create this effect? Somewhat like a zoetrope uses slits to create a shutter effect, this display uses a thin slit to limit the view of the image within to one narrow vertical slice at a time. When moving fast enough, Persistence of Vision kicks in to assemble these slices into a complete image. What we think is so cool about this hack is that the effect is the same from any angle and by multiple viewers simultaneously.

The project page and video demonstration after the break are light on details, though the idea is so simple as to not require additional explanation. We assume the bright LED seen in the video below was added to overcome the relatively dim appearance of the image when viewed through the narrow slit and isn’t strictly required.

Continue reading “A New Spin On 360 Degree Displays”

Big 3D-Printed Lamp Tries Some New Features

In lamp design, bulbs are usually given generous clearances because they get hot during use. LED bulbs however give off comparatively little heat, which opens a few new doors. [Mark Rehorst] created this huge 3D printed lamp, made with his custom 3D printer and a hefty 1 mm diameter nozzle, and the resulting device not only looks great, but shows off a few neat design features.

The LED filament bulb doesn’t give off much heat, so a PETG partial shade mounted directly to the bulb works fine.

[Mark] printed a partial shade in PETG that is made to sit directly on the bulb itself. The back of the shade is open, allowing light to spill out from behind while the front of the bulb is shielded, making it easier on the eyes. The result is pretty nifty, as you can see here. It sits in the center of the 600 mm tall lamp, which takes up most of the build volume of his self-made CoreXY-based printer, the UMMD.

The LED filament strands in this style of bulb are pretty neat in their own way, and some of you may remember that when they first became available as separate components, no time was lost in finding out what made them tick.

An OSHW IR Remote Control Powered By The ATtiny13A

The new hotness in consumer electronics might be RF remotes based on protocols like Bluetooth Low Energy, but there’s still plenty of life left in the classic infrared remote. Especially with projects like TinyRemoteXL from [Stefan Wagner], which let you build and program an IR “clicker” of your own. Whether you want to spin up your own custom universal remote or create a beefed up version of the TV-B-Gone, this open source effort is a great place to start.

The original TinyRemote.

As you might have guessed from the name, this project is actually a larger version of the TinyRemote that [Stefan] put together previously. The documentation for that project goes a bit more into the nuts and bolts of talking IR, and is definitely worth a read if you’re into the low level stuff. For the original five button TinyRemote, the hardware consists of little more than a ATtiny13A microcontroller, a pair of IR LEDs, and the transistors to drive them.

But on the XL, things are a bit trickier as there are now twelve buttons for the ATtiny13A to read. Obviously there aren’t enough pins to read so many buttons directly, but with a combination of BAS16TW diode arrays and resistors, [Stefan] is able to detect what button was pressed using the chip’s interrupt pin and ADC. Certainly a handy trick to have in the back of your mind, and the open source nature of this project gives you a great chance to see how it’s implemented.

Between this project and the impressive development board [Djordje Mandic] released recently, it seems we’re looking at something of an infrared hacking revival. Earlier this year we even saw the commercial release of an IR-equipped ESP8266 board.

Jigsaw Puzzle Lights Up With Each Piece

Putting the last piece of a project together and finally finishing it up is a satisfying feeling. When the last piece of a puzzle like that is a literal puzzle, though, it’s even better. [Nadieh] has been working on this jigsaw puzzle that displays a fireworks-like effect whenever a piece is placed correctly, using a lot of familiar electronics and some unique, well-polished design.

The puzzle is a hexagonal shape and based on a hexagonally symmetric spirograph, with the puzzle board placed into an enclosure which houses all of the electronics. Each puzzle piece has a piece of copper embedded in a unique location so when it is placed on the board, the device can tell if it was placed properly or not. If it was, an array of color LEDs mounted beneath a translucent diffuser creates a lighting effect that branches across the entire board like an explosion. The large number of pieces requires a multiplexer for the microcontroller, an ATtiny3216.

This project came out of a FabAcademy, so the documentation is incredibly thorough. In fact, everything on this project is open sourced and available on the project page from the code to the files required for cutting out the puzzle pieces and the enclosure. It’s an impressive build with a polish we would expect from a commercial product, and reminds us of an electrified jigsaw puzzle we saw in a previous build.

Thanks to [henk] for the tip!

LED Matrix Glasses Built With The Help Of Graph Paper

These days, there’s all manner of addressable LEDs out there that can be easily used to produce blinky, flashy projects. However, there’s nothing stopping makers from doing things the old fashioned way, and hacking together an matrix out of raw LEDs. [Deepak Khatri] did just that with his own custom build.

Rather than rely on a PCB or other substrate to hold the matrix together, [Deepak] elected to freeform the design instead. A matrix of holes was cut in a cardboard template with the aid of graph paper. LEDs were then inserted into the holes in the requisite pattern, and their own leads soldered together to create the frame for the glasses. Additional wires that were needed were then installed, doubling as a bridge to allow the glasses to rest comfortably on the nose. Black epoxy was then used on the back side to block the light from blinding the wearer. The matrix is controlled by a pair of shift registers addressed by a microcontroller, and the display animates impressively smoothly.

it’s a fun build, and one that we suspect looks particularly impressive at night. They’d also make it easy for your friends to spot you in a dark club. We’ve seen some impressively stylish LED glasses over the years, too, dating all the way back to [macetech]’s pair from 2012. Video after the break.

Continue reading “LED Matrix Glasses Built With The Help Of Graph Paper”