Blog

L298N Motor Driver Module – 2A Dual Channel

L298N Motor Driver Module

2A Dual Channel H-Bridge for DC and Stepper Motors

Introduction

The L298N is a high-voltage, high-current dual full-bridge driver designed to control inductive loads like DC motors and stepper motors. This module can drive two DC motors bidirectionally or one stepper motor with up to 2A per channel.

L298N Motor Driver Module

Key Features

High Power

2A continuous current per channel

🔄 Bidirectional

Full control of two DC motors

🔌 Wide Voltage

5V-35V operating range

📶 Multiple Control

PWM speed + direction control

Technical Specifications

Driver IC L298N Dual H-Bridge
Operating Voltage 5V – 35V DC
Peak Current 3A per channel (2A continuous)
Logic Voltage 5V (compatible with 3.3V MCUs)
PWM Frequency Up to 25kHz
Power Dissipation 25W (with heatsink)
Control Signals TTL/CMOS compatible
Dimensions 43mm × 43mm × 27mm

Pin Configuration

L298N Pinout Diagram
Terminal Function Connection
+12V Motor Power (5-35V) Battery positive
GND Ground Battery negative
+5V Logic Power (optional) 5V (if jumper removed)
ENA Channel A Enable PWM capable pin
IN1/IN2 Channel A Control Digital pins
IN3/IN4 Channel B Control Digital pins
ENB Channel B Enable PWM capable pin
OUT1/OUT2 Channel A Motor Motor A terminals
OUT3/OUT4 Channel B Motor Motor B terminals
Note: Keep the jumper on +5V terminal if using the onboard 5V regulator

Wiring Diagrams

Dual DC Motor Control

DC Motor Wiring

Stepper Motor Control

Stepper Motor Wiring

Basic DC Motor Control

Stepper Motor Control

Tip: For better performance, use the AccelStepper library instead of manual stepping

Advanced Features

Current Sensing

Acceleration Control

Serial Control

Troubleshooting

Motor Not Moving

  • Check enable jumpers are in place
  • Verify motor power supply is adequate
  • Test with direct battery connection

Overheating

  • Ensure heatsink is properly attached
  • Reduce current draw (smaller motors)
  • Add cooling fan if needed

Erratic Behavior

  • Add 100μF capacitor across motor terminals
  • Separate logic and motor power supplies
  • Check for loose connections