Phillips Exeter Academy
Final Project: Electronics Class
Create a cube shaped device capable of displaying numbers between one and six on each face. Have tactile controls for easy use, and be able to "roll" the device
This was an independent project. I designed, built, coded, and tested all components.
Above: A render from the design process
After a few revisions in Fusion 360 and some design changes, I printed the first batch of corners, a set of yellow and pink pieces. These were adequate in terms of their friction fit with the white middle pieces but didn't mesh correctly on the corners.
After soldering each panel's LEDs to a common ground, I connected the power to each of the Arduino Mega's pins. I also created a power switch to allow the Arduino to operate independently. The device was powered with a nine volt battery housed inside.
The Arduino was situated horizontally inside the cube along its longest dimension. With the battery wired in place, LEDs individually addressable, and power connected, I added the final component –an accelerometer/gyro IC from the Arduino basics kit. This allowed me to display a graph of the accelerometer and gyroscope values, see current temperature and a few other metrics.
The goal of the project was to use the accelerometer values to compute a "roll" value, and display that on the individually addressable faces of the dice. As this was a final project for a course and thus time constrained, I ended up creating code that demonstrated the individually addressable nature of the LEDs and the accelerometer individually.
All code was written in Arduino IDE, an application of C and C++. On the right is the serial monitor output from the accelerometer. It shows the change in acceleration in the X, Y, and Z directions. This function was demoed in the final project presentation.
I created a cube with individually addressable LEDs, an accelerometer, gyro, and temperature sensor. The cube operated on its own power, could be programmed without any disassembly, and was durable enough to be rolled or thrown.
A drawing showing important views of the CAD model
Copyright © 2021 Avery Clowes - All Rights Reserved.