Skip to content

Hypercube

2023-01-063 min read
Hardware
ESP32
Hypercube

I had built an infinity mirror in the past, but this Hypercube was a step up.

I was thrift shopping with my siblings during the holidays when I spotted a fancy looking photo frame with glass panels on 5 sides. I thought "that'd make for a great hypercube, and a gift." I was already curious about using addressable LEDs in a project, since my brother had just bought a few 5m rolls from a questionably cheap electronics store, and I had recently seen a YouTube video featuring the versatility of WLED, which allows you to control addressable LEDs on ESP microcontrollers.

I spent the next 30 minutes in the thrift shop looking for complimentary mirrors to go with the box. It turns out I did not need the mirrors, since I had one in the workshop from a past infinity mirror project. At least my sister enjoyed the 30 minutes trying on more clothes.

I had an ESP32 lying around, so I flashed it with WLED on it. In the meantime, I ordered some mirrored window tint film and WS2812B RGB 5050SMD Addressable LEDs from Amazon. The LEDs had a 60 Pixels/m density, spaced by a few cm each. Going for a high density of 144 Leds/m is about twice as expensive as of the time of writing this.

I applied mirrored tint film to each of the 5 included glass panels for the box. This took about about an hour. It takes some time to cut the untarnished pieces of film, apply tape to remove the protective layer, and then spray the glass and film with soapy water upon application. Once these dried overnight, I hot glued them into the wooden box frame.

Soldering the LEDs took the longest. I first cut up the LED strips into 4x 5 LED segments (z plane edges) and 8x 6 LED segments (xy plane edges). My dad had some enamel copper wire; thankfully just enough to get the job done. I trimmed some of the smalled wires I had ever cut, and went to work soldering the 5V, Data, and GND pads on all the LED strip segments. I ran some tests with WLED and everything worked well.

To install the LEDs in the box, I ultimately went with using a jig made of wooden skewers that I cut down to fit snugly inside the box. I then fit all the LED strips into the jig and hot glued them in. This took hours since I made the jig slightly too small, and the LED strips were too long. I did some finagling to fit everything in. Miraculously, everything fit into the wooden box when I pushed it in.

The last step was cleaning all the mirrors with a microfibre and sealing the lid.

I also cut a small plexiglass shield to put over the ESP32 to protect the soldered connections.

Hopefully the recipient of this gift enjoys it:)