L298N Motor Driver Module
Dual H-Bridge Controller for DC and Stepper Motors
The L298N motor driver module enables independent speed and direction control for two DC motors or one stepper motor. It is built around the L298N IC, a highvoltage, highcurrent chip capable of handling up to 2A per channel [citation:8][citation:12].
Dual HBridge Design Drives two motors simultaneously with bidirectional control
Wide Voltage Support - Operates motors from 5V to 35V [citation:9]
Motor supply voltage is 5V to 35V; logic level is 5V
Use PWM signals on ENA/ENB pins for smooth speed control
Do not exceed 2A current per channel to prevent overheating
Technical Specifications
| Parameter | Value |
|---|
| Driver IC | L298N Dual H-Bridge |
| Motor Supply | 5V to 35V |
| Logic Supply | 5V |
| Output Current (per channel) | 2A continuous |
| Max Power | 25W |
| PWM Frequency | Up to 20kHz |
| Control Pins | IN1-IN4, ENA, ENB |
= Pin Configuration =
*Power Inputs:*
- VCC: Motor power 5-35V
- GND: Common ground [citation:2]
- 5V: Logic supply / output
*Motor Outputs:*
- OUT1 & OUT2: Motor A terminals
- OUT3 & OUT4: Motor B terminals [citation:1]
*Control Inputs:*
- IN1 & IN2: Direction control for Motor A
- IN3 & IN4: Direction control for Motor B
- ENA: Speed control (PWM) for Motor A
- ENB: Speed control (PWM) for Motor B [citation:2]
Key Features
High Current Handling - 2A per channel for most hobbyist motors [citation:1]
Onboard 5V Regulator - Can power Arduino when motor supply is ≤12V [citation:8]
Heatsink Included - Better thermal performance during heavy loads
Screw Terminals - Secure connections for motors and power supply [citation:2]
LED Power Indicator - Visual confirmation of power status
= Applications =
- Arduino robotics and smart car projects [citation:3]
- Conveyor belts and automation systems [citation:12]
- Stepper motor control for CNC machines
- DIY RC cars and drones
- Industrial actuator control
Versatile Driver - Popular choice for motor control projects
Easy Interface Simple logiclevel inputs from Arduino
√ Includes onboard 5V regulator for logic power
√ Screw terminals for reliable wiring
√ Compatible with Arduino, ESP32, and Raspberry Pi
5V Jumper Guidelines
The onboard 5V jumper controls the voltage regulator:
| Motor Supply | Jumper Setting | 5V Pin Function |
|---|
| ≤12V | Keep jumper ON | Output: supplies 5V to Arduino [citation:8] |
| >12V | Remove jumper | Input: requires external 5V supply [citation:1] |
> Remove jumper when using motor supply above 12V to protect the regulator
Do not use 5V pin as output if motor supply exceeds 12V
Troubleshooting
Motor not spinning:
- Check common ground between module and Arduino [citation:2]
- Verify power supply connections
- Ensure jumper setting matches motor voltage
No speed control:
- Connect ENA/ENB to PWM-capable pins [citation:2]
- Use
analogWrite() for speed modulation
Overheating:
- Add external heatsink
- Reduce load current below 2A
- Ensure adequate ventilation