Arduino Game

Completed for ME 030 Electronics and Controls I, this project demonstrates custom PCBs, motor controller code, and hardware design packaged in a fun desktop game

This image shows the 3 custom PCBs I designed and soldered, which are connected to the Arduino and stepper motor

Overview

This project was completed for my ME30: Intro to Robotics class in order to explore the interface between software and hardware. The task was to build a playable game that incorporated a micro controller, electromechanical movement, and user input. I chose to tackle this task with a stepper motor driven by custom made H-bridges and motor driver code. The game itself is unique twist on the classic "Simon" game (which I named Anthony), where the player must repeat the given sequence of shapes by stopping a rotating needle on the correct shape.

The construction of this game is comprised of laser-cut acrylic plates for the body, an Arduino Uno, a hall sensor and magnet (for position calibration), two H-bridges, a stepper motor, and various electrical components to facilitate user input and control. 

The most challenging aspect of this project was the development of the stepper motor driver hardware and code. The H-bridges were completed as a standalone project of in this class, so I was able to directly implement them from the start. Due to the mechanical simplicity, I decided to challenge myself by coding my own motor driver instead of using existing libraries. This involved many hours of research and testing before I was able to successfully drive the stepper motor. Thanks to this work, I gained a deep understanding of how stepper motors function and how they can be most optimally used.

This 30 second video features how the game is played in single player mode

 More Information

Please feel free to explore the files used to create the custom PCBs and custom stepper motor driver code

 

 

Please feel free to connect with me.

EmailYouTubeLinkedIn