Hw 130 Motor Control Shield For Arduino Datasheet -
void loop() stepper.step(100, FORWARD, SINGLE); delay(1000); stepper.step(100, BACKWARD, DOUBLE); delay(1000);
void setup() motor1.setSpeed(150); // 0-255 motor2.setSpeed(200); motor1.run(FORWARD); motor2.run(BACKWARD); hw 130 motor control shield for arduino datasheet
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 | void loop() stepper
Download from Adafruit’s GitHub or via Arduino Library Manager (search “Adafruit Motor Shield”). 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.
#define M1_DIR 12 #define M1_PWM 5 void setup() pinMode(M1_DIR, OUTPUT); pinMode(M1_PWM, OUTPUT);