
L298N Dual H-Bridge Motor Driver Module designed for controlling DC motors, stepper motors, and robotic actuators using microcontrollers such as Arduino, ESP32, STM32, and Raspberry Pi. Based on the STMicroelectronics L298N dual full-bridge driver IC, the module supports bidirectional motor control with independent speed and direction management.
The module includes onboard voltage regulator, screw terminals, heat sink, and easy-to-use pin headers, making it one of the most popular motor driver solutions for robotics, automation, and embedded systems projects.
| Parameter | Value |
|---|---|
| Model | L298N |
| Driver Type | Dual H-Bridge |
| Motor Channels | 2 |
| Motor Voltage | 5V – 35V |
| Logic Voltage | 5V |
| Max Current | 2A per channel |
| Peak Current | 3A |
| Control Interface | TTL Logic |
| PWM Support | Yes |
| Voltage Regulator | Onboard 5V regulator |
| Driver IC | ST L298N |
| Heat Sink | Included |
| Dimensions | ~43mm × 43mm × 27mm |
| Pin | Description |
|---|---|
| ENA | Enable Motor A (PWM Speed) |
| IN1 | Motor A Direction 1 |
| IN2 | Motor A Direction 2 |
| IN3 | Motor B Direction 1 |
| IN4 | Motor B Direction 2 |
| ENB | Enable Motor B (PWM Speed) |
| OUT1 | Motor A Output |
| OUT2 | Motor A Output |
| OUT3 | Motor B Output |
| OUT4 | Motor B Output |
| +12V | Motor Power Input |
| GND | Ground |
| 5V | Logic Power |
| Feature | L298N | L293D |
|---|---|---|
| Max Current | 2A | 600mA |
| Motor Voltage | 35V | 36V |
| Heat Sink | Yes | No |
| Efficiency | Medium | Low |
| Module Size | Larger | Smaller |
| Best For | Medium motors | Small motors |
| L298N | Blue Pill |
|---|---|
| ENA | PA8 |
| IN1 | PB0 |
| IN2 | PB1 |
| IN3 | PB10 |
| IN4 | PB11 |
| ENB | PA9 |
| GND | GND |
| L298N | Arduino UNO |
|---|---|
| ENA | D5 |
| IN1 | D8 |
| IN2 | D9 |
| IN3 | D10 |
| IN4 | D11 |
| ENB | D6 |
| GND | GND |
#define ENA 5
#define IN1 8
#define IN2 9
void setup() {
pinMode(ENA, OUTPUT);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
}
void loop() {
// Forward
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(ENA, 200);
delay(2000);
// Stop
analogWrite(ENA, 0);
delay(1000);
// Reverse
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
analogWrite(ENA, 200);
delay(2000);
}
៛5,000
Fast Shipping
Phnom Penh & provinces
7 Day Returns
Hassle-free returns