TB6612FNG Motor Driver
Toshiba dual H-bridge motor driver that runs two DC motors (or one bipolar stepper) at up to 1.2A average per channel through low-resistance MOSFET outputs.
- InterfaceGPIO
- Dimensions20.4 × 20 × 11.2 mm
- Weight3 g
- Logic supply (VCC)2.7 to 5.5 V

The TB6612FNG is Toshiba's dual H-bridge for two DC motors: 1.2 A average and 3.2 A peak per channel, motors up to 13.5 V (15 V absolute maximum) and logic at 2.7 to 5.5 V (Toshiba TB6612FNG datasheet, pp.1-3). Wire AIN1/AIN2 and BIN1/BIN2 to digital pins, PWMA and PWMB to PWM pins, drive STBY high, put the motor supply on VM and the logic supply on VCC, and join all grounds.
The TB6612FNG is a dual H-bridge motor driver IC from Toshiba with LD-MOS output transistors. On a SparkFun-style breakout it exposes two independent channels, A and B, each able to drive one brushed DC motor, while the two channels together can drive a single bipolar stepper. Toshiba rates each channel at 1.2 A average and 3.2 A peak, with 1.0 A per channel as the recommended operating maximum at VM of 5 V and above.
Each channel is steered by two direction inputs (AIN1/AIN2 for channel A, BIN1/BIN2 for channel B) plus a PWM speed input (PWMA and PWMB). The direction pins select one of four modes: clockwise, counter-clockwise, short brake and stop, and the PWM pin, usable up to 100 kHz, sets speed. A shared STBY pin puts both bridges in standby when it is low; it has an internal 200 kΩ pull-down. Logic runs on VCC of 2.7 to 5.5 V, so the control side connects directly to 3.3 V and 5 V microcontrollers.
Motor power enters on a separate VM rail (up to 13.5 V operating, 15 V absolute maximum). The output stage drops only 0.5 V typical across its upper and lower switches at 1 A, and it includes regenerative diodes, so it runs cool and needs no external flyback diodes. Built-in thermal shutdown (175 °C, designed value) and low-voltage detection guard the device during faults.
TB6612FNG Motor Driver pinout
| Pin | Function | Type |
|---|---|---|
| VM | VM4.5 to 13.5 V (motors) | power in |
| VCC | VCC2.7 to 5.5 V (logic) | power in |
| GND_VM | GND | power in |
| A1 | Digital | free |
| A2 | Digital | free |
| B1 | Digital | free |
| B2 | Digital | free |
| GND_AUX | GND | power in |
| PWMA | Digital, PWM | input |
| AIN2 | Digital | input |
| AIN1 | Digital | input |
| STBY | Digital | input |
| BIN1 | Digital | input |
| BIN2 | Digital | input |
| PWMB | Digital, PWM | input |
| GND_LOGIC | GND | power in |
How to wire the TB6612FNG Motor Driver
Pin by pin, for the board you have.
| TB6612FNG Motor Driver | Arduino Uno | Note |
|---|---|---|
| AIN1 | D2 | |
| AIN2 | D3 | |
| PWMA | D5 | |
| BIN1 | D4 | |
| BIN2 | D6 | |
| PWMB | D9 | |
| STBY | D7 | |
| VCC | 5V | |
| GND_LOGIC | GND | |
| GND_VM | GND | |
| VM | a separate 4.5 to 13.5 V motor supply, its − to GND | |
| A1, A2 | motor A | |
| B1, B2 | motor B |
| TB6612FNG Motor Driver | ESP32 DevKit V1 | Note |
|---|---|---|
| AIN1 | GPIO13 (D13) | |
| AIN2 | GPIO14 (D14) | |
| PWMA | GPIO4 (D4) | |
| BIN1 | GPIO27 (D27) | |
| BIN2 | GPIO26 (D26) | |
| PWMB | GPIO16 (RX2) | |
| STBY | GPIO25 (D25) | |
| VCC | 3V3 | |
| GND_LOGIC | GND | |
| GND_VM | GND | |
| VM | a separate 4.5 to 13.5 V motor supply, its − to GND | |
| A1, A2 | motor A | |
| B1, B2 | motor B |
| TB6612FNG Motor Driver | Raspberry Pi Pico | Note |
|---|---|---|
| AIN1 | GP0 | |
| AIN2 | GP1 | |
| PWMA | GP2 | |
| BIN1 | GP3 | |
| BIN2 | GP4 | |
| PWMB | GP5 | |
| STBY | GP6 | |
| VCC | 3V3 | |
| GND_LOGIC | GND | |
| GND_VM | GND | |
| VM | a separate 4.5 to 13.5 V motor supply, its − to GND | |
| A1, A2 | motor A | |
| B1, B2 | motor B |
TB6612FNG Motor Driver code
Every example here compiles for its board.
// TB6612FNG Motor Driver on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/tb6612fng-motor-driver
// TB6612FNG dual H-bridge. Wiring above.
#define AIN1 2
#define AIN2 3
#define PWMA 5
#define BIN1 4
#define BIN2 6
#define PWMB 9
#define STBY 7
void setup() {
pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT); pinMode(PWMA, OUTPUT);
pinMode(BIN1, OUTPUT); pinMode(BIN2, OUTPUT); pinMode(PWMB, OUTPUT);
pinMode(STBY, OUTPUT);
digitalWrite(STBY, HIGH); // enable both channels
}
void loop() {
// Motor A forward, motor B reverse.
digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); analogWrite(PWMA, 200);
digitalWrite(BIN1, LOW); digitalWrite(BIN2, HIGH); analogWrite(PWMB, 150);
delay(1500);
// Reverse motor A (swap the direction inputs).
digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH);
delay(1500);
// Standby → both motors stop.
digitalWrite(STBY, LOW);
delay(1000);
digitalWrite(STBY, HIGH);
}
Compiled for arduino:avr:uno on 2026-10-29// TB6612FNG Motor Driver on ESP32 DevKit V1: wiring and a free simulation at https://www.tinkered.ai/components/tb6612fng-motor-driver
// TB6612FNG dual H-bridge. Wiring above.
#define AIN1 13
#define AIN2 14
#define PWMA 4
#define BIN1 27
#define BIN2 26
#define PWMB 16
#define STBY 25
void setup() {
pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT); pinMode(PWMA, OUTPUT);
pinMode(BIN1, OUTPUT); pinMode(BIN2, OUTPUT); pinMode(PWMB, OUTPUT);
pinMode(STBY, OUTPUT);
digitalWrite(STBY, HIGH); // enable both channels
}
void loop() {
// Motor A forward, motor B reverse.
digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); analogWrite(PWMA, 200);
digitalWrite(BIN1, LOW); digitalWrite(BIN2, HIGH); analogWrite(PWMB, 150);
delay(1500);
// Reverse motor A (swap the direction inputs).
digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH);
delay(1500);
// Standby → both motors stop.
digitalWrite(STBY, LOW);
delay(1000);
digitalWrite(STBY, HIGH);
}
Compiled for esp32:esp32:esp32 on 2026-10-29// TB6612FNG Motor Driver on Raspberry Pi Pico: wiring and a free simulation at https://www.tinkered.ai/components/tb6612fng-motor-driver
// TB6612FNG dual H-bridge. Wiring above.
#define AIN1 0
#define AIN2 1
#define PWMA 2
#define BIN1 3
#define BIN2 4
#define PWMB 5
#define STBY 6
void setup() {
pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT); pinMode(PWMA, OUTPUT);
pinMode(BIN1, OUTPUT); pinMode(BIN2, OUTPUT); pinMode(PWMB, OUTPUT);
pinMode(STBY, OUTPUT);
digitalWrite(STBY, HIGH); // enable both channels
}
void loop() {
// Motor A forward, motor B reverse.
digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW); analogWrite(PWMA, 200);
digitalWrite(BIN1, LOW); digitalWrite(BIN2, HIGH); analogWrite(PWMB, 150);
delay(1500);
// Reverse motor A (swap the direction inputs).
digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH);
delay(1500);
// Standby → both motors stop.
digitalWrite(STBY, LOW);
delay(1000);
digitalWrite(STBY, HIGH);
}
Compiled for rp2040:rp2040:rpipico on 2026-10-29Before you wire it
- Each channel: wire xIN1 and xIN2 to two MCU digital pins (direction) and PWMx to a PWM-capable pin (speed). On the Uno the PWM pins are D3/5/6/9/10/11.
- Wire STBY to a digital pin and drive it HIGH (or tie it to VCC): LOW disables both channels, so the motors never move if STBY stays low.
- Power: VCC → logic 5V (3V3 on ESP32), VM → the motor supply, and share GND across GND_LOGIC / GND_VM and the MCU.
- Wire each motor across a channel's outputs: motor A across A1/A2, motor B across B1/B2.
- No driving a DC motor straight from an MCU pin: it must go through the bridge outputs.
- No leaving STBY floating: drive it HIGH (or tie to VCC), or the motors stay off.
- No analogWrite on the direction pins (xIN1/xIN2): those are digital; PWM only on PWMx.
- Feed the motors on VM (up to 13.5 V) and power the logic separately on VCC at 2.7 to 5.5 V, matched to your microcontroller's logic level.
- Tie all grounds together: the driver GND pins, the motor supply ground and the microcontroller ground must share one reference.
- Drive STBY high to enable the outputs. With STBY low or left floating (it has an internal 200 kΩ pull-down), both bridges stay in standby.
- Toshiba recommends at most 1.0 A per channel with VM of 5 V or more, rates 1.2 A average as the absolute maximum, and allows 3.2 A only for a single 10 ms pulse. Keep the motor's running current within that, and its stall current short.
- The output stage includes regenerative diodes, so external flyback diodes are not required. SparkFun's breakout already carries filtering capacitors on both supply lines.
- Drive PWMA and PWMB from PWM-capable pins (up to 100 kHz) for speed, and set direction with the AIN and BIN pin pairs.
Specifications
- Interface
- GPIO
- Dimensions
- 20.4 × 20 × 11.2 mm
- Weight
- 3 g
- Logic supply (VCC)
- 2.7 to 5.5 VToshiba TB6612FNG datasheet, p. 3
- Motor supply (VM)
- 4.5 to 13.5 V (15 V absolute)Toshiba TB6612FNG datasheet, p. 3
From the Toshiba / SparkFun-style TB6612FNG carrier's datasheet, published by Toshiba / SparkFun-style TB6612FNG carrier.
Common mistakes
Leaving STBY low or floating
STBY low means standby, and an internal pull-down holds it low when unconnected. If it is not driven high, both H-bridges stay off and the motors never move whatever the direction or PWM pins do. Tie STBY to a GPIO you set high, or to VCC.
No common ground
The logic ground, the motor supply ground and the microcontroller ground must all connect. Without a shared reference the direction and PWM signals are undefined for the driver, causing erratic or dead outputs.
Confusing VM and VCC
VM is the motor supply (up to 13.5 V) and VCC is the logic supply (2.7 to 5.5 V, 6 V absolute maximum). Feeding the motor rail into VCC damages the IC. Keep the two rails separate and within range.
Exceeding the current rating
A motor that runs above 1.0 A or stalls for long beyond the 1.2 A average rating trips the thermal shutdown or overheats the driver. Check the motor's running and stall current before choosing this driver.
Setting both direction inputs to the same level
Both inputs high is short brake and both low is stop, so neither turns the motor. Motion needs opposite levels on AIN1/AIN2 (or BIN1/BIN2) with the PWM pin high.
TB6612FNG Motor Driver questions
How do I wire a TB6612FNG to an Arduino?
Connect AIN1, AIN2, BIN1, BIN2 and STBY to digital pins, PWMA and PWMB to PWM pins, VCC to 5 V, VM to the motor supply and every GND together; each motor goes across one channel's two outputs. Set STBY high, one direction pin high and the other low, then analogWrite() the PWM pin for speed.
Does the TB6612FNG work with 3.3V logic like an ESP32?
Yes. VCC takes 2.7 to 5.5 V and the inputs read high above 0.7 x VCC (Toshiba TB6612FNG datasheet, pp.3-5), so power VCC from the ESP32's 3V3 and drive the inputs directly. The motor side stays on its own VM supply.
What motor voltage and current can the TB6612FNG handle?
VM up to 13.5 V in operation and 15 V absolute maximum; output current 1.0 A per channel recommended (VM of 5 V or more), 1.2 A average maximum and 3.2 A for a single 10 ms pulse (Toshiba TB6612FNG datasheet, pp.1-3). Small 3 to 12 V gear motors fit; large motors with multi-amp stall currents do not.
Why won't my motors turn with the TB6612FNG?
Check STBY first: it must be high, and its internal pull-down keeps the driver in standby when it floats (Toshiba TB6612FNG datasheet, p.2). Then check that grounds are joined, that VM is powered, and that the two direction pins of the channel are at opposite levels with PWM above zero.
TB6612FNG vs L298N: which motor driver is better?
For small motors the TB6612FNG is the more efficient choice: its MOSFET bridge drops 0.5 V typical at 1 A across both switches and needs no external diodes (Toshiba TB6612FNG datasheet, pp.1, 5), and it takes 3.3 V logic. The L298N's bipolar bridge drops more voltage and runs hotter, but it accepts higher motor voltages.
Can the TB6612FNG drive a stepper motor?
Yes, one small bipolar stepper: one coil across each channel, stepped by switching the direction pins in sequence. It has no current limiting, so use a stepper whose coil resistance keeps the current under 1.0 A per channel at your VM (Toshiba TB6612FNG datasheet, p.3).
Build something with the TB6612FNG Motor Driver
- Build this
Two-wheel robot car
Drive the left and right gear motors from channels A and B for a differential-drive chassis with independent speed and direction on each side.
- Build this
Line follower and obstacle avoider
Pair the driver with IR or ultrasonic sensors so the microcontroller steers a small bot by adjusting the PWMA and PWMB duty cycles.
- Build this
Small bipolar stepper controller
Use both channels together to energize the two coils of a small bipolar stepper for positioning in a pan-tilt rig.
- Build this
Speed-controlled conveyor or fan
Run a DC motor with smooth PWM speed control while keeping the second channel free for a pump or a second motor.
This page as plain Markdown, for ChatGPT, Claude or your own agent. /components/tb6612fng-motor-driver.md