DRV8871 single motor driver (3.6 A) with ESP32

Supply 6.5-45 V Bus GPIO
GNDIN2IN1VMOUT1OUT2

Pins and ESP32 wiring

PinRoleESP32 pinNotes
GNDGroundGNDPin order varies between boards: match by the printed label. Share it with the motor supply and the ESP32 GND
IN2Input (the ESP32 drives it)D25Direction / PWM
IN1Input (the ESP32 drives it)D26Direction / PWM
VMNot wired to the ESP32—Motor supply 6.5 to 45 V from a separate supply (screw terminal)
OUT1Not wired to the ESP32—Motor
OUT2Not wired to the ESP32—Motor

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.