The TB6612FNG is a dual H-bridge motor driver that lets a microcontroller control two DC motors independently. Use PWMA/AIN1/AIN2 for Motor A and PWMB/BIN1/BIN2 for Motor B, while STBY acts as an enable/standby pin. Provide motor power on VM (to the motor output pins such as AO1/AO2 and BO1/BO2) and logic supply on VCC, with common ground connections.
| Pin | Signal | Description |
|---|---|---|
PWMA |
PWM | PWM speed-control input for motor channel A |
STBY |
enable | Standby enable input — drive high to enable the driver, low for standby |
GND |
ground | Common ground for logic, motor supply, and controller |
VCC |
power | Logic supply input for TB6612FNG control side, typically 3.3V or 5V |
AIN1 |
digital | Logic direction-control input 1 for motor channel A |
AIN2 |
digital | Logic direction-control input 2 for motor channel A |
PWMB |
PWM | PWM speed-control input for motor channel B |
BIN1 |
digital | Logic direction-control input 1 for motor channel B |
BIN2 |
digital | Logic direction-control input 2 for motor channel B |
VM |
power | Motor supply input for H-bridges — connect motor voltage, up to about 6V on this module |
AO1 |
power | Motor A output terminal 1 from the driver H-bridge |
AO2 |
power | Motor A output terminal 2 from the driver H-bridge |
BO1 |
power | Motor B output terminal 1 from the driver H-bridge |
BO2 |
power | Motor B output terminal 2 from the driver H-bridge |
GND.1 |
ground | Common ground connection, tied to the other GND pins |
GND.2 |
ground | Common ground connection, tied to the other GND pins |
Describe what you want to build. Codey Online writes the code, draws the wiring diagram, compiles it and flashes your board straight from the browser.
Start for free