

The L298N DC Motor Driver Module, manufactured by JJY (Part ID: L298N_Module), is a versatile and robust dual H-bridge motor driver. It allows for the control of the speed and direction of two DC motors independently. With a current handling capacity of up to 2A per channel, this module is ideal for a wide range of applications, including robotics, automation projects, and any other project requiring precise motor control.








| Parameter | Value |
|---|---|
| Operating Voltage | 5V to 35V |
| Output Current | 2A per channel (max 3A peak) |
| Control Logic | Standard TTL logic levels |
| Power Dissipation | 25W |
| Dimensions | 43mm x 43mm x 27mm |
| Weight | 26g |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | ENA | Enable pin for Motor A (High to enable) |
| 2 | IN1 | Input 1 for Motor A (connected to microcontroller) |
| 3 | IN2 | Input 2 for Motor A (connected to microcontroller) |
| 4 | OUT1 | Output 1 for Motor A (connected to motor terminal) |
| 5 | OUT2 | Output 2 for Motor A (connected to motor terminal) |
| 6 | GND | Ground |
| 7 | VCC | Supply voltage for the motor (5V to 35V) |
| 8 | ENB | Enable pin for Motor B (High to enable) |
| 9 | IN3 | Input 3 for Motor B (connected to microcontroller) |
| 10 | IN4 | Input 4 for Motor B (connected to microcontroller) |
| 11 | OUT3 | Output 3 for Motor B (connected to motor terminal) |
| 12 | OUT4 | Output 4 for Motor B (connected to motor terminal) |
| 13 | 5V | 5V output (can be used to power the logic circuitry of the microcontroller) |
Power Connections:
VCC pin to the power supply (5V to 35V) for the motors.GND pin to the ground of the power supply.Motor Connections:
OUT1 and OUT2 for Motor A.OUT3 and OUT4 for Motor B.Control Connections:
ENA to a PWM-capable pin on the microcontroller to control the speed of Motor A.ENB to a PWM-capable pin on the microcontroller to control the speed of Motor B.IN1 and IN2 to digital pins on the microcontroller to control the direction of Motor A.IN3 and IN4 to digital pins on the microcontroller to control the direction of Motor B.// Define motor control pins
#define ENA 9
#define IN1 8
#define IN2 7
#define ENB 10
#define IN3 6
#define IN4 5
void setup() {
// Set all the motor control pins to output
pinMode(ENA, OUTPUT);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(ENB, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
}
void loop() {
// Example: Rotate Motor A forward at full speed
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(ENA, 255); // Full speed
// Example: Rotate Motor B backward at half speed
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
analogWrite(ENB, 128); // Half speed
delay(2000); // Run motors for 2 seconds
// Stop both motors
analogWrite(ENA, 0);
analogWrite(ENB, 0);
delay(2000); // Wait for 2 seconds before repeating
}
Motors Not Running:
ENA and ENB pins are set high or connected to PWM signals.Overheating:
Erratic Motor Behavior:
By following this documentation, users should be able to effectively utilize the L298N DC Motor Driver Module in their projects, ensuring reliable and efficient motor control.