Hw 130 Motor Control Shield For Arduino Datasheet Free ((top)) | REAL |
#Arduino #Robotics #OpenSource
void setup() motor1.setSpeed(200); motor2.setSpeed(200); motor3.setSpeed(200); motor4.setSpeed(200);
#include <AFMotor.h>
The HW-130 motor control shield is a popular, budget-friendly expansion board for Arduino. It is widely used in robotics, CNC projects, and automation. This guide serves as a comprehensive datasheet and manual, providing everything you need to know to wire, program, and operate the board safely. 1. Product Overview
To control speed, apply a PWM signal (e.g., analogWrite() on Arduino) to either IA or IB while keeping the other LOW. For forward, PWM to IA; IB = LOW. For reverse, PWM to IB; IA = LOW. hw 130 motor control shield for arduino datasheet free
Disclaimer: As an AI, I am providing a summary of the common "HW-130" L293D-based motor shield, which is a popular clone. Specifications may vary slightly by manufacturer. If you'd like, I can help you: Find the the HW-130
Some versions of the HW‑130 have a jumper labeled or 5V‑EN . If this jumper is in place, the motor power supply also feeds the Arduino’s 5 V rail. Remove this jumper unless you are absolutely certain that your motor supply voltage is within a safe range for the Arduino (typically 7 V–12 V). A 12 V supply may be acceptable, but a 15 V supply can damage the Arduino.
#define MOTOR_A_IA 6 #define MOTOR_A_IB 7
else if (command == 'B') motor1.run(BACKWARD); motor2.run(BACKWARD); #Arduino #Robotics #OpenSource void setup() motor1
Connection for external battery power (+, -).
Many robot builders pair the HW‑130 with an for remote control. A typical approach uses SoftwareSerial to receive commands such as F (forward), B (backward), L (left), R (right), and S (stop) from a smartphone app.
Connect your battery to the VIN terminal on the shield. Ensure polarity is correct ( −negative Power Selection: Keep the PWR jumper on if your battery is 12V12 cap V Example Code (Speed and Direction Control)
void setup() pinMode(MOTOR1_DIR, OUTPUT); pinMode(MOTOR1_PWM, OUTPUT); Serial.begin(9600); Serial.println("HW 130 Test Ready"); For reverse, PWM to IB; IA = LOW
2 x L293D Motor Drivers + 1 x 74HC595 Shift Register.
Here are a few options for a post about the HW-130 Motor Control Shield, tailored for different platforms like Facebook groups, Reddit, or forums.
The shield uses a shift register to save Arduino pins, requiring only a few digital pins to control all 8 H-bridge directions. Arduino Pins Used Digital Pin 9 Digital Pin 10 DC Motors / Steppers Digital Pins 4, 7, 8, and 12 (via 74HC595) PWM (Speed Control) Pins 11 (M1), 3 (M2), 5 (M3), 6 (M4) Unused/Free Pins Digital Pin 2, Pin 13, and Analog Pins A0–A5 Power Management The HW-130 features a power jumper