Hw 130 Motor Control Shield For Arduino Datasheet -
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. Document version 1.0 – Last updated: April 2026 This datasheet is based on reverse engineering of the HW-130 hardware and public L293D documentation.
void setMotor(int speed, bool reverse) digitalWrite(M1_DIR, reverse ? HIGH : LOW); analogWrite(M1_PWM, constrain(speed, 0, 255));
#define M1_DIR 12 #define M1_PWM 5 void setup() pinMode(M1_DIR, OUTPUT); pinMode(M1_PWM, OUTPUT); hw 130 motor control shield for arduino datasheet
#include <AFMotor.h> AF_DCMotor motor1(1); // M1 AF_DCMotor motor2(3); // M3
Approx. 4W (with proper cooling) 3. Pinout & Hardware Layout The HW-130 sits directly on top of the Arduino Uno. It uses the following Arduino digital and analog pins (note that analog pins A0–A5 are broken out for general use ): Dedicated Motor Pins: | Motor | Direction Pin (Arduino) | PWM Speed Pin (Arduino) | |-------|------------------------|-------------------------| | M1 | D12 | D5 | | M2 | D11 | D6 | | M3 | D8 | D9 | | M4 | D7 | D10 | For any serious project with motors exceeding 700
#include <AFMotor.h> AF_Stepper stepper(48, 1); // 48 steps per revolution, motor port 1 (M1+M2)
void setup() stepper.setSpeed(30); // 30 rpm It uses the following Arduino digital and analog
1. Introduction The HW-130 is a popular, low-cost motor driver shield designed for Arduino Uno, Arduino Leonardo, and similar compatible boards. It is based on the L293D quadruple half-H driver IC, making it ideal for driving small DC motors, bipolar stepper motors, and even solenoids. This shield is a clone or derivative of the well-known Adafruit Motor Shield V1 design, and it offers an entry-level solution for robotics and mechatronics projects.