Control Shield For Arduino Datasheet ^hot^: Hw 130 Motor
// HW-130 Motor Shield Pin Definitions #define ENA 5 // Speed for Motor A #define IN1 7 // Direction 1 #define IN2 8 // Direction 2
void loop() // Motor M1 forward at half speed digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); analogWrite(ENA, 128); hw 130 motor control shield for arduino datasheet
If you’ve bought a cheap "HW-130" motor driver shield from Amazon, eBay, or AliExpress, you probably noticed one thing immediately: // HW-130 Motor Shield Pin Definitions #define ENA
// Set direction forward for both motors digitalWrite(4, HIGH); digitalWrite(5, LOW); digitalWrite(6, HIGH); digitalWrite(7, LOW); hw 130 motor control shield for arduino datasheet
The HW-130 allows you to control two DC motors or one stepper motor. It uses the L298P driver chip, which is mounted on the shield to handle the high currents that the Arduino cannot handle directly.


