Component guide · Intermediate · 3 min read
DRV8825 Stepper Driver

Pinout, Current Limit and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The DRV8825 is a small stepper motor driver for bipolar motors such as the NEMA 17. It takes STEP and DIR signals, drives up to about 1.5 A per coil without extra cooling (2.2 A with a heatsink and fan), runs from 8.2 to 45 V and offers microstepping down to 1/32 step. Set the current limit with the trim pot before connecting the motor.
Key specs at a glance
- Motor supply
- 8.2 to 45 V
- Current
- About 1.5 A per phase cooled passively, 2.2 A max with good cooling
- Microstepping
- Full, 1/2, 1/4, 1/8, 1/16, 1/32 (M0, M1, M2)
- Logic
- 3.3 V or 5 V signals (no logic supply pin needed)
- Current setting
- Vref × 2 = current limit (Pololu-style boards)
- Protection
- Over-current, over-temperature, under-voltage
What the DRV8825 driver is
Each pulse on STEP moves the motor one step (or one microstep), and DIR sets the direction. The driver chops the current to the limit you set, so you can run a 3 V motor from 12 or 24 V for better speed and torque without burning it.
It fits the same socket as the A4988 but the pot is on the other side, so check the orientation before plugging it into a CNC shield.
DRV8825 driver pinout
The pins on the DRV8825 driver and what each one does.
| Pin | Function |
|---|---|
| VMOT / GND | Motor supply 8.2 to 45 V, with a 100 µF capacitor |
| B2 B1 A1 A2 | Motor coils: one coil on A1/A2, the other on B1/B2 |
| STEP | Pulse input, one step per rising edge |
| DIR | Direction |
| EN | LOW = enabled (pulled low on board) |
| M0 M1 M2 | Microstep select |
| SLP / RST | Must be HIGH to run: tie together to 5 V or 3.3 V |
| FLT | LOW on a fault |
- VMOT / GND
- Motor supply 8.2 to 45 V, with a 100 µF capacitor
- B2 B1 A1 A2
- Motor coils: one coil on A1/A2, the other on B1/B2
- STEP
- Pulse input, one step per rising edge
- DIR
- Direction
- EN
- LOW = enabled (pulled low on board)
- M0 M1 M2
- Microstep select
- SLP / RST
- Must be HIGH to run: tie together to 5 V or 3.3 V
- FLT
- LOW on a fault
Wiring the DRV8825 driver
Never connect or disconnect the motor while the driver is powered; it can destroy the chip. Find the coil pairs with a multimeter: the two wires of one coil show a few ohms between them.
| DRV8825 driver pin | Arduino Uno | ESP32 |
|---|---|---|
| VMOT / GND | 12 V supply + / - (100 µF across) | 12 V supply + / - |
| STEP | D3 | GPIO 26 |
| DIR | D4 | GPIO 27 |
| SLP + RST | Tied to 5V | Tied to 3V3 |
| GND (logic) | GND | GND |
| A1 A2 / B1 B2 | NEMA 17 coils | NEMA 17 coils |
- VMOT / GND
- Arduino Uno:
- 12 V supply + / - (100 µF across)
- ESP32:
- 12 V supply + / -
- STEP
- Arduino Uno:
- D3
- ESP32:
- GPIO 26
- DIR
- Arduino Uno:
- D4
- ESP32:
- GPIO 27
- SLP + RST
- Arduino Uno:
- Tied to 5V
- ESP32:
- Tied to 3V3
- GND (logic)
- Arduino Uno:
- GND
- ESP32:
- GND
- A1 A2 / B1 B2
- Arduino Uno:
- NEMA 17 coils
- ESP32:
- NEMA 17 coils
Example code
For 1/16 step tie M2 HIGH (M0 and M1 LOW). The AccelStepper library adds smooth acceleration so the motor does not stall at speed.
const int STEP = 3, DIR = 4;
const int STEPS_PER_REV = 200 * 16; // 1.8 degree motor at 1/16 microstep
void move(int steps, bool dir, int us) {
digitalWrite(DIR, dir);
for (int i = 0; i < steps; i++) {
digitalWrite(STEP, HIGH); delayMicroseconds(3);
digitalWrite(STEP, LOW); delayMicroseconds(us);
}
}
void setup() {
pinMode(STEP, OUTPUT);
pinMode(DIR, OUTPUT);
}
void loop() {
move(STEPS_PER_REV, HIGH, 200);
delay(500);
move(STEPS_PER_REV, LOW, 200);
delay(500);
}Setup and tuning
power the logic and VMOT with no motor, measure Vref between the pot and GND, and set Vref = current ÷ 2 (0.5 V for 1 A).
fit 100 µF or more across VMOT and GND close to the driver.
stick on the heatsink; above 1.2 A add airflow.
lower the speed, add acceleration, or raise the current slightly.
What you need
Shop this list6 of 7 found in our store · ₹1,217
DRV8825 Stepper Motor Driver with Heatsink: the part this guide coversDRV8825 Stepper Motor Driver with Heatsink₹92- Uno R3 development board: the controller used in the wiring tableFind this part
NEMA 17 stepper motor (42HS48): the motor to driveNEMA 17 Stepper Motor 42HS48-2504 AF-01 (5.6 kg-cm)₹794
Electrolytic capacitor: bulk capacitance across the supplyElectrolytic Capacitor₹16
CNC Shield V3 for Arduino Uno: to plug in up to four driversCNC Shield V3 for Arduino UNO – A4988 DRV8825 Compatible₹89Closest match, check the specs
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- A4988 vs DRV8825 vs TMC2209: which driver to pick for noise, current and microstepping.
- TB6600 stepper driver: larger enclosed driver for bigger motors.
- 28BYJ-48 with ULN2003: the small geared stepper for light jobs.
Common mistakes to avoid
- Plugging the motor in or out while powered.
- Skipping the current limit setting, so the motor or driver overheats.
- Leaving SLP and RST floating, so the motor does not move.
- Inserting it into a CNC shield the wrong way round (the pot sits opposite to the A4988's).
Frequently asked questions
How do I set the DRV8825 current limit?
Measure Vref at the pot and set it to half the motor current: 0.5 V for 1 A.
DRV8825 or A4988?
DRV8825 handles a little more current, higher voltage and 1/32 step; the A4988 is quieter at low speed. A TMC2209 is quieter than both.
Why does my motor only vibrate?
The coil pairs are mixed up; swap the middle two wires.
Does it work with ESP32?
Yes, 3.3 V STEP and DIR signals work.
Can it drive a NEMA 23?
Small ones at low current, but a TB6600 or a bigger driver suits most NEMA 23 motors.
Parts for this guide
Projects that use it
Put this into practice: 3 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- DRV8825 stepper motor controller IC datasheet (Texas Instruments)
- Pololu DRV8825 stepper motor driver carrier documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

