

The TB6612FNG module, manufactured by Breakout, is a dual H-bridge motor driver IC designed to control two DC motors or one stepper motor. It provides advanced features such as PWM (Pulse Width Modulation) control, direction control, and current sensing, making it a versatile and efficient choice for motor control applications. This module is widely used in robotics, automation systems, and other projects requiring precise motor control.








The TB6612FNG module is designed to handle a wide range of motor control requirements. Below are its key technical details:
| 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) |
| Operating Temperature | -20°C to +85°C |
| Dimensions | 20mm x 15mm (module size may vary) |
The TB6612FNG module has 16 pins, each serving a specific function. Below is the pinout and description:
| Pin Name | Pin Number | Description |
|---|---|---|
| VCC | 1 | Logic power supply (2.7V to 5.5V) |
| VM | 2 | Motor power supply (4.5V to 13.5V) |
| GND | 3, 8, 13 | Ground connection |
| AIN1 | 4 | Input 1 for Motor A (controls direction) |
| AIN2 | 5 | Input 2 for Motor A (controls direction) |
| PWMA | 6 | PWM input for Motor A (speed control) |
| STBY | 7 | Standby control (active HIGH to enable the module) |
| BIN1 | 9 | Input 1 for Motor B (controls direction) |
| BIN2 | 10 | Input 2 for Motor B (controls direction) |
| PWMB | 11 | PWM input for Motor B (speed control) |
| AO1 | 12 | Output 1 for Motor A |
| AO2 | 14 | Output 2 for Motor A |
| BO1 | 15 | Output 1 for Motor B |
| BO2 | 16 | Output 2 for Motor B |
The TB6612FNG module is straightforward to use in motor control circuits. Below are the steps and best practices for integrating it into your project.
Power Supply:
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.Below is an example of how to control two DC motors using the TB6612FNG module and an Arduino UNO:
// Define motor control pins
#define AIN1 4 // Motor A direction control pin 1
#define AIN2 5 // Motor A direction control pin 2
#define PWMA 6 // Motor A speed control (PWM)
#define BIN1 7 // Motor B direction control pin 1
#define BIN2 8 // Motor B direction control pin 2
#define PWMB 9 // Motor B speed control (PWM)
#define STBY 10 // 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
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
}
VM) matches the motor's rated voltage.Motors not spinning:
STBY pin is set HIGH.VCC and VM.Motor spins in the wrong direction:
AIN1 and AIN2 (or BIN1 and BIN2) to reverse the direction.Module overheating:
PWM control not working:
analogWrite() function.Q: Can I control a stepper motor with this module?
A: Yes, the TB6612FNG can control a stepper motor by using both H-bridges. You will need to generate the appropriate step and direction signals.
Q: What happens if I leave the STBY pin floating?
A: The module will remain in standby mode, and the motors will not operate. Always set the STBY pin HIGH to enable the module.
Q: Can I use this module with a 3.3V microcontroller?
A: Yes, the TB6612FNG supports logic levels as low as 2.7V, making it compatible with 3.3V microcontrollers.
By following this documentation, you can effectively integrate the TB6612FNG module into your motor control projects.