: Remove the power jumper to separate logic and motor power. Power the Arduino via USB or the DC jack. Connect the motor supply to the EXT_PWR terminal block.
// HW-130 Motor Shield Pin Definitions #define M1_SPEED 3 // PWM Pin for Motor A Speed #define M1_DIR 12 // Direction Pin for Motor A #define M2_SPEED 11 // PWM Pin for Motor B Speed #define M2_DIR 13 // Direction Pin for Motor B
To program the HW-130 shield efficiently, you should use the library, which simplifies the shift register and PWM configurations. Library Installation Open the Arduino IDE.