DRV8833 dual motor driver with ESP32
Supply 2.7-10.8 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| AIN1 | Input (the ESP32 drives it) | D25 | Pin order varies between boards: match by the printed label. Motor A. PWM on one input, the other LOW |
| AIN2 | Input (the ESP32 drives it) | D26 | Motor A |
| BIN1 | Input (the ESP32 drives it) | D27 | Motor B |
| BIN2 | Input (the ESP32 drives it) | D32 | Motor B |
| NSLEEP | Input (the ESP32 drives it) | D33 | HIGH = driver on. Pulled up on some boards, not on others |
| NFAULT | Output (the part drives it) | D23 | Open drain, LOW on over-current or over-heat. Needs a pull-up |
| VM | Not wired to the ESP32 | — | Motor supply 2.7 to 10.8 V |
| GND | Ground | GND | Share it with the motor supply and the ESP32 GND |
| AOUT1 | Not wired to the ESP32 | — | Motor A |
| AOUT2 | Not wired to the ESP32 | — | Motor A |
| BOUT1 | Not wired to the ESP32 | — | Motor B |
| BOUT2 | Not 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
- Texas Instruments DRV8833 datasheet, VM 2.7 to 10.8 V; 1.5 A RMS per bridge; nSLEEP, nFAULT
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.