DRV8825 stepper driver with ESP32

Supply 3.3-5 V Bus GPIO
ENM0M1M2RSTSLPSTEPDIRVMOTGND_MOTB2B1A1A2FAULTGND_LOGIC

Pins and ESP32 wiring

PinRoleESP32 pinNotes
ENInput (the ESP32 drives it)D25Enable, active LOW. Leave unconnected to keep it on
M0Not wired to the ESP32—Microstep select
M1Not wired to the ESP32—Microstep select
M2Not wired to the ESP32—Microstep select
RSTInput (the ESP32 drives it)D26Must be HIGH: tie RST and SLP to 3V3
SLPInput (the ESP32 drives it)D27Must be HIGH: tie RST and SLP to 3V3
STEPInput (the ESP32 drives it)D32One pulse = one step
DIRInput (the ESP32 drives it)D33Direction
VMOTNot wired to the ESP32—Motor supply 8.2 to 45 V from a separate supply. Add a 100 µF capacitor
GND_MOTGroundGNDMotor supply ground
B2Not wired to the ESP32—Motor coil B
B1Not wired to the ESP32—Motor coil B
A1Not wired to the ESP32—Motor coil A
A2Not wired to the ESP32—Motor coil A
FAULTOutput (the part drives it)D23LOW on over-current or over-temperature
GND_LOGICGroundGNDLogic 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

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.