72
Lesson 31 Controlling Stepper Motor with Rotary Encoder
Overview
In this lesson, you will learn how to control stepper motors using a rotary encoder.
Components
Name Qty Name Qty
UNO R3 or MEGA 2560 1 Stepper Motor 1
Rotary Encoder Module 1
ULN2003 Stepper Motor
Driver Module
1
Power Supply Module 1 9V1A Adapter 1
DuPont Wire 17 Breadboard 1
Component Introduction
A rotary encoder, also called a shaft encoder, is an electro-mechanical device
that converts the angular position or motion of a shaft or axle to an analog
or digital code. There are two main types: absolute and incremental (relative). The output of
absolute encoders indicates the current position of the shaft, working as angle transducers.
The output of incremental encoders provides information about the movement of the shaft.
Wiring Diagram
Result
Rotating the rotary encoder, the stepper motor will rotary in the same direction accordingly.