Component guide · Beginner · 5 min read
DFRobot Fermion TB6612FNG Motor Driver (DRI0044)

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The DFRobot Fermion TB6612FNG board drives two DC motors at 1.2 A each, 3.2 A for a single short pulse. Unlike the common TB6612FNG module it needs only four control pins: one DIR and one PWM pin per motor, and there is no STBY pin to wire. Logic runs from 2.7 to 5.5 V and the motor supply from 2.5 to 12 V.
Key specs at a glance
- Driver IC
- Toshiba TB6612FNG dual MOSFET H-bridge
- Control
- DIR + PWM per motor, 4 pins, no STBY
- Logic supply (VCC)
- 2.7 to 5.5 V
- Motor supply (VM)
- 2.5 to 12 V
- Current
- 1.2 A continuous per channel; 2 A repeated pulse, 3.2 A single pulse
- PWM
- Up to 100 kHz
- Protection
- Thermal shutdown, low-voltage cut-off
- Size
- 20 x 19.5 mm
What the DFRobot Fermion TB6612FNG motor driver is
This is DFRobot's Fermion breakout of the Toshiba TB6612FNG, sold as model DRI0044. The chip is the same MOSFET dual H-bridge found on the usual purple or red TB6612FNG modules, so it loses very little voltage and stays cool on battery robots.
The difference is how you control it. The common module brings out AIN1, AIN2, PWMA, BIN1, BIN2, PWMB and STBY (seven pins). The Fermion board does the direction logic on the board, so you drive each motor with just DIR (which way) and PWM (how fast), the same way as DFRobot's L298N-style boards. There is no STBY pin: the driver is always enabled while VCC is powered.
Use it for line followers, mini sumo and small two-wheel robots with N20, BO or TT gear motors. Its motor supply is rated to 12 V, a little lower than the bare chip's 13.5 V.
DFRobot Fermion TB6612FNG motor driver pinout
The pins on the DFRobot Fermion TB6612FNG motor driver and what each one does.
| Pin | Function |
|---|---|
| DIR1 | Motor 1 direction (HIGH one way, LOW the other) |
| PWM1 | Motor 1 speed (PWM; 0 = stop) |
| PWM2 | Motor 2 speed (PWM; 0 = stop) |
| DIR2 | Motor 2 direction |
| GND (logic side) | Ground, join to the controller's GND |
| VCC | Logic supply 2.7 to 5.5 V from the controller (or a HIGH I/O pin) |
| M1, M1- | Motor 1 outputs |
| M2, M2- | Motor 2 outputs |
| GND (motor side) | Motor battery negative |
| VM | Motor battery positive, 2.5 to 12 V |
- DIR1
- Motor 1 direction (HIGH one way, LOW the other)
- PWM1
- Motor 1 speed (PWM; 0 = stop)
- PWM2
- Motor 2 speed (PWM; 0 = stop)
- DIR2
- Motor 2 direction
- GND (logic side)
- Ground, join to the controller's GND
- VCC
- Logic supply 2.7 to 5.5 V from the controller (or a HIGH I/O pin)
- M1, M1-
- Motor 1 outputs
- M2, M2-
- Motor 2 outputs
- GND (motor side)
- Motor battery negative
- VM
- Motor battery positive, 2.5 to 12 V
Wiring the DFRobot Fermion TB6612FNG motor driver
Power VCC from the controller's own logic voltage (5 V on an Uno, 3.3 V on an ESP32) and the motors from a separate battery on VM. Join the battery negative to the controller's GND. Put a 10 to 100 µF capacitor across VM and GND near the board if the motor leads are long.
| DFRobot Fermion TB6612FNG motor driver pin | Arduino Uno | ESP32 |
|---|---|---|
| DIR1 | D4 | GPIO 26 |
| PWM1 | D5 (PWM) | GPIO 25 |
| PWM2 | D6 (PWM) | GPIO 33 |
| DIR2 | D7 | GPIO 27 |
| VCC | 5V | 3V3 |
| GND | GND | GND |
| VM | Motor battery + | Motor battery + |
| GND (motor side) | Motor battery - | Motor battery - |
| M1, M1- / M2, M2- | Left and right motor | Left and right motor |
- DIR1
- Arduino Uno:
- D4
- ESP32:
- GPIO 26
- PWM1
- Arduino Uno:
- D5 (PWM)
- ESP32:
- GPIO 25
- PWM2
- Arduino Uno:
- D6 (PWM)
- ESP32:
- GPIO 33
- DIR2
- Arduino Uno:
- D7
- ESP32:
- GPIO 27
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- VM
- Arduino Uno:
- Motor battery +
- ESP32:
- Motor battery +
- GND (motor side)
- Arduino Uno:
- Motor battery -
- ESP32:
- Motor battery -
- M1, M1- / M2, M2-
- Arduino Uno:
- Left and right motor
- ESP32:
- Left and right motor
Example code
Two pins per motor: DIR picks the direction and PWM sets the speed. On an ESP32 use the GPIO numbers from the wiring table; analogWrite works with the ESP32 Arduino core 3.x.
const int DIR1 = 4, PWM1 = 5; // motor 1
const int PWM2 = 6, DIR2 = 7; // motor 2
// speed -255..255: the sign sets DIR, the size sets PWM
void motor(int dirPin, int pwmPin, int speed) {
digitalWrite(dirPin, speed >= 0 ? HIGH : LOW);
analogWrite(pwmPin, constrain(abs(speed), 0, 255));
}
void setup() {
pinMode(DIR1, OUTPUT); pinMode(PWM1, OUTPUT);
pinMode(DIR2, OUTPUT); pinMode(PWM2, OUTPUT);
}
void loop() {
for (int s = 0; s <= 255; s += 5) { // ramp both motors up
motor(DIR1, PWM1, s); motor(DIR2, PWM2, s); delay(30);
}
delay(1000);
motor(DIR1, PWM1, -150); motor(DIR2, PWM2, 150); // spin on the spot
delay(800);
motor(DIR1, PWM1, 0); motor(DIR2, PWM2, 0); // stop
delay(1500);
}Setup and tuning
if you are copying code written for the common TB6612FNG module, drop the STBY and second direction pin (AIN2/BIN2) lines and use DIR + PWM instead.
if a motor turns the wrong way, swap its two leads (M1 and M1-) or invert DIR in code.
write PWM 0 to stop a motor. Ramp speed changes on heavy robots so the start-up current stays under the 3.2 A single-pulse limit.
1.2 A continuous suits N20, BO and TT motors. Check your motor's stall current; if it is near or above 2 A, use a bigger driver.
the Uno default (490 or 980 Hz) works; 20 kHz on an ESP32 removes the motor whine (the chip accepts up to 100 kHz).
stay at or under 12 V on VM; a 2S Li-ion (8.4 V full) or 6 x AA pack is a good fit.
What you need
Shop this list6 of 7 found in our store · ₹1,349
DFRobot Fermion TB6612FNG motor driver: the driver this guide coversDFRobot Fermion: TB6612FNG 2x1.2A DC Motor Driver (Breakout)₹489Closest match, check the specs
N20 micro metal gear motor: a good motor match for this driverN20 Micro Metal Gear Motor₹229- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
Electrolytic capacitor: bulk capacitance across the supplyElectrolytic Capacitor₹16
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- Common TB6612FNG module: the same chip with AIN1/AIN2/PWMA/STBY pins and up to 13.5 V on VM; more pins but finer control (coast and brake).
- L298N: up to 35 V and screw terminals, but about 2 V lost and more heat.
- DRV8833: similar size, 2.7 to 10.8 V, good on a single Li-ion cell.
- BTS7960: for motors that draw many amps.
Common mistakes to avoid
- Following a common TB6612FNG module tutorial and looking for STBY, AIN1 and AIN2 pins that this board does not have.
- Powering VM above 12 V, for example from a fully charged 3S LiPo (12.6 V).
- Leaving the motor battery's negative unconnected from the controller's GND, so the motors twitch or do not move.
- Using motors whose stall current is above 2 A, which trips the thermal shutdown.
Frequently asked questions
How is this different from the usual TB6612FNG module?
The chip is the same. This DFRobot board needs only DIR and PWM per motor (four control pins) and has no STBY pin, while the common module uses two direction pins, a PWM pin per motor and STBY.
Does it work with 3.3 V boards like ESP32 and Pico?
Yes. Power VCC from 3.3 V and drive DIR and PWM directly; logic works from 2.7 V.
What motor voltage can I use?
2.5 to 12 V on VM. A 2S Li-ion pack or 6 AA cells is a good fit.
How much current can it handle?
1.2 A continuous per channel, 2 A in repeated pulses and 3.2 A for a single short pulse such as a motor start.
Can it drive a stepper motor?
It can step a small bipolar stepper with both channels, but it has no current limiting, so a stepper driver such as the A4988 or TMC2209 is better for NEMA17.
Can I use the AIN1/AIN2 code from other tutorials?
Not as it is. Use one DIR pin and one PWM pin per motor, as in the example on this page.
Parts for this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

