From the course: Learning Arduino: Interfacing with Analog Devices
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Exploring the Stepper Library - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
Exploring the Stepper Library
- [Instructor] A Stepper Library is a built-in library within Arduino that allows you to control uni-polar or bi-polar stepper motors. It comes with different functions that are used in the coding. The first one is Stepper Function. It is used at the top of this cache above steps and loops, where steps are the number of steps in one revolution of the motor, and pins one to four are the ones connected from the motor driver to the Arduino board pins. Number of steps per revolution are given in the data sheets. I'll go through couple of examples of data sheets of stepper motors. For example, this one, it's given in angles and degrees. Another example here, it's given by the number of counts per revolution. Let's see how to calculate steps if it was given in degrees. Steps per revolution is the way we refer to how the motor moves. If it was given in degrees, we call it resolution or degrees per step. Simply means in one step, how many degrees the motor is moving. A full revolution is 360…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Stepper motor introduction2m 5s
-
(Locked)
Unipolar stepper motors1m 32s
-
(Locked)
Stepper motor driver board ULN200356s
-
(Locked)
Wiring a stepper motor to Arduino1m 49s
-
(Locked)
Coding to control the motor directly4m
-
(Locked)
Exploring the Stepper Library3m 55s
-
(Locked)
Coding for the stepper motor3m 20s
-
(Locked)
Coding using the Stepper() function4m 51s
-
(Locked)
-
-