Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use TB6612FNG: Examples, Pinouts, and Specs

Image of TB6612FNG
Cirkit Designer LogoDesign with TB6612FNG in Cirkit Designer

Introduction

The TB6612FNG is a dual H-bridge motor driver IC designed for controlling two DC motors or one stepper motor. It supports motor supply voltages ranging from 2.5V to 13.5V and offers features such as PWM (Pulse Width Modulation) control for precise speed regulation, built-in thermal shutdown, and overcurrent protection. This makes it a versatile and reliable choice for robotics, automation, and other motor control applications.

Explore Projects Built with TB6612FNG

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Emergency Alert System with NUCLEO-F072RB, SIM800L, and GPS NEO 6M
Image of women safety: A project utilizing TB6612FNG in a practical application
This circuit is an emergency alert system that uses a NUCLEO-F072RB microcontroller to send SMS alerts and make calls via a SIM800L GSM module, while obtaining location data from a GPS NEO 6M module. The system is powered by a Li-ion battery and includes a TP4056 module for battery charging and protection, with a rocker switch to control power to the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Pro Mini-Based Bluetooth and Camera-Controlled Motor System
Image of HAND GESTURE CAR: A project utilizing TB6612FNG in a practical application
This circuit is a remote-controlled robotic system featuring an Arduino Pro Mini, a TB6612FNG motor driver, and an NRF24L01 wireless module. The Arduino controls four DC motors via the motor driver and communicates wirelessly using the NRF24L01 module, while an OV7670 camera module and an HC-05 Bluetooth module provide additional functionality.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Controlled Robot with Ultrasonic Sensor and Dual Motor Drivers
Image of SENTINELS CIRCUIT : A project utilizing TB6612FNG in a practical application
This circuit features an Arduino Nano microcontroller interfaced with a TB6612FNG motor driver to control two DC Mini Metal Gear Motors. It also includes an HC-SR04 Ultrasonic Sensor for distance measurement, a 5 channel IR sensor for line tracking, and a Servomotor SG90 for positioning tasks. The system is powered by a 12V battery, with the Arduino Nano managing sensor inputs and motor outputs to perform tasks such as navigation or automation.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Bluetooth-Controlled Dual Joystick Motor Driver System
Image of sumo: A project utilizing TB6612FNG in a practical application
This circuit is a remote-controlled motor system using two ESP32 microcontrollers and joystick modules. One ESP32 reads joystick positions and transmits them via Bluetooth to the second ESP32, which controls two DC motors through a TB6612FNG motor driver. The system includes LEDs for status indication and is powered by a 9V battery and a LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with TB6612FNG

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of women safety: A project utilizing TB6612FNG in a practical application
Battery-Powered Emergency Alert System with NUCLEO-F072RB, SIM800L, and GPS NEO 6M
This circuit is an emergency alert system that uses a NUCLEO-F072RB microcontroller to send SMS alerts and make calls via a SIM800L GSM module, while obtaining location data from a GPS NEO 6M module. The system is powered by a Li-ion battery and includes a TP4056 module for battery charging and protection, with a rocker switch to control power to the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of HAND GESTURE CAR: A project utilizing TB6612FNG in a practical application
Arduino Pro Mini-Based Bluetooth and Camera-Controlled Motor System
This circuit is a remote-controlled robotic system featuring an Arduino Pro Mini, a TB6612FNG motor driver, and an NRF24L01 wireless module. The Arduino controls four DC motors via the motor driver and communicates wirelessly using the NRF24L01 module, while an OV7670 camera module and an HC-05 Bluetooth module provide additional functionality.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SENTINELS CIRCUIT : A project utilizing TB6612FNG in a practical application
Arduino Nano Controlled Robot with Ultrasonic Sensor and Dual Motor Drivers
This circuit features an Arduino Nano microcontroller interfaced with a TB6612FNG motor driver to control two DC Mini Metal Gear Motors. It also includes an HC-SR04 Ultrasonic Sensor for distance measurement, a 5 channel IR sensor for line tracking, and a Servomotor SG90 for positioning tasks. The system is powered by a 12V battery, with the Arduino Nano managing sensor inputs and motor outputs to perform tasks such as navigation or automation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of sumo: A project utilizing TB6612FNG in a practical application
ESP32 Bluetooth-Controlled Dual Joystick Motor Driver System
This circuit is a remote-controlled motor system using two ESP32 microcontrollers and joystick modules. One ESP32 reads joystick positions and transmits them via Bluetooth to the second ESP32, which controls two DC motors through a TB6612FNG motor driver. The system includes LEDs for status indication and is powered by a 9V battery and a LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Robotics and automation systems
  • Remote-controlled vehicles
  • Conveyor belts and industrial machinery
  • DIY electronics projects
  • Stepper motor control for 3D printers and CNC machines

Technical Specifications

Key Technical Details

Parameter Value
Motor Supply Voltage 2.5V to 13.5V
Logic Supply Voltage 2.7V to 5.5V
Output Current (per channel) 1.2A (continuous), 3.2A (peak)
Control Method PWM
Standby Current 1 µA (typical)
Built-in Protections Thermal shutdown, overcurrent
Operating Temperature -20°C to +85°C
Package Type HTSSOP-20

Pin Configuration and Descriptions

The TB6612FNG comes in a 20-pin HTSSOP package. Below is the pin configuration:

Pin Number Pin Name Description
1 AIN1 Input signal for Motor A (H-bridge control)
2 AIN2 Input signal for Motor A (H-bridge control)
3 PWMA PWM input for Motor A speed control
4 A01 Output 1 for Motor A
5 A02 Output 2 for Motor A
6 VM Motor power supply (2.5V to 13.5V)
7 VCC Logic power supply (2.7V to 5.5V)
8 STBY Standby control (active HIGH to enable the IC)
9 BIN1 Input signal for Motor B (H-bridge control)
10 BIN2 Input signal for Motor B (H-bridge control)
11 PWMB PWM input for Motor B speed control
12 B01 Output 1 for Motor B
13 B02 Output 2 for Motor B
14 GND Ground
15 NC No connection
16 NC No connection
17 NC No connection
18 NC No connection
19 NC No connection
20 NC No connection

Usage Instructions

How to Use the TB6612FNG in a Circuit

  1. Power Connections:

    • Connect the motor power supply (VM) to the motor voltage input pin (Pin 6).
    • Connect the logic power supply (VCC) to the logic voltage input pin (Pin 7).
    • Ensure the ground (GND) is connected to the common ground of the circuit.
  2. Motor Connections:

    • Connect the motor terminals to the output pins (A01, A02 for Motor A; B01, B02 for Motor B).
  3. Control Signals:

    • Use the AIN1, AIN2, and PWMA pins to control Motor A.
    • Use the BIN1, BIN2, and PWMB pins to control Motor B.
    • Apply a PWM signal to the PWMA or PWMB pins to regulate motor speed.
    • Set the STBY pin HIGH to enable the IC.
  4. Direction Control:

    • Set AIN1 HIGH and AIN2 LOW to rotate Motor A in one direction.
    • Set AIN1 LOW and AIN2 HIGH to rotate Motor A in the opposite direction.
    • Similarly, use BIN1 and BIN2 for Motor B direction control.
  5. Standby Mode:

    • Set the STBY pin LOW to put the IC into standby mode, reducing power consumption.

Example Code for Arduino UNO

Below is an example of how to control two DC motors using the TB6612FNG and an Arduino UNO:

// Define motor control pins
const int AIN1 = 2;  // Motor A direction control pin 1
const int AIN2 = 3;  // Motor A direction control pin 2
const int PWMA = 5;  // Motor A speed control (PWM)
const int BIN1 = 7;  // Motor B direction control pin 1
const int BIN2 = 8;  // Motor B direction control pin 2
const int PWMB = 6;  // Motor B speed control (PWM)
const int STBY = 4;  // 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 IC
  digitalWrite(STBY, HIGH);
}

void loop() {
  // Rotate Motor A forward at 50% speed
  digitalWrite(AIN1, HIGH);
  digitalWrite(AIN2, LOW);
  analogWrite(PWMA, 128);  // 50% duty cycle (0-255)

  // Rotate 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
}

Important Considerations

  • Ensure the motor supply voltage (VM) matches the voltage rating of your motors.
  • Use appropriate decoupling capacitors near the power supply pins to reduce noise.
  • Avoid exceeding the maximum current rating to prevent damage to the IC.
  • Use heat sinks or proper ventilation if operating at high currents for extended periods.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Motors Not Spinning:

    • Verify that the STBY pin is set HIGH to enable the IC.
    • Check the power supply connections (VM and VCC).
    • Ensure the control signals (AIN1, AIN2, BIN1, BIN2) are correctly configured.
  2. Motor Spins in the Wrong Direction:

    • Reverse the logic levels on the AIN1/AIN2 or BIN1/BIN2 pins.
  3. Overheating:

    • Ensure the current drawn by the motors does not exceed the IC's maximum rating.
    • Add a heat sink or improve ventilation around the IC.
  4. PWM Control Not Working:

    • Verify that the PWM signal is being generated correctly by the microcontroller.
    • Check the connections to the PWMA and PWMB pins.

FAQs

Q: Can the TB6612FNG drive stepper motors?
A: Yes, the TB6612FNG can drive a stepper motor by controlling the two H-bridges in a coordinated manner.

Q: What happens if the IC overheats?
A: The TB6612FNG has a built-in thermal shutdown feature that disables the outputs to protect the IC from damage.

Q: Can I use the TB6612FNG with a 3.3V microcontroller?
A: Yes, the logic supply voltage (VCC) supports 2.7V to 5.5V, making it compatible with 3.3V systems.