

The TB6612FNG Motor Driver Module, manufactured by Breakout, is a compact and efficient dual H-bridge motor driver designed to control two DC motors or one stepper motor. It supports features such as PWM speed control, direction control, and built-in thermal protection, making it ideal for robotics, automation, and other motor control applications. Its small size and versatility make it a popular choice for hobbyists and professionals alike.








The TB6612FNG Motor Driver Module is designed to provide reliable motor control with the following key specifications:
| 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 Logic Voltage | 3.3V or 5V compatible |
| PWM Frequency | Up to 100 kHz |
| Built-in Protections | Thermal shutdown, overcurrent protection |
| Dimensions | 20mm x 15mm x 3mm (approx.) |
The TB6612FNG module has 16 pins, which are described in the table below:
| Pin Name | Type | Description |
|---|---|---|
| VCC | Power Input | Logic voltage input (2.7V to 5.5V). |
| VM | Power Input | Motor power supply (4.5V to 13.5V). |
| GND | Ground | Ground connection. |
| AIN1 | Input | Motor A direction control input 1. |
| AIN2 | Input | Motor A direction control input 2. |
| PWMA | Input | PWM input for Motor A speed control. |
| BIN1 | Input | Motor B direction control input 1. |
| BIN2 | Input | Motor B direction control input 2. |
| PWMB | Input | PWM input for Motor B speed control. |
| STBY | Input | Standby control pin. Set HIGH to enable the module. |
| AO1 | Output | Motor A output 1. |
| AO2 | Output | Motor A output 2. |
| BO1 | Output | Motor B output 1. |
| BO2 | Output | Motor B output 2. |
| NC | Not Connected | No connection. |
| GND | Ground | Additional ground connection for stability. |
Power Connections:
VCC pin to a 3.3V or 5V logic power supply.VM pin to the motor power supply (4.5V to 13.5V).GND pins to the ground of your circuit.Motor Connections:
AO1 and AO2 for Motor A, and BO1 and BO2 for Motor B.Control Pins:
AIN1 and AIN2 to control the direction of Motor A, and BIN1 and BIN2 for Motor B.PWMA and PWMB to control the speed of Motor A and Motor B, respectively, via PWM signals.STBY pin HIGH to enable the module.PWM Control:
PWMA and PWMB pins to control motor speed.VM) matches the requirements of your motors.STBY pin HIGH to enable the module before sending control signals.Below is an example code snippet to control two DC motors using the TB6612FNG module with an Arduino UNO:
// Define TB6612FNG control pins
#define AIN1 7 // Motor A direction control pin 1
#define AIN2 8 // Motor A direction control pin 2
#define PWMA 9 // Motor A PWM speed control pin
#define BIN1 10 // Motor B direction control pin 1
#define BIN2 11 // Motor B direction control pin 2
#define PWMB 3 // Motor B PWM speed control pin
#define STBY 6 // Standby pin
void setup() {
// Set 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 module
digitalWrite(STBY, HIGH);
}
void loop() {
// Motor A: Forward at 50% speed
digitalWrite(AIN1, HIGH);
digitalWrite(AIN2, LOW);
analogWrite(PWMA, 128); // 50% duty cycle (0-255)
// Motor B: Reverse 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
}
Motors Not Running:
STBY pin is set HIGH to enable the module.VCC and VM) are within the specified range.AO1, AO2, BO1, and BO2.Overheating:
Erratic Motor Behavior:
No Response to Control Signals:
AIN1, AIN2, BIN1, BIN2, PWMA, PWMB).VCC pin voltage.Q: Can I use the TB6612FNG to control a stepper motor?
A: Yes, the TB6612FNG can control a bipolar stepper motor by driving its two coils using the dual H-bridge configuration.
Q: What happens if the module overheats?
A: The TB6612FNG has built-in thermal shutdown protection, which disables the outputs to prevent damage. Allow the module to cool before resuming operation.
Q: Can I use a 12V motor with this module?
A: Yes, as long as the motor's operating voltage is within the VM range (4.5V to 13.5V) and the current does not exceed 1.2A per channel.