Arduino Electromechanical Box
November 2025
ArduinoC++Motor ControlFSM
About This Project
This was a fun one — I built a box with a switch on it that, when you flip it, doesn't just respond normally. Using Arduino and a state machine, I coded in different "tricks" so the box might pause for a second, oscillate back and forth, or throw out a random response instead.
The mechanical side (motors, switches, wiring) had to work with the code, so getting the timing to feel natural instead of janky took some trial and error. The state machine logic is what made it possible to have all these different behaviors without the code turning into a mess of if-statements.
It's not a practical project, but it taught me a lot about how to actually structure code for something that reacts to the real world in real time.
Technical Challenges
Getting the mechanical timing to line up with the code, making the motor moves look smooth instead of jerky, and making the random behavior actually feel fun instead of just glitchy.
What I Learned
Got a much better handle on finite state machines and motor control, and learned how much little details in timing change how "alive" something feels.
Project Goal
Built an Arduino box that reacts unpredictably to a switch flip using a finite state machine.
Engineering Focus
Focused on finite state machines, motor control, and making mechanical timing feel natural.
Skills Used
Arduino, C++, Motor Control, FSM