Data Sheet
Guide V1.0
Email: keen@elecrow.com Web: www.elecrow.com ---Designed by Elecrow Keen
61
IN3 -> D3
IN2 -> D4
IN1 -> D5
‘-’ -> GND
‘+’ -> +5V
Compile and upload
Tips: Refer to the operation demo (Step4 to Step8).
Language reference
Note:click on the following name to jump to the web page.
If you fail to open, use the Adobe reader to open this document.
Stepper myStepper = Stepper(steps, pin1, pin2, pin3, pin4)
stepper.setSpeed()
stepper.step()
Application effect
The motor will step one step at a time, very slowly.
Lesson 20: Stepper speed control
Overview
In this lesson, a potentiometer (or other sensor) on analog input 0 is used to control the
rotational speed of a stepper motor using the Arduino Stepper Library. The stepper is
controlled by with digital pins 2, 3, 4, and 5 for either unipolar or bipolar motors.