TB6612FNG dual motor driver with ESP32

Supply 3.3-5 V Bus GPIO
VMVCCGNDAO1AO2BO2BO1GND2PWMAAIN2AIN1STBYBIN1BIN2PWMBGND3

Pins and ESP32 wiring

PinRoleESP32 pinNotes
VMNot wired to the ESP32—Motor supply up to 13.5 V from a separate supply
VCCPower3V3Logic supply: 3V3
GNDGroundGND
AO1Not wired to the ESP32—Motor A
AO2Not wired to the ESP32—Motor A
BO2Not wired to the ESP32—Motor B
BO1Not wired to the ESP32—Motor B
GND2GroundGND
PWMAInput (the ESP32 drives it)D25Motor A speed (PWM)
AIN2Input (the ESP32 drives it)D26
AIN1Input (the ESP32 drives it)D27
STBYInput (the ESP32 drives it)D32Must be HIGH to run
BIN1Input (the ESP32 drives it)D33
BIN2Input (the ESP32 drives it)D23
PWMBInput (the ESP32 drives it)D19Motor B speed (PWM)
GND3GroundGND

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.