Control DC motors and stepper motors with precision using the L298N Dual H-Bridge Motor Driver Module. Designed for Arduino, ESP32, Raspberry Pi, and robotics projects, this module allows you to control the speed and direction of up to two DC motors independently.
It is ideal for building robot cars, automation systems, and motor control applications.
Key Features
- Dual H-Bridge motor driver (controls 2 motors independently)
- Wide input voltage range: 5V to 35V
- High current capacity: up to 2A per channel
- Built-in 5V voltage regulator
- PWM support for speed control
- Compatible with Arduino, ESP32, Raspberry Pi
- Suitable for robotics and DIY electronics projects
Technical Specifications
| Specification | Value |
|---|---|
| Main Chip | L298N |
| Logical Voltage | 5V |
| Drive Voltage | 5V – 35V |
| Logical Current | 0mA – 36mA |
| Driving Current | 2A (per channel max) |
| Maximum Power | 20W |
| Storage Temperature | -20°C to +135°C |
| Dimensions | 43 × 43 × 27 mm |
| Weight | 30 g |
| Packaging | Electrostatic bag |
How to Use L298N with Arduino (Quick Guide)
- Connect the motor power supply (typically 7V–12V) to the module
- Connect motors to OUT1–OUT4
- Connect IN1–IN4 to Arduino digital pins
- Use ENA and ENB pins for PWM speed control
- Upload Arduino code to control motor direction and speed
This allows you to:
- Control forward and reverse motion
- Adjust motor speed using PWM
- Operate two motors independently
L298N Wiring Diagram (Basic Setup)
- IN1–IN4 → Arduino digital pins
- ENA / ENB → PWM pins
- OUT1–OUT4 → Motors
- 12V → Motor power supply
- GND → Shared ground with Arduino
Important: Always use a common ground between the motor power supply and the controller.
int motor1Pin1 = 8;
int motor1Pin2 = 9;
int enablePin = 10;
void setup() {
pinMode(motor1Pin1, OUTPUT);
pinMode(motor1Pin2, OUTPUT);
pinMode(enablePin, OUTPUT);
}
void loop() {
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);
analogWrite(enablePin, 200);
}
Common Use Cases
- Robot car projects
- Arduino and ESP32 learning projects
- Motor speed control systems
- DIY automation and robotics
- Battery-powered motor applications
Frequently Asked Questions
What motors can this module control?
The L298N can control DC motors and stepper motors with up to 2A current per channel.
What power supply should I use?
A 7V–12V supply is commonly used, depending on your motor requirements.
Can I control motor speed?
Yes, speed can be controlled using PWM signals via the ENA and ENB pins.
Is it compatible with ESP32 and Raspberry Pi?
Yes, it works with Arduino, ESP32, Raspberry Pi, and other microcontrollers.
Why is my motor not working?
Check the following:
- Power supply voltage
- Wiring connections
- Common ground
- Enable pins (ENA/ENB)
Why Choose This L298N Module
- Reliable and widely used motor driver
- Suitable for beginners and advanced users
- Compatible with popular development boards
- Ideal for robotics and motor control projects
Add the L298N Dual H-Bridge Motor Driver Module to your project and build reliable motor control systems with ease.






