Components / Motors and drivers / L298N Dual H-Bridge Module

L298N Dual H-Bridge Module

Common dual H-bridge carrier board for suitable DC motors.

FunctionDual H-bridge DC motor driver (also one stepper)
Supply voltageMotor 5 to 35 V; logic 5 V (from onboard regulator when jumper fitted and supply ≤ 12 V)
InterfaceENA/ENB PWM speed, IN1 to IN4 direction
Rating2 A per channel peak; loses about 2 V (bipolar outputs)
Motor DriversReviewedMPN L298N moduleUsed in 34 projects
In short

What is the L298N Dual H-Bridge Module and what is it used for?

Common dual H-bridge carrier board for suitable DC motors. Makers use it for understand driver dissipation and motor supply.

In the real world

Educational robotics

How it works

Motor drivers handle inductive loads under specified electrical and thermal limits; motor stall current matters.

Key specifications

Interface module specValue
FunctionDual H-bridge DC motor driver (also one stepper)
Supply voltageMotor 5 to 35 V; logic 5 V (from onboard regulator when jumper fitted and supply ≤ 12 V)
InterfaceENA/ENB PWM speed, IN1 to IN4 direction
Rating2 A per channel peak; loses about 2 V (bipolar outputs)
Logic level5 V; 3.3 V inputs usually work

Pinout

12VMotor supply
GNDGround, shared with the board
5VOut when the regulator jumper is on; in when off
ENA / ENBPWM speed (remove jumper)
IN1 to IN4Direction
OUT1 to OUT4Motors A and B

How to use it

Classic and tough, but it wastes about 2 V as heat: a 6 V motor on a 6 V supply gets only about 4 V. For small robots the TB6612FNG is much more efficient.

const int ENA = 5, IN1 = 7, IN2 = 8;
void setup() { pinMode(ENA, OUTPUT); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); }
void loop() { digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); analogWrite(ENA, 180); delay(2000); analogWrite(ENA, 0); delay(1000); }

Applications

Alternatives

Buy at

Common questions

What is the L298N Dual H-Bridge Module used for?

In products: educational robotics. In maker projects: understand driver dissipation and motor supply.

How does the L298N Dual H-Bridge Module work?

Motor drivers handle inductive loads under specified electrical and thermal limits; motor stall current matters.

What voltage does the L298N Dual H-Bridge Module need?

Motor 5 to 35 V; logic 5 V (from onboard regulator when jumper fitted and supply ≤ 12 V).

How do I connect the L298N Dual H-Bridge Module to an Arduino or ESP32?

ENA/ENB PWM speed, IN1 to IN4 direction. Pins: 12V (Motor supply), GND (Ground, shared with the board), 5V (Out when the regulator jumper is on; in when off), ENA / ENB (PWM speed (remove jumper)), IN1 to IN4 (Direction), OUT1 to OUT4 (Motors A and B).

What can I use instead of the L298N Dual H-Bridge Module?

TB6612FNG Motor Driver.