DESCRIPTION
The L298N motor driver module lets an Arduino, ESP32 or Raspberry Pi control two DC motors, each with its own speed and direction. It takes a 5–35V motor supply and gives up to 2A per channel, which suits DC gear motors, worm gear motors and TT motors.
With the 5V jumper fitted and a 7–12V motor supply, the onboard regulator also gives 5V out to power a small controller such as an Arduino Uno. Above 12V, remove the jumper and feed 5V into the +5V terminal instead.
FEATURES
- ST L298N dual full H-bridge driver
- Two DC motors: direction on IN1–IN4, PWM speed on ENA and ENB
- Up to 2A per channel, 3A short peaks
- Onboard 78M05 5V regulator, switched by a jumper
- Inputs read 3.3V as high, so ESP32 and Raspberry Pi can drive them directly
- Screw terminals for the motors and the power supply
APPLICATIONS
- Two-wheel-drive robot cars with gear motors or TT motors
- Winches, lifts and turntables with worm gear motors
- Conveyor belts and sliding doors in school projects
- Pumps, fans and solenoids that need switching from a microcontroller
- Learning how H-bridges and PWM speed control work
YOU'LL ALSO NEED
TECHNICAL DETAILS
- Driver chip: ST L298N
- Motor supply: 5–35V (7–12V with the onboard regulator on)
- Logic supply: 5V, from the onboard regulator or the +5V terminal
- Output current: 2A per channel continuous, 3A peak
- Maximum power: 25W
- Control inputs: IN1, IN2, IN3, IN4, ENA, ENB
- Input high level: 2.3V minimum (works with 3.3V and 5V logic)
- Voltage drop: about 2V at 1A, more at higher current
SHIPPING LIST
- 1x L298N dual H-bridge motor driver module
FAQ
Should I keep the 5V jumper on the L298N?
Keep it on when the motor supply is 7–12V; the +5V terminal then gives 5V out. Above 12V, remove it and supply 5V to the +5V terminal, or the regulator can overheat. Never feed 5V in while the jumper is on.
Why do my motors run slower than expected on the L298N?
The L298N loses about 2V inside the chip at 1A, and more at higher current. A 12V supply gives a 12V motor only about 10V. For more speed, use a slightly higher supply or the 10A motor driver.
How do I wire the L298N to an Arduino, ESP32 or Raspberry Pi?
Arduino: IN1–IN4 to digital pins, ENA and ENB to PWM pins such as 5 and 6, and GND to GND. ESP32: the same, using any output pins, with PWM from the ESP32 Arduino Core 3.x LEDC functions. Raspberry Pi: IN pins to GPIOs and ENA/ENB to PWM-capable GPIOs. In every case, join the controller's GND to the driver's GND.
Can I use the L298N with a stepper motor?
Use a dedicated stepper driver instead, such as the A4988 or TMC2209. They limit the coil current, run cooler and give smoother, quieter steps.