0% found this document useful (0 votes)
0 views

28BYJ-48 and the Arduino (1)

Uploaded by

e.furkanoral
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

28BYJ-48 and the Arduino (1)

Uploaded by

e.furkanoral
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

D R I V I N G T H E 2 8 BY J - 4 8

STEPPER MOTOR AND


ULN2003 BOARD WITH
AN ARUDINO
Bret Stateham
Microsoft Technical Evangelist
BretStateham.com
@BretStateham
OVERVIEW VIDEO

http://aka.ms/28byj
HOOKING IT ALL UP

Connect IN1-IN4 on the ULN2003


board to Digital Output pins 2-5
Respectively on your Arduino.

Use a separate power source for


the motor. Just do it.

234 5
DRIVING THE MOTOR

Connect IN1-IN4 on the ULN2003


board to Digital Output pins 2-5
Respectively on your Arduino.

Use a separate power source for


the motor. Just do it.

234 5
STEPPING METHODS
STEPS
METHODS PHASES 1 2 3 4 5 6 7 8

WAVE DRIVE BLUE


One phase PINK
at a time
YELLOW
Simplest, but
least used ORANGE
FULL STEP BLUE
Two phases
at a time
PINK
YELLOW
Strongest
Torque ORANGE
HALF STEP BLUE
One, or two
phases PINK
at a time YELLOW
Smallest step ORANGE
angle
Medium torque
GRAB THE CODE

You can grab all my


code and the slides
from my GitHub
repo…

http://aka.ms/28byjrepo
A R D U I N O S T E P P E R L I B R A RY

Yeah, it’s there,


Nah, it’s not great.

You CAN make it work


with the 28BYJ-48,
but it only supports
Full Stepping, and it
lacks other features
https://www.arduino.cc/en/Reference/Stepper
A C C E L S T E P P E R L I B R A RY

Yeah, it’s there,


Nah, it’s not great.

You CAN make it work


with the 28BYJ-48,
but it only supports
Full Stepping, and it
lacks other features
http://aka.ms/AccelStepper

You might also like