Collect round youngsters, as a result of it’s time for everybody’s favourite class: geometry! Area is three-dimensional, which is why every little thing has not less than some top, width, and depth. If we transfer down to 2 dimensions (which may’t really exist in the true world), we get fully flat objects with top and width however no depth. If we transfer down once more to a single dimension, we solely get one axis to work with — let’s name it top. We will consider that within the summary as a straight line. However how would fireworks work in a one dimension? Daniel Westhof created a firework animation-displaying machine to seek out out.
I simply defined how our world solely has three-dimensional objects and the pedants will say that this machine isn’t really displaying fireworks in a single dimension. That’s true, as a result of the LEDs have each width and depth. However the animation solely happens in a single dimension, identical to you’re studying this text on a display in two dimensions.
This machine pulls that off with a single lengthy strip of RGB LEDs and the animation impact is surprisingly convincing. On the push of a button, the “firework” launches from the underside at a quick fee. Because it will get increased, simulated gravity slows it down. As soon as it reaches its apex close to the highest, it explodes in a bathe of colourful LED flares. After the explosion, the flares succumb to gravity and drift in direction of the bottom. As a result of this solely happens in a single dimension on a single LED strip, that bathe of LEDs solely strikes up and down. Besides, the impact is instantly recognizable as a firework and that’s actually cool.
Westhof made this work with some fairly easy {hardware}. There’s a lengthy strip of WS2812B individually addressable RGB LEDs soldered to a small protoboard with a push button, resistor, and enormous purple LED. That protoboard has headers to plug into an ESP8266 improvement board, which controls the LED animation. Energy is available in by way of a USB cable and we might usually advise in opposition to that with this many LEDs. However as a result of solely a handful of these LEDs are lit at any given time, they don’t draw a ton of energy.
The entire magic is due to Westhof’s programming talent. By implementing particulars like gravity, he was in a position to make the animation look actual. That’s very spectacular on condition that he was solely working with a single dimension in a three-dimensional world.