Skip to content
Motor

L298N Dual H-Bridge Motor Driver Module

Dual H-bridge motor driver — the standard for controlling two DC motors or one stepper.

The most widely used motor driver in the hobbyist world — a dual H-bridge board that can independently drive two brushed DC motors (or one bipolar stepper) with direction and PWM speed control, and includes an onboard 5V regulator for powering logic from the motor supply.

Specifications

Driver ICL298N dual H-bridge
Motor supply voltage5V - 35V DC, fed to the board's 12V/VMS terminal
Logic voltage5V — from the onboard regulator when the 5V-EN jumper is in place, or from an external 5V source if you've removed it (required if VMS > 12V, to avoid overheating the onboard regulator)
Max current2A per channel continuous, ~3A peak with a heatsink fitted
ChannelsDrives 2 independent DC motors, or 1 bipolar stepper motor

Pinout

PinNameDescription
1ENAPWM speed control for motor A — jumper removed lets you drive this from a PWM pin; jumper in place runs motor A at full speed whenever enabled
2IN1Direction control, motor A
3IN2Direction control, motor A
4IN3Direction control, motor B
5IN4Direction control, motor B
6ENBPWM speed control for motor B
7OUT1 / OUT2Motor A output terminals
8OUT3 / OUT4Motor B output terminals
912V / VMSMotor supply voltage, 5V-35V DC
10GNDCommon ground — must be shared between the motor supply, the board, and the MCU
115VRegulated 5V output (only if the 5V-EN jumper is fitted and VMS ≤ 12V) — can power the MCU logic side

Setting IN1/IN2 (or IN3/IN4) to the same logic level brakes that motor; opposite levels drive it forward or reverse. Remove the 5V-EN jumper and supply logic power separately whenever VMS exceeds 12V.