Skip to content

audreycui/pcb-puzzle-cube

Repository files navigation

pcb-puzzle-cube

Mechanical, Optical, & Electronic Puzzle Cube

I made a puzzle cube for my wonderful electronics lab instructor who is also a professional trumpet player! A lot of the fun in making this was designing my circuits and mechanical components around 5 milled PCBs soldered together into a cube. Puzzles involve "playing" a sequence of notes on a flex PCB capacitive trumpet and using a butterfly flexure to align a laser path through a beamsplitter.

Milled PCBs

From left to right, the sides of the cube include:

  1. WS2812b LEDs
  2. resistor combinations with pads for probing
  3. laser diode regulated by a LM317 circuit and switched on/off electronically with a 2N7002 MOSFET
  4. QTPy ESP32 microcontroller

Sides 1 & 4 also include a photoresistor to detect laser beam alignment.

And the bottom:

  1. 5V power jack, switches for the board power and laser power, mount for butterfly flexure

image

Trumpet Capacitive Touch FlexPCB

I really wanted an excuse to fab a flexPCB, so I did so here. FlexPCB files are located in the trumpet subfolder.

The connector end of the trumpet was designed to fit in a 6pin/1mm FPC connector. I ended up just soldering it directly to the board though, since I ended up finding an end mill small enough to carve out the 1mm pitch pads. It also helped me avoid buying an extra component.

image

Video Demo

Watch a video demo of the cube being solved here :D

About

Mechanical, Optical, & Electronic Puzzle Cube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published