: Assigned to clock, latch, data, and enable lines for the 74HC595 shift register to control H-bridge direction states. Available I/O Pins
For any serious project with motors exceeding 700 mA, consider upgrading to a MOSFET-based shield, but for light robotics and classroom work, the HW-130 remains a reliable workhorse.
#include <Servo.h>
One of the biggest advantages of the HW-130 is its integration. However, because it plugs directly into the Arduino UNO or Mega, it utilizes specific hardware pins. Understanding these pins is crucial to avoid conflicts with other sensors. 1. Servo Motor Pins
| Parameter | Value / Range | | -------------------------------- | --------------------------------------- | | Motor Driver IC | L293D (dual full‑bridge) | | Logic Shift Register | 74HC595 | | Motor Supply Voltage (V motor ) | | | Logic Supply Voltage (V logic ) | 5V DC (from Arduino) | | Continuous Current per Channel | 600 mA | | Peak Current per Channel | 1.2 A (short pulse) | | Number of DC Motors | Up to 4 (bidirectional) | | Number of Stepper Motors | Up to 2 (unipolar or bipolar) | | Number of Servo Motors | Up to 2 (5V) | | Servo PWM Pins | D9 and D10 (Arduino Uno) | | Speed Control Resolution | 8‑bit (0–255, approx. 0.5% increments) | | Thermal Protection | Yes (L293D internal shutdown) | | Protection Diodes | Internal (flyback) | | Compatibility (Arduino) | Uno, Mega, Diecimila, Duemilanove | | Compatibility (non‑Arduino) | 3.3V‑logic boards (ESP32, ESP8266) with caution | hw 130 motor control shield for arduino datasheet
void loop() // Motor A Forward, Motor B Reverse digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); delay(2000);
The shield is designed for 5V logic, but it can often be used with 3.3V boards like the ESP32. The L293D has a logic‑high threshold below 3.3V, so direct control is possible. However: : Assigned to clock, latch, data, and enable
The datasheet for the HW-130 can be confusing regarding which Arduino pins are used. Unlike generic L298N modules where you pick the pins, this shield has fixed mappings because the pins are hard-wired on the PCB.
Your power supply cannot provide enough current. Switch to an external battery pack and remove the power jumper. However, because it plugs directly into the Arduino
Unlike other shields, the HW-130 does not require you to wire individual IN1, IN2, IN3, IN4 pins manually. The connections are managed internally by the shield. However, understanding the pin mapping is crucial for troubleshooting or avoiding conflicts with other shields.