User Manual
218
/
223
Lesson 33 Controlling Stepper Motor With Rotary Encoder
Overview
In this lesson, you will learn how to control stepper motors using a rotary encoder.
We will use the inexpensive and popular stepper motor that comes with its own
control board: the 28BYJ-48 stepper motor with the ULN2003 board.
The 28BYJ-48 motor is not very fast or very strong, but it’s great for beginners to
start experimenting with controlling a stepper motor with an Arduino.
We will write some code to have the motor move in the direction that we turn the
rotary encoder, and will also keep track of how many steps we have taken, so that
we can have the motor move back to the starting position by pressing down on the
rotary encoder switch.
Component Required:
(1) x Elegoo Mega2560 R3
(1) x 830 tie-points breadboard
(1) x Rotary Encoder Module
(1) x ULN2003 stepper motor driver module
(1) x Stepper motor
(1) x Power supply module
(1) x 9V1A Adapter
(9) x F-M wires (Female to Male DuPont wires)
(1) x M-M wire (Male to Male jumper wire)










