

The Ponte H L298N Mini is a compact dual H-bridge motor driver module designed to control DC motors and stepper motors. It is based on the L298N IC, which allows for bidirectional control of two motors simultaneously. This module is widely used in robotics, automation, and other motor control applications due to its small size, ease of use, and ability to handle moderate power loads.








The L298N Mini module has several pins for motor control and power input. Below is the pinout:
| Pin Name | Description |
|---|---|
VCC |
Power supply for the motors (5V to 35V). |
GND |
Ground connection. |
5V |
Logic voltage output (can power external logic circuits if VCC > 7V). |
IN1 |
Input signal for Motor A (controls direction). |
IN2 |
Input signal for Motor A (controls direction). |
IN3 |
Input signal for Motor B (controls direction). |
IN4 |
Input signal for Motor B (controls direction). |
ENA |
Enable pin for Motor A (PWM input for speed control). |
ENB |
Enable pin for Motor B (PWM input for speed control). |
OUT1 |
Output terminal for Motor A. |
OUT2 |
Output terminal for Motor A. |
OUT3 |
Output terminal for Motor B. |
OUT4 |
Output terminal for Motor B. |
Power Connections:
VCC pin to the motor power supply (5V to 35V).GND pin to the ground of the power supply and the microcontroller.5V pin can be used to power the logic circuit.Motor Connections:
OUT1 and OUT2 pins for Motor A, and OUT3 and OUT4 pins for Motor B.Control Connections:
IN1 and IN2 pins to the microcontroller's GPIO pins to control Motor A's direction.IN3 and IN4 pins to the microcontroller's GPIO pins to control Motor B's direction.ENA and ENB pins for PWM signals to control the speed of Motor A and Motor B, respectively.Logic Voltage:
Below is an example of how to control a DC motor using the L298N Mini module with an Arduino UNO:
// Define motor control pins
const int IN1 = 9; // Motor A direction pin 1
const int IN2 = 8; // Motor A direction pin 2
const int ENA = 10; // Motor A speed control (PWM)
// Setup function to initialize pins
void setup() {
pinMode(IN1, OUTPUT); // Set IN1 as output
pinMode(IN2, OUTPUT); // Set IN2 as output
pinMode(ENA, OUTPUT); // Set ENA as output
}
// Loop function to control motor
void loop() {
// Rotate motor forward
digitalWrite(IN1, HIGH); // Set IN1 HIGH
digitalWrite(IN2, LOW); // Set IN2 LOW
analogWrite(ENA, 150); // Set speed to 150 (range: 0-255)
delay(2000); // Run for 2 seconds
// Stop motor
digitalWrite(IN1, LOW); // Set IN1 LOW
digitalWrite(IN2, LOW); // Set IN2 LOW
analogWrite(ENA, 0); // Set speed to 0
delay(1000); // Wait for 1 second
// Rotate motor backward
digitalWrite(IN1, LOW); // Set IN1 LOW
digitalWrite(IN2, HIGH); // Set IN2 HIGH
analogWrite(ENA, 200); // Set speed to 200 (range: 0-255)
delay(2000); // Run for 2 seconds
// Stop motor
digitalWrite(IN1, LOW); // Set IN1 LOW
digitalWrite(IN2, LOW); // Set IN2 LOW
analogWrite(ENA, 0); // Set speed to 0
delay(1000); // Wait for 1 second
}
Motor Not Spinning:
ENA or ENB pins are receiving a valid PWM signal.Overheating:
Erratic Motor Behavior:
No Output on Motor Terminals:
IN1, IN2, etc.) are correctly configured.ENA, ENB) are not left floating.By following this documentation, users can effectively integrate the Ponte H L298N Mini module into their projects for reliable motor control.