Rubik's Cube with No Moving Parts (Blog_2)

Build Log 1: Fabricating PCBs

This build log documents the PCB design of the 6 identical boards for each of the 6 cube faces. Recall from the 'Project Details' section (above) that there will be a 7th central PCB that has a microcontroller and is responsible for power regulation. Each of the 6 cube-face boards has the following features:

  • 9 WS2812B LEDs (datasheet)

  • 2 MPR121 chips (datasheet)

  • 18 through-holes for connecting brass capacitive touch sensors

  • 4 mounting holes (M2 mounting bolts)

  • Additional through-holes for inter-PCB cabling

Below are images of the top and bottom PCB traces (red and blue lines, respectively). Note that some traces appear to be touching, this is not the case; I merely used a screenshot and then poorly compressed the image.

Eagle schematic of PCB (left image is the top traces and right image is the bottom traces)

Eagle schematic of PCB (left image is the top traces and right image is the bottom traces)

The topside has the 9 LEDs chained together and can then be connected to the neighbouring board, once connected there will be a continuous strip of 54 addressable LEDs instead of 6 segments of 9 LEDs. Matrix rotations will be used for calculations in the software.

The bottom side has two 12-channel MPR121 chips with different I2C addresses of 0x5B and 0x5C. These chips were chosen as the I2C protocol allows for easily checking the state of individual capacitive touch sensors as opposed to a convoluted multiplexing network. This will make developing the software that monitors for "swipes" easier (and faster). I unfortunately could not source an alternative 18-channel capacitive touch chip with I2C. If you wish to replicate this project please be aware that this chip is a legacy device and not recommended for new designs, however since this is a hobby project and not something I plan to make commercially this was not a concern (available for purchase here-as of Oct. 2020). Furthermore, on a personal level, I wanted to practice reflow soldering with a QFN chip (quad-flat no-leads).

Note that 6 of the 18 through-holes for connecting the brass capacitive touch sensors are on the edge of the board as castellated holes. While not my first preference this was the only way I could devise that connected the PCB to the corner capacitive touch sensors without interfering or block the light from the LEDs.

Assembling the PCBs was done with reflow soldering using a hot air gun. I would recommend doing the bottom side first to get the QFN packages out of the way. Below is an image of the assembled board mounted on a test rig.

Initial testing setup

Initial testing setup

Previous
Previous

Inverted Pendulum Stablization Mega Guide

Next
Next

Rubik's Cube with No Moving Parts (Blog_1)