DRV8871 single motor driver (3.6 A) with ESP32
Supply 6.5-45 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| GND | Ground | GND | Pin order varies between boards: match by the printed label. Share it with the motor supply and the ESP32 GND |
| IN2 | Input (the ESP32 drives it) | D25 | Direction / PWM |
| IN1 | Input (the ESP32 drives it) | D26 | Direction / PWM |
| VM | Not wired to the ESP32 | — | Motor supply 6.5 to 45 V from a separate supply (screw terminal) |
| OUT1 | Not wired to the ESP32 | — | Motor |
| OUT2 | Not 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
- Texas Instruments DRV8871 datasheet, VM 6.5 to 45 V; 3.6 A peak; current limit set by ILIM resistor
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.