1/32
Looks like no tags are added yet.
Stepper Motor
can rotate continuously like DC motors and be positioned precisely (in discrete steps) like servo motors
Stepper Motor
falls somewhere between a conventional DC motor and a servo motor.
Stepper Motor
uses a cogged wheel and electromagnets to nudge the wheel round a ‘step’ at a time.
Sequence
determines the spinning direction of the motor.
Frequency
determines the speed of the motor.
Number
determines how far the motor will turn.
28BYJ-48
a 5-wire unipolar stepper motor that runs on 5V.
28BYJ-48
perfect for projects that require precise positioning, like opening and closing a vent.
34.3 Mn . m
how much torque that the motor delivers.
15 RPM
the speed that the torque is delivered.
4 Phases
how many phases does the 28BYJ-48 have?
High
“The red wire is always pulled ____."
Low
the other lead is pulled ___.
11.25 degrees
“when the 28BYJ 48 motor is operated in full-step mode, each step corresponds to a rotation of ____.”
32 steps
how many steps per revolution when the 28BYJ-48 is in full-step mode?
2038 steps
how many steps when we consider the 1/64 reduction gear set?
ULN2003
provides a higher current gain than a single transistor and allows a microcontroller’s low voltage low current output to drive a high current stepper motor.
GND
the ground pin.
VCC
this pin powers the motor.
Motor Connector
where the motor plugs in.
stepsPerRevolution
this value represents the number of steps required for one complete revolution of the stepper motor.
myStepper
is initialized with the stepsPerRevolution value and the pin numbers to which the stepper motor is connected.
setup()
is empty in this code, so it does not perform any initialization.
Stepper Library
automaticaly sets the motor control pins as outputs.
loop()
contains the main logic of the code, which repeats indefinitely.
5 RPM
what is the speed of the clockwise direction?
10 RPM
what is the speed of the counterclockwise direction?
step()
a blocking function. (means that the Arduino wil wait until the motor stops running before proceeding to the next line in your sketch).
Arduino Stepper Library
is perfect for simple, single-motor applications.
AccelStepper library
outperforms the standard Arduino Stepper library.
setup()
[ACCELSTEPPER]
is used to initialize the stepper motor.
distanceToGo()
[ACCELSTEPPER]
this is used to check if the motor has reached the target position.
myStepper.currentPosition()
changes the direction of the motor by negating the current position.
ensures that the motor will move in the opposite direction.