The WPI409 Dual H-Bridge Driver Module, manufactured by Whadda, is a versatile and robust motor driver based on the L298N chip. This module is designed to control DC motors or stepper motors, providing bidirectional control with a high current capacity. It is widely used in robotics, automation, and various DIY electronics projects.
Parameter | Value |
---|---|
Operating Voltage | 5V to 35V |
Output Current | 2A per channel (continuous), 3A peak |
Logic Voltage | 5V |
Control Logic | TTL compatible |
Power Dissipation | 25W (at 75°C) |
Dimensions | 43mm x 43mm x 27mm |
Weight | 26g |
Pin Name | Description |
---|---|
VCC | Motor power supply (5V to 35V) |
GND | Ground |
5V | Logic power supply (5V) |
OUT1 | Motor A output 1 |
OUT2 | Motor A output 2 |
OUT3 | Motor B output 1 |
OUT4 | Motor B output 2 |
Pin Name | Description |
---|---|
ENA | Enable pin for Motor A (High to enable) |
IN1 | Control input 1 for Motor A |
IN2 | Control input 2 for Motor A |
ENB | Enable pin for Motor B (High to enable) |
IN3 | Control input 1 for Motor B |
IN4 | Control input 2 for Motor B |
Power Connections:
Motor Connections:
Control Connections:
// Define motor control pins
const int ENA = 9;
const int IN1 = 8;
const int IN2 = 7;
const int ENB = 3;
const int IN3 = 5;
const int IN4 = 4;
void setup() {
// Set all the motor control pins as outputs
pinMode(ENA, OUTPUT);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(ENB, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
// Initialize motors to off
digitalWrite(ENA, LOW);
digitalWrite(ENB, LOW);
}
void loop() {
// Example: Move Motor A forward
digitalWrite(ENA, HIGH); // Enable Motor A
digitalWrite(IN1, HIGH); // Set IN1 high
digitalWrite(IN2, LOW); // Set IN2 low
// Example: Move Motor B backward
digitalWrite(ENB, HIGH); // Enable Motor B
digitalWrite(IN3, LOW); // Set IN3 low
digitalWrite(IN4, HIGH); // Set IN4 high
delay(2000); // Run motors for 2 seconds
// Stop motors
digitalWrite(ENA, LOW);
digitalWrite(ENB, LOW);
delay(2000); // Wait for 2 seconds before repeating
}
Motor Not Running:
Motor Running in Wrong Direction:
Overheating:
No Response from Module:
By following this documentation, users can effectively utilize the WPI409 Dual H-Bridge Driver Module for controlling DC or stepper motors in various applications. Whether you are a beginner or an experienced user, this guide provides the necessary information to get started and troubleshoot common issues.