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

28BYJ-48 and The Arduino

This document discusses driving a 28BYJ-48 stepper motor using an Arduino and ULN2003 board. It describes connecting the motor and board, different stepping methods (wave drive, full step, half step), and provides links to code for controlling the motor. Code examples are available on GitHub and while Arduino has a stepper library, it is limited and another library called AccelStepper is recommended instead.

Uploaded by

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

28BYJ-48 and The Arduino

This document discusses driving a 28BYJ-48 stepper motor using an Arduino and ULN2003 board. It describes connecting the motor and board, different stepping methods (wave drive, full step, half step), and provides links to code for controlling the motor. Code examples are available on GitHub and while Arduino has a stepper library, it is limited and another library called AccelStepper is recommended instead.

Uploaded by

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

DRIVING THE 28BYJ-48

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.

2345
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.

2345
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
at a time PINK
YELLOW
Smallest step angle
Medium torque ORANGE
GRAB THE CODE

You can grab all my code


and the slides from my
GitHub repo…

http://aka.ms/28byjrepo
ARDUINO STEPPER LIBRARY

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
ACCELSTEPPER LIBRARY

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