With Help and Thanks To:
Professor Chang-Siu (ET-370)
Professor Clyatt (ET-370L)
This new take on the classic Simon Says game utilized a motion processing unit and the six faces of a cube to create the game. A round in the game consists of the device lighting up on each side of a cube in a randomized sequence, after which the player must rotate the cube around matching the sequences. If the player manages to follow the correct sequence, then all sides are lit up, and the round ends with golden flashing lights. Additionally, as you win a round, the speed of sequential rounds increases.
2. Arduino Nano
3. PLC 3D Printing Material
4. Assorted Wires
5. Soldering Equipment
9. 2x M3 Bolt
Step 1: Functionality
The above image highlights the basic functionality of the cube. In idle, represented at the top of the picture, the cube will softly cycle through a rainbow of colors. Once the button is pressed the game begins and in random order the six faces of the cube will flash blue. Remembering the order the sides were shown, the player now matches the sequence by rotating the respective sides upwards. As a side is rotates upwards, it will flash green indicating a detection and then stay green if correct. If at any point a side is presented to be incorrect to the shown sequence the cube will flash red and the game has been lost. If the player correctly matches the sequence, the cube would now be entirely green and soon followed by flashes of gold indicating a win!
Step 2: Code Logic
Step 3: Code Snippet
Step 4: Testing
After printing a box, we realized a few design errors and ended up modifying the box design multiple times until it had all of the features we needed and all of the electrical parts fit in their slots. Once we had the LED matrixes we played with the brightness, wall thickness, and fill pattern of the box to best suit our project, we ended up choosing the cubic infill pattern. Make sure to test your dimension before printing the whole board.
Step 5: 3D Design and Dimensions
Many of the dimensions for this project could be changed depending on how big you want the box to be. The only constants to keep in mind are the sizes of the LED slots. This is a standard for all LED strips. Any 3D printed dimensions can be found in the CAD files.
The dimension for our box as following:
LED slot width: 0.6″
Screw diameter: 0.11″
The dimension for our lid as following:
LED slot width: 0.6″
Step 6: Circuit Diagram & Power Comsumption
Each LED has a max current draw of 60 mA and using 72 at 4V (17.28 Watts). The Arduino Nano has a max current draw of 19 mA at 5V (.095 Watts) and the MPU-9250 120uA at 3.3V (0.000395 Watts). In total ~17.38 Watts need to be suppled at the 6V from the batterie pack meaning a peak current draw of ~2.9A. Note this is a relatively high current draw for the batteries and would drain them quickly but the LED’s are being ran at a much lower brightness and similarly would be using less than the 60 mA max draw.
Step 7: Assembly
The box was made using a 3D printer with clear PLA filament. All of the lights and wiring connections were soldered. All of the electronics are soldered onto a cookie that is screwed in inside of the box above the battery pack. The LED matrix was soldered together strip by strip and then hot glued into the LED slots inside the box.
After printing out the box and lid, hot glue the LED matrix onto each face of the cube with the LEDs facing out. Now you want to solder together all of the power inputs together then solder a wire from that into the 4 [V] power source. Repeat this step with the LED’s grounds. Connect the LEDs matrix signal inputs into the nano Arduino as right(D2), left(D3), front(D4), back(D5), top(D6) and bottom(D7).
The construction of this project was a lot of fun although there is still room for improvement.
Step 8: Takeaways
-Longer lasting and rechargeable batteries would add a lot of functionality to the cube
-Possibly a second button for different game/color selection could be done
Read more: IMU Controlled LED Cube (Simon Says)