L298N Dual H-Bridge Module
Common dual H-bridge carrier board for suitable DC motors.
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.
Educational robotics
Motor drivers handle inductive loads under specified electrical and thermal limits; motor stall current matters.
Key specifications
| Interface module spec | Value |
|---|---|
| Function | Dual H-bridge DC motor driver (also one stepper) |
| Supply voltage | Motor 5 to 35 V; logic 5 V (from onboard regulator when jumper fitted and supply ≤ 12 V) |
| Interface | ENA/ENB PWM speed, IN1 to IN4 direction |
| Rating | 2 A per channel peak; loses about 2 V (bipolar outputs) |
| Logic level | 5 V; 3.3 V inputs usually work |
Pinout
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
Builds that use it
Line follower robot
Bluetooth RC car
Table-top robot that never falls off
Light-seeking robot
DC motor direction and speed lab
Glove-controlled toy car
Hydroponic nutrient and pH doser
Closed-loop DC motor position
Alternatives
- TB6612FNG Motor DriverMOSFET bridge: smaller, cooler, 1.2 A
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.
