

The TB6612FNG is a dual H-bridge motor driver IC designed for controlling two DC motors or one stepper motor. It supports PWM (Pulse Width Modulation) control for precise speed regulation and direction control. This compact and efficient IC is widely used in robotics, automation, and other motor control applications. Additionally, it includes built-in protection features such as overcurrent and thermal overload safeguards, making it a reliable choice for motor control projects.








| Parameter | Value |
|---|---|
| Operating Voltage (Vcc) | 2.7V to 5.5V |
| Motor Voltage (VM) | 4.5V to 13.5V |
| Output Current (per channel) | 1.2A (continuous), 3.2A (peak) |
| Control Interface | PWM, Direction Control |
| Standby Current | 1 µA (typical) |
| Built-in Protections | Overcurrent, Thermal Shutdown, Undervoltage Lockout |
| Operating Temperature | -20°C to +85°C |
| Package Type | HTSSOP24 (compact surface-mount package) |
The TB6612FNG has 24 pins, but the most commonly used pins are listed below:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | AIN1 | Input signal for Motor A (Direction control) |
| 2 | AIN2 | Input signal for Motor A (Direction control) |
| 3 | PWMA | PWM input for Motor A (Speed control) |
| 4 | AO1 | Output 1 for Motor A |
| 5 | AO2 | Output 2 for Motor A |
| 6 | VM | Motor power supply (4.5V to 13.5V) |
| 7 | GND | Ground |
| 8 | VCC | Logic power supply (2.7V to 5.5V) |
| 9 | STBY | Standby control (active HIGH) |
| 10 | BIN1 | Input signal for Motor B (Direction control) |
| 11 | BIN2 | Input signal for Motor B (Direction control) |
| 12 | PWMB | PWM input for Motor B (Speed control) |
| 13 | BO1 | Output 1 for Motor B |
| 14 | BO2 | Output 2 for Motor B |
Power Connections:
VM pin to the motor power supply (4.5V to 13.5V).VCC pin to the logic power supply (2.7V to 5.5V).GND pin to the ground of the circuit.Motor Connections:
AO1 and AO2 for Motor A, and BO1 and BO2 for Motor B.Control Signals:
AIN1 and AIN2 pins to control the direction of Motor A.BIN1 and BIN2 pins to control the direction of Motor B.PWMA and PWMB for speed control of Motor A and Motor B, respectively.Standby Mode:
STBY pin HIGH to enable the IC. Set it LOW to put the IC in standby mode.Protection Features:
Below is an example of controlling two DC motors using the TB6612FNG and an Arduino UNO.
// Define motor control pins
const int AIN1 = 7; // Motor A direction control pin 1
const int AIN2 = 8; // Motor A direction control pin 2
const int PWMA = 9; // Motor A speed control (PWM) pin
const int BIN1 = 10; // Motor B direction control pin 1
const int BIN2 = 11; // Motor B direction control pin 2
const int PWMB = 6; // Motor B speed control (PWM) pin
const int STBY = 12; // Standby control pin
void setup() {
// Set motor control pins as outputs
pinMode(AIN1, OUTPUT);
pinMode(AIN2, OUTPUT);
pinMode(PWMA, OUTPUT);
pinMode(BIN1, OUTPUT);
pinMode(BIN2, OUTPUT);
pinMode(PWMB, OUTPUT);
pinMode(STBY, OUTPUT);
// Enable the motor driver by setting STBY HIGH
digitalWrite(STBY, HIGH);
}
void loop() {
// Example: Run Motor A forward at 50% speed
digitalWrite(AIN1, HIGH);
digitalWrite(AIN2, LOW);
analogWrite(PWMA, 128); // 50% duty cycle (0-255)
// Example: Run Motor B backward at 75% speed
digitalWrite(BIN1, LOW);
digitalWrite(BIN2, HIGH);
analogWrite(PWMB, 192); // 75% duty cycle (0-255)
delay(2000); // Run motors for 2 seconds
// Stop both motors
analogWrite(PWMA, 0);
analogWrite(PWMB, 0);
delay(2000); // Wait for 2 seconds before repeating
}
VM and VCC pins to reduce noise.Motors Not Running:
STBY pin is set HIGH to enable the IC.VM and VCC are within the specified range.Overheating:
Erratic Motor Behavior:
Motor Runs in the Wrong Direction:
AIN1, AIN2, BIN1, BIN2).Q: Can I control a stepper motor with the TB6612FNG?
A: Yes, the TB6612FNG can control a bipolar stepper motor by using both H-bridges. You will need to sequence the control signals appropriately.
Q: What is the maximum PWM frequency supported?
A: The TB6612FNG supports PWM frequencies up to 100 kHz, but typical applications use frequencies around 20 kHz.
Q: Can I use the TB6612FNG with a 3.3V microcontroller?
A: Yes, the TB6612FNG is compatible with 3.3V logic levels as long as the VCC pin is powered within the 2.7V to 5.5V range.
Q: How do I protect the IC from damage?
A: Use appropriate capacitors for noise suppression, avoid exceeding current and voltage ratings, and ensure proper heat dissipation.