DRV8825 stepper driver with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| EN | Input (the ESP32 drives it) | D25 | Enable, active LOW. Leave unconnected to keep it on |
| M0 | Not wired to the ESP32 | — | Microstep select |
| M1 | Not wired to the ESP32 | — | Microstep select |
| M2 | Not wired to the ESP32 | — | Microstep select |
| RST | Input (the ESP32 drives it) | D26 | Must be HIGH: tie RST and SLP to 3V3 |
| SLP | Input (the ESP32 drives it) | D27 | Must be HIGH: tie RST and SLP to 3V3 |
| STEP | Input (the ESP32 drives it) | D32 | One pulse = one step |
| DIR | Input (the ESP32 drives it) | D33 | Direction |
| VMOT | Not wired to the ESP32 | — | Motor supply 8.2 to 45 V from a separate supply. Add a 100 µF capacitor |
| GND_MOT | Ground | GND | Motor supply ground |
| B2 | Not wired to the ESP32 | — | Motor coil B |
| B1 | Not wired to the ESP32 | — | Motor coil B |
| A1 | Not wired to the ESP32 | — | Motor coil A |
| A2 | Not wired to the ESP32 | — | Motor coil A |
| FAULT | Output (the part drives it) | D23 | LOW on over-current or over-temperature |
| GND_LOGIC | Ground | GND | Logic ground: to the ESP32 GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Texas Instruments DRV8825 datasheet, Motor supply 8.2 to 45 V; logic inputs 3.3 V / 5 V compatible
- Pololu DRV8825 stepper driver carrier, Pinout
Try it in 3D in BoardPilot
Related parts
18650 Li-ion cell in holder28BYJ-48 stepper + ULN2003 driver433 MHz transmitter (FS1000A)74HC595 shift registerA4988 stepper driverActive buzzer
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.