DRV8833 dual motor driver with ESP32

Supply 2.7-10.8 V Bus GPIO
AIN1AIN2BIN1BIN2NSLEEPNFAULTVMGNDAOUT1AOUT2BOUT1BOUT2

Pins and ESP32 wiring

PinRoleESP32 pinNotes
AIN1Input (the ESP32 drives it)D25Pin order varies between boards: match by the printed label. Motor A. PWM on one input, the other LOW
AIN2Input (the ESP32 drives it)D26Motor A
BIN1Input (the ESP32 drives it)D27Motor B
BIN2Input (the ESP32 drives it)D32Motor B
NSLEEPInput (the ESP32 drives it)D33HIGH = driver on. Pulled up on some boards, not on others
NFAULTOutput (the part drives it)D23Open drain, LOW on over-current or over-heat. Needs a pull-up
VMNot wired to the ESP32—Motor supply 2.7 to 10.8 V
GNDGroundGNDShare it with the motor supply and the ESP32 GND
AOUT1Not wired to the ESP32—Motor A
AOUT2Not wired to the ESP32—Motor A
BOUT1Not wired to the ESP32—Motor B
BOUT2Not wired to the ESP32—Motor B

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.