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
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.
In short

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

tinkered.ai/components/tb6612fng-motor-driverTB6612FNG Motor D…VMPowerVCCPowerGND_VMGroundA1DigitalA2DigitalB1DigitalB2DigitalGND_AUXGroundPWMADigital · PWMAIN2DigitalAIN1DigitalSTBYDigitalBIN1DigitalBIN2DigitalPWMBDigital · PWMGND_LOGICGround
PinFunctionType
VMVM4.5 to 13.5 V (motors)power in
VCCVCC2.7 to 5.5 V (logic)power in
GND_VMGNDpower in
A1Digitalfree
A2Digitalfree
B1Digitalfree
B2Digitalfree
GND_AUXGNDpower in
PWMADigital, PWMinput
AIN2Digitalinput
AIN1Digitalinput
STBYDigitalinput
BIN1Digitalinput
BIN2Digitalinput
PWMBDigital, PWMinput
GND_LOGICGNDpower in

How to wire the TB6612FNG Motor Driver

Pin by pin, for the board you have.

TB6612FNG Motor DriverArduino UnoNote
AIN1D2
AIN2D3
PWMAD5
BIN1D4
BIN2D6
PWMBD9
STBYD7
VCC5V
GND_LOGICGND
GND_VMGND
VMa separate 4.5 to 13.5 V motor supply, its − to GND
A1, A2motor A
B1, B2motor B
Open this circuit on an Arduino UnoThe full Arduino Uno guide

TB6612FNG Motor Driver code

Every example here compiles for its board.

No library needed
// 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

Before you wire it

Do
  • 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.
Don’t
  • 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

  • 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.

    Build this
For AI assistants

This page as plain Markdown, for ChatGPT, Claude or your own agent. /components/tb6612fng-motor-driver.md

What will you build with it?