Hw 130 Motor Control Shield For Arduino Datasheet Official
Its primary purpose is to allow an Arduino to control high-power motors using low-power logic pins, with built-in protection and speed control (PWM). Driver IC: 2 × L293D Quadruple Half-H Bridges.
Always and use an external battery pack (like a 2-cell LiPo or 6AA battery pack) connected to the EXT_PWR terminal to power your motors. This prevents the high current draw of the motors from drawing down the Arduino’s onboard regulator. Software Implementation & Code Example
Although the shield is “plug‑and‑play,” understanding its pin mapping is essential when writing low‑level code or diagnosing problems. The following table details the hardware connections between the shield and the Arduino Uno/Mega headers:
Up to 2 hobby servo motors (5V high-resolution timers tied to Arduino pins 9 and 10) Pinout and Hardware Configuration
void setup() Serial.begin(9600); // HC-05 uses Serial Hardware pins motorLeft.setSpeed(150); motorRight.setSpeed(150); motorLeft.run(RELEASE); motorRight.run(RELEASE); hw 130 motor control shield for arduino datasheet
void loop() // your motor control code here
(often referred to as the L293D Motor Shield) is one of the most popular, versatile, and affordable expansion boards for robotics enthusiasts and hobbyists. It simplifies the process of controlling motors by bundling multiple H-bridges onto a single, stackable board designed for the Arduino Uno, Mega, and Diecimila.
void loop() stepper.step(100, FORWARD, SINGLE); delay(1000); stepper.step(100, BACKWARD, DOUBLE); delay(1000);
The HW-130 is designed for versatility and ease of use: Its primary purpose is to allow an Arduino
If you tell me what type of motors (DC, Stepper, or Servo) or which Arduino board (Uno or Mega) you are using, I can provide a tailored schematic and example code. L293D Based Arduino Motor Shield
Download from Adafruit’s GitHub or via Arduino Library Manager (search “Adafruit Motor Shield”).
The library also supports steppers. To run a stepper on M1 & M2, you would use:
Used for PWM (Pulse Width Modulation) speed control of DC motors. This prevents the high current draw of the
simultaneously, making it a standard choice for robotics projects. 5.imimg.com Core Specifications Motor Controller : Dual L293D H-bridge motor driver chips. Output Channels 4 Bi-directional DC motors with individual 8-bit speed selection. 2 Stepper motors (unipolar or bipolar). 2 Servo motors (5V hobby type) connected to dedicated Arduino timers. Current Limits : 0.6A per bridge constant current (1.2A peak). Voltage Range : Supports motor voltages from 4.5V to 25V
The HW-130 is fully compatible with Adafruit’s AFMotor library.
#include // Initialize DC motor on terminal M1 AF_DCMotor motor(1); void setup() Serial.begin(9600); Serial.println("HW-130 Motor Shield Test"); // Set initial speed (0 is off, 255 is max speed) motor.setSpeed(200); motor.run(RELEASE); void loop() Serial.println("Moving Forward"); motor.run(FORWARD); // Accelerate for (int i=0; i 0; i--) motor.setSpeed(i); delay(10); Serial.println("Stopping"); motor.run(RELEASE); delay(2000); Use code with caution. Troubleshooting Common Issues
