TB6612FNG dual motor driver with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VM | Not wired to the ESP32 | — | Motor supply up to 13.5 V from a separate supply |
| VCC | Power | 3V3 | Logic supply: 3V3 |
| GND | Ground | GND | |
| AO1 | Not wired to the ESP32 | — | Motor A |
| AO2 | Not wired to the ESP32 | — | Motor A |
| BO2 | Not wired to the ESP32 | — | Motor B |
| BO1 | Not wired to the ESP32 | — | Motor B |
| GND2 | Ground | GND | |
| PWMA | Input (the ESP32 drives it) | D25 | Motor A speed (PWM) |
| AIN2 | Input (the ESP32 drives it) | D26 | |
| AIN1 | Input (the ESP32 drives it) | D27 | |
| STBY | Input (the ESP32 drives it) | D32 | Must be HIGH to run |
| BIN1 | Input (the ESP32 drives it) | D33 | |
| BIN2 | Input (the ESP32 drives it) | D23 | |
| PWMB | Input (the ESP32 drives it) | D19 | Motor B speed (PWM) |
| GND3 | Ground | 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
- Toshiba TB6612FNG datasheet, VCC 2.7 to 5.5 V, VM up to 13.5 V, 1.2 A per channel
- Pololu / SparkFun TB6612FNG carrier, Pinout
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.