This week in Connected Devices, we were tasked to create a hardware client for the ball drop game. I decided to “hack” a stuffed animal my partner had made me, with its limbs and nose as the controller buttons.
Bill of Materials
(1/2) yard of fuzzy yellow fabric - $45/yard. Purchased in Garment District
(5) large push buttons - $12.10 for 5. Amazon.
(5) white LEDs - provided by ITP.
Arduino Nano IOT 33
Micro USB cable
Solid core wire
Code
For the code, I had referenced this thread as a refresher for arrays and state changes.
Here is the code posted on GitHub.
Documentation
Here are the controller buttons on the breadboard, each illuminating their corresponding LED. The buttons are controlling the Left, Up, Right, Down functions of the ball game.
Here is a time-lapse of me soldering the buttons and LEDs:
Here is a video demonstrating the LEDs that turn on when the button is pressed.
Here is the video of the plushy controller being used to play the Ball Drop Game: