I made a big shiny top hat with 1024 LEDs and glitter felt.
- cereal boxes (~3)
- white glue
- hot glue
- 2.5mm chipboard
- voltage converter (2x)
- Teensy 3.2 w/ pin headers
- 8x32 flexible PCB WS2812B LED panel (x4)
- jumper wires
- elastic strap
- glitter felt
- mounting tape (3x)
- battery pack (I'm using an XTPower MP-50000, but anything that outputs between 5v-35v at sufficiently high amperage will work)
The firmware is pretty self explanatory, and comes with the two modes:
- Rainbow bouncing rectangle thing with sparking white LEDs
- Mario running in circles
The rainbow mode uses a chain of filled rectangle sprites, and a "sparkle effect" sprite.
The Mario mode uses a set of sprites to represent each frame in the running animation.
If you want to build a DIY hat with 1024 LEDs, you probably know how to glue cardboard together.
So, the hat construction is mostly left as an exercise for the reader, but here is the basic strategy:
-
Use two layers of chipboard for the brim of the hat. It flexes more in one direction than the other, so offset the layers by 90 degrees. This worked pretty well to make it safe to pick up by any part of the brim.
-
Make a cylinder out of cereal boxes and glue, with a layer of chipboard about halfway up, inside the cylinder. The chipboard layer will rest against your head on the bottom, and hold the voltage and converters and Teensy on the top.
-
Make a lid that fits the hat, using more cereal boxes and chipboard.
-
Attach the cylinder to the brim. I used more glue and cereal box cardboard for this.
-
Use the mounting tape to attach the four LED panels to the outside of the cylinder. I was lucky in that a power of two LEDs fit my head, but you may need to adjust it somewhat.
-
Wire up the LED panels in series, and route the red and white power wires from the center of each panel into the top compartment of the hat.
-
Adjust the voltage converters to output 4.0 volts.
-
Use some more mounting tape to attach the voltage converters to the chipboard layer in the hat, and wire up two LED panels to each converter.
-
Wire up the Teensy to a voltage converter (VIN/AGND).
-
Wire up a Teensy to the LED panel with an exposed input wire (D1/GND).
-
Attach a piece of the elastic to the underside of the hat.
-
Cover it in felt, attached with hot glue.
-
Win.