Dataset Ninja LogoDataset Ninja:

Hw 130 Motor Control Shield For Arduino Datasheet _best_ Jun 2026

1618519721209
Taggeneral, benchmark
Taskobject detection
Release YearMade in 2013
Licenseunknown

Hw 130 Motor Control Shield For Arduino Datasheet _best_ Jun 2026

// HW-130 Motor Shield Pin Definitions #define ENA 5 // Speed for Motor A #define IN1 7 // Direction 1 #define IN2 8 // Direction 2

| Motor | Direction Pin (Arduino) | PWM Speed Pin (Arduino) | |-------|------------------------|-------------------------| | M1 | D12 | D5 | | M2 | D11 | D6 | | M3 | D8 | D9 | | M4 | D7 | D10 |

void loop() // Forward at 75% speed digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); analogWrite(ENA, 191); // 0-255 -> 191 ≈ 75% delay(2000); hw 130 motor control shield for arduino datasheet

The HW-130 shield is electrically compatible with the , so the AFMotor library works directly.

References to look up (manufacturer resources) // HW-130 Motor Shield Pin Definitions #define ENA

The shield can simultaneously control several combinations of motors: DC Motors: 4 bi-directional DC motors with individual 8-bit speed selection. Stepper Motors: 2 stepper motors

The L293D chips can get hot. If you are drawing close to 600mA continuously, consider sticking a small aluminum heatsink onto the ICs. Conclusion If you are drawing close to 600mA continuously,

In Arduino IDE: Sketch → Include Library → Manage Libraries . Search for “AFMotor” and install the library by Adafruit.

#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