Component guide · Intermediate · 4 min read
Stepper Motors and Drivers
28BYJ-48, NEMA 17, A4988, DRV8825, TMC2209
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A stepper motor turns in precise fixed steps, so you can position it accurately without a sensor. A NEMA 17 moves 1.8° per step (200 steps per revolution) and needs a current-limiting driver such as the A4988, DRV8825 or quiet TMC2209. The small 28BYJ-48 is a geared 5 V stepper driven by a ULN2003 board, ideal for slow, light jobs.
Key specs at a glance
- NEMA 17
- 42 mm frame, 1.8°/step (200 steps/rev), bipolar, about 1 to 2 A per phase
- 28BYJ-48
- 5 V unipolar, about 1:64 gearbox, about 2048 steps/rev (full-step), low torque
- A4988
- 8 to 35 V, up to about 2 A with cooling, 1/16 microstepping
- DRV8825
- 8.2 to 45 V, up to about 2.2 A with cooling, 1/32 microstepping
- TMC2209
- 4.75 to 29 V, about 2 A RMS, near-silent StealthChop, UART set-up
- Control
- STEP pulse per (micro)step, DIR pin for direction, EN to enable
How a stepper motor works
A stepper has a toothed magnetic rotor and several coils (phases). Energising the coils in sequence pulls the rotor round one step at a time. Because each pulse moves a known angle, counting pulses gives position. That is why 3D printers, CNC machines, camera sliders and plotters use steppers.
The trade-off: if the load is too heavy or acceleration too fast, the motor skips steps and the controller does not know. Size for at least a 2x torque margin and use acceleration ramps.
NEMA 17 vs 28BYJ-48
| 28BYJ-48 + ULN2003 | NEMA 17 + A4988/TMC2209 | |
|---|---|---|
| Supply | 5 V | 12 to 24 V |
| Steps/rev | About 2048 (geared) | 200 (1.8°), x microsteps |
| Torque | About 0.3 kg·cm | About 4 to 5 kg·cm holding (varies by length) |
| Max speed | About 10 to 15 RPM | Hundreds of RPM |
| Best for | Blinds, dials, rotating displays, learning | 3D printers, CNC, sliders, robot joints |
- Supply
- 28BYJ-48 + ULN2003:
- 5 V
- NEMA 17 + A4988/TMC2209:
- 12 to 24 V
- Steps/rev
- 28BYJ-48 + ULN2003:
- About 2048 (geared)
- NEMA 17 + A4988/TMC2209:
- 200 (1.8°), x microsteps
- Torque
- 28BYJ-48 + ULN2003:
- About 0.3 kg·cm
- NEMA 17 + A4988/TMC2209:
- About 4 to 5 kg·cm holding (varies by length)
- Max speed
- 28BYJ-48 + ULN2003:
- About 10 to 15 RPM
- NEMA 17 + A4988/TMC2209:
- Hundreds of RPM
- Best for
- 28BYJ-48 + ULN2003:
- Blinds, dials, rotating displays, learning
- NEMA 17 + A4988/TMC2209:
- 3D printers, CNC, sliders, robot joints
A4988 vs DRV8825 vs TMC2209
All three share the same "StepStick" footprint and STEP/DIR control.
| A4988 | DRV8825 | TMC2209 | |
|---|---|---|---|
| Motor voltage | 8 to 35 V | 8.2 to 45 V | 4.75 to 29 V |
| Current (with cooling) | About 2 A | About 2.2 A | About 2 A RMS |
| Microstepping | Up to 1/16 | Up to 1/32 | Up to 1/256 (interpolated) |
| Noise | Audible whine | Audible whine | Near silent |
| Extras | Cheapest | Higher voltage | Sensorless homing, UART tuning |
- Motor voltage
- A4988:
- 8 to 35 V
- DRV8825:
- 8.2 to 45 V
- TMC2209:
- 4.75 to 29 V
- Current (with cooling)
- A4988:
- About 2 A
- DRV8825:
- About 2.2 A
- TMC2209:
- About 2 A RMS
- Microstepping
- A4988:
- Up to 1/16
- DRV8825:
- Up to 1/32
- TMC2209:
- Up to 1/256 (interpolated)
- Noise
- A4988:
- Audible whine
- DRV8825:
- Audible whine
- TMC2209:
- Near silent
- Extras
- A4988:
- Cheapest
- DRV8825:
- Higher voltage
- TMC2209:
- Sensorless homing, UART tuning
Set the current limit (Vref) before you run the motor
Every StepStick driver has a small potentiometer that sets the maximum coil current. Too low and the motor skips; too high and the motor and driver overheat.
- 1Power the driver's logic and motor supply with no motor movement commanded.
- 2Measure the voltage between the potentiometer and GND with a multimeter.
- 3Set Vref for your motor's rated current using the board's formula. For Pololu-style A4988 boards: I = Vref / (8 x Rsense); with 0.068 Ω sense resistors, Vref = I x 0.544. For DRV8825 boards with 0.1 Ω: I = Vref x 2. Check your board's sense resistor value, because clones vary.
- 4Start at about 70% of rated current and raise it only if the motor skips.
Wiring a NEMA 17 to an A4988
12 to 24 V motor supply with a 100 µF electrolytic capacitor right at the pins.
3.3 or 5 V logic supply from your microcontroller.
the two motor coils. Find the pairs with a multimeter: wires of the same coil show a few ohms between them.
to two microcontroller pins. RESET and SLEEP: join together (they float otherwise).
leave open for full steps, or set high for microstepping.
#include <AccelStepper.h>
AccelStepper stepper(AccelStepper::DRIVER, 3, 4); // STEP = 3, DIR = 4
void setup() {
stepper.setMaxSpeed(1000); // steps per second
stepper.setAcceleration(500); // steps per second squared
stepper.moveTo(200 * 16); // one revolution at 1/16 microstepping
}
void loop() {
if (stepper.distanceToGo() == 0)
stepper.moveTo(-stepper.currentPosition()); // go back and forth
stepper.run();
}Try it: Stepper steps per mm calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Connecting or disconnecting the motor while the driver is powered; the voltage spike can destroy the driver instantly.
- Skipping the current-limit adjustment.
- Leaving out the 100 µF capacitor on VMOT, which lets supply spikes kill the driver.
- Leaving SLEEP and RESET floating on an A4988, so the motor never moves.
- Running a 28BYJ-48 fast; it stalls above about 15 RPM. Use a NEMA 17 for speed.
Frequently asked questions
What does NEMA 17 mean?
NEMA 17 describes the faceplate size, 1.7 inches (about 42 mm) square, and mounting holes. It does not define torque, current or step angle, so compare datasheets.
Which is better: A4988, DRV8825 or TMC2209?
TMC2209 for quiet, smooth motion such as 3D printers and camera sliders. DRV8825 for higher voltage and current. A4988 when cost matters most.
Can I run a NEMA 17 at 5 V?
Use at least the driver's minimum (8 V for A4988), and ideally 12 to 24 V. A current-limiting driver lets you use a supply far above the motor's rated voltage, which gives better high-speed torque.
How many steps per revolution does the 28BYJ-48 have?
About 2048 in full-step mode and 4096 in half-step mode, due to its roughly 1:64 internal gearbox.
Why does my stepper motor vibrate but not turn?
Usually the coil pairs are wired wrongly, the current limit is too low, or steps are sent too fast without acceleration. Check coil pairs with a multimeter first.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 17 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- A4988 datasheet (Allegro MicroSystems)
- DRV8825 datasheet (Texas Instruments)
- TMC2209 datasheet (Analog Devices / Trinamic)
- ULN2003A datasheet (Texas Instruments)
- AccelStepper library documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



