CE 4 something Fall 2023
Lab 1 Reverse Engineering Burner Alert - Part 1
Mason Brady
Email: mrbrady1@fortlewis.edu

Arduino Recreation

Introduction: This is my writeup for controlling a stepper motor with an encoder

Materials: Stepper Motor, 1x Uno, 1x Encoder

Methods: The stepper motor was wired to the motoro driver then to the arduino and then
the example script was loaded to the arduino to drive the motor as seen in Figure 1.

Figure 1. Stepper Movement Demo

The encoder was then programmed to step the motor based on its direction of movement and number of rotations. This code mostly worked but I think my breadboard was bad as when it got bumped the motor would sometimes rotate one step clockwise.

Figure 2. Encoder movement