Comparison · Beginner · 4 min read
Motor Drivers Explained
L298N vs TB6612FNG vs DRV8833
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A motor driver lets a low-power microcontroller control the speed and direction of motors using an H-bridge. For small robots, the TB6612FNG is the best all-round choice: efficient, 1.2 A per channel, 3.3 V-friendly. The L298N handles higher voltages and is easy to wire but wastes about 2 V as heat. Size any driver for the motor's stall current.
Key specs at a glance
- L298N
- 5 to 35 V, 2 A per channel, bipolar transistors, about 2 V drop
- TB6612FNG
- 4.5 to 13.5 V motor supply, 1.2 A continuous (3.2 A peak) per channel, MOSFET
- DRV8833
- 2.7 to 10.8 V, about 1.5 A per channel, MOSFET
- L293D
- 4.5 to 36 V, 0.6 A per channel, built-in diodes
- BTS7960
- 5.5 to 27 V, up to 43 A, single motor
- Control
- IN1/IN2 for direction, PWM for speed
What does a motor driver do?
An H-bridge is four switches arranged around a motor in an H shape. Closing one diagonal pair drives current one way; closing the other pair reverses it. Switching rapidly with PWM sets the speed. A driver IC packages the switches, gate drive and protection so two or three microcontroller pins can control a motor that draws amps.
Motor driver comparison
| Driver | Motor voltage | Current per channel | Efficiency | Best for |
|---|---|---|---|---|
| L298N module | 5 to 35 V | 2 A (3 A peak) | Low, about 2 V lost | 12 V robots, beginners, easy screw terminals |
| TB6612FNG | 4.5 to 13.5 V | 1.2 A (3.2 A peak) | High | Small battery robots, ESP32 and Pico |
| DRV8833 | 2.7 to 10.8 V | About 1.5 A | High | 1S Li-ion and 4xAA robots, N20 motors |
| L293D / motor shield | 4.5 to 36 V | 0.6 A (1.2 A peak) | Low | Toy motors, Arduino shields |
| BTS7960 (IBT-2) | 5.5 to 27 V | Up to 43 A | High | Wheelchair, scooter and 775 motors |
- L298N module
- Motor voltage:
- 5 to 35 V
- Current per channel:
- 2 A (3 A peak)
- Efficiency:
- Low, about 2 V lost
- Best for:
- 12 V robots, beginners, easy screw terminals
- TB6612FNG
- Motor voltage:
- 4.5 to 13.5 V
- Current per channel:
- 1.2 A (3.2 A peak)
- Efficiency:
- High
- Best for:
- Small battery robots, ESP32 and Pico
- DRV8833
- Motor voltage:
- 2.7 to 10.8 V
- Current per channel:
- About 1.5 A
- Efficiency:
- High
- Best for:
- 1S Li-ion and 4xAA robots, N20 motors
- L293D / motor shield
- Motor voltage:
- 4.5 to 36 V
- Current per channel:
- 0.6 A (1.2 A peak)
- Efficiency:
- Low
- Best for:
- Toy motors, Arduino shields
- BTS7960 (IBT-2)
- Motor voltage:
- 5.5 to 27 V
- Current per channel:
- Up to 43 A
- Efficiency:
- High
- Best for:
- Wheelchair, scooter and 775 motors
L298N pinout and wiring
motor supply, 5 to 35 V.
connect to both the battery and the microcontroller ground.
with the regulator jumper fitted and Vs at 12 V or less, this outputs 5 V you can use to power an Arduino. Above 12 V, remove the jumper and supply 5 V here instead.
remove the jumpers and connect to PWM pins for speed control.
direction inputs.
to the motors.
const int ENA = 9; // PWM (PWMA on TB6612FNG)
const int IN1 = 7;
const int IN2 = 8;
// TB6612FNG only: tie STBY high, or drive it from a pin
void setup() {
pinMode(ENA, OUTPUT);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
}
void drive(int speed) { // -255 to 255
digitalWrite(IN1, speed > 0);
digitalWrite(IN2, speed < 0);
analogWrite(ENA, abs(speed));
}
void loop() {
drive(200); delay(2000); // forward
drive(0); delay(500); // stop
drive(-200); delay(2000); // reverse
drive(0); delay(500);
}How to choose a motor driver
- 1Find the stall current of your motor (datasheet, or measure with a multimeter while briefly holding the shaft). The driver's peak rating must exceed it.
- 2Match the voltage range to your battery, including a fully charged pack (a 3S Li-ion pack reaches 12.6 V, above the TB6612FNG's comfort zone).
- 3Check logic level: TB6612FNG and DRV8833 accept 3.3 V directly. Most L298N boards also respond to 3.3 V inputs, but test before relying on it.
- 4Count motors: dual drivers run two DC motors or one bipolar stepper.
What about steppers and servos?
Stepper motors are best driven by dedicated step/direction drivers such as the A4988, DRV8825 or TMC2209, which add current limiting and microstepping. Hobby servos contain their own driver and only need a signal pin and power, or a PCA9685 board when you have many.
Try it: PWM duty cycle calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Choosing a driver by running current rather than stall current.
- Forgetting the common ground between driver and microcontroller.
- Leaving ENA/ENB jumpers on and wondering why PWM speed control does nothing.
- Feeding more than 12 V into an L298N with the 5 V regulator jumper still fitted.
- Running an L298N at 6 V and losing a third of the voltage as heat; use a TB6612FNG or DRV8833 for low-voltage robots.
Frequently asked questions
Which is better, L298N or TB6612FNG?
For battery robots under 12 V, the TB6612FNG: it is smaller, runs cooler and delivers almost the full battery voltage to the motors. The L298N suits 12 to 24 V motors that draw up to 2 A, where its simple terminals help beginners.
Can the L298N drive a stepper motor?
Yes, one bipolar stepper using both channels, but without current limiting. An A4988 or DRV8825 is the better choice for steppers.
Why is my L298N getting hot?
Its bipolar transistors drop about 1.8 to 3 V at full current, which becomes heat. Use the heatsink, keep current under 2 A, or switch to a MOSFET-based driver.
Can I use an L298N with an ESP32?
Usually yes; most modules recognise 3.3 V on the IN and EN pins. Do not feed the module's 5 V output into ESP32 GPIO pins, and connect grounds.
What does the STBY pin on the TB6612FNG do?
Pulling STBY low puts both channels into standby with outputs off. Tie it high (to VCC) for normal operation or drive it from a pin to cut power to the motors.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 35 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- L298 dual full-bridge driver datasheet (STMicroelectronics)
- TB6612FNG datasheet (Toshiba)
- DRV8833 datasheet (Texas Instruments)
- L293D datasheet (Texas Instruments)
- BTN7960 datasheet (Infineon)
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



