Hw 130 Motor Control Shield For Arduino Datasheet ❲2024❳

#include AF_DCMotor motor(1); // Select motor M1 void setup() motor.setSpeed(200); // Set speed from 0 (off) to 255 (max) motor.run(RELEASE); // Stop motor initially void loop() motor.run(FORWARD); delay(2000); motor.run(BACKWARD); delay(2000); motor.run(RELEASE); delay(1000); Use code with caution. 5. Troubleshooting Tips

Because it uses a shift register, the motors are not connected to the Arduino directly. You use a library like the Adafruit Motor Shield Library (v1) to communicate with them. Arduino Pin Usage Digital Pin 9 Digital Pin 10 DC Motor 1 / Stepper 1 Digital Pin 11 (PWM) DC Motor 2 / Stepper 1 Digital Pin 3 (PWM) DC Motor 3 / Stepper 2 Digital Pin 5 (PWM) DC Motor 4 / Stepper 2 Digital Pin 6 (PWM) Latch (74HC595) Digital Pins 4, 7, 8, and 12 Power Management External Power (EXT_PWR): hw 130 motor control shield for arduino datasheet

HW-130 motor control shield a highly versatile expansion board for Arduino, based on the . It is designed to drive up to four DC motors two stepper motors two servo motors #include AF_DCMotor motor(1); // Select motor M1 void