...
Electronics and Circuitry
Our electronics consists of a 12V power source, a stepper motor (17HS4401), a stepper motor driver (DRV8825), two push buttons and an Arduino Uno. The Arduino Uno houses the logic for controlling this circuitry. The two push buttons are for users to control the machine, one for drawing (spinning cam forward) and one for resetting (spinning cam backward).
Figure. Electronics before and after cleanup
Software
The control software programmed on Arduino is based on a state machine. For stepper motor control, we use a popular library, AccelStepper.