Hw 130 Motor Control Shield For Arduino Datasheet __hot__

void loop() // Test Motor 1 Forward Serial.println("Motor 1 Forward"); digitalWrite(M1, HIGH); // Set direction analogWrite(E1, 150); // Set speed (0-255) delay(2000);

The core functionality of the HW-130 depends on the . Specification Logic Supply Voltage (via Arduino) Motor Supply Voltage (External terminal) Output Current per channel (1.2A peak) Channels 4 DC or 2 Steppers Protection Thermal shutdown and internal ESD protection

void setup() stepper.setSpeed(30); // 30 rpm

Would you like a , a library usage guide , or a stepper motor example for this shield?

3-pin header mapped directly to Arduino Digital Pin 10. hw 130 motor control shield for arduino datasheet

The easiest way to control this shield is using the AFMotor.h library (Adafruit Motor Shield library).

A small button to reset the Arduino without removing the shield. 4. Pinout and Usage

The shield typically includes two 3-pin headers for Servos.

It is a cost-effective alternative to official shields, especially popular among hobbyists and educators building small robots, automated systems, and various motion-control projects. void loop() // Test Motor 1 Forward Serial

Note: Do not install the V2 library, as it is designed for I2C-based shields and will not work with the HW-130. How to Install the Library: Open the Arduino IDE.

The easiest way to control the HW-130 shield is by using Adafruit's original , which handles the complex shift register matrix coding for you. Installing the Library Open the Arduino IDE.

The library also supports steppers. To run a stepper on M1 & M2, you would use:

void setup() Serial.begin(9600); // HC-05 uses Serial Hardware pins motorLeft.setSpeed(150); motorRight.setSpeed(150); motorLeft.run(RELEASE); motorRight.run(RELEASE); The easiest way to control this shield is using the AFMotor

Summary

I can help with the wiring diagram or a specific code snippet.

| HW 130 Signal | Arduino Pin | Function | Notes | | :--- | :--- | :--- | :--- | | | Digital Pin 4 | Motor A Direction 1 | | | IN2 | Digital Pin 5 | Motor A Direction 2 | | | IN3 | Digital Pin 6 | Motor B Direction 1 | | | IN4 | Digital Pin 7 | Motor B Direction 2 | | | ENA | Digital Pin 3 | Enable / PWM for Motor A | Hardware PWM capable | | ENB | Digital Pin 11 | Enable / PWM for Motor B | Hardware PWM capable | | +5V | 5V Pin | Logic supply (input or output) | | | GND | GND | Common ground | | | CS A | Analog Pin A0 | Current sense for Motor A (voltage proportional to current) | | | CS B | Analog Pin A1 | Current sense for Motor B | |