char command;
// Reverse at full speed digitalWrite(MOTOR1_DIR, LOW); analogWrite(MOTOR1_PWM, 255); delay(2000);
The HW-130 Motor Control Shield offers several advantages over other motor control solutions, including: hw 130 motor control shield for arduino datasheet free
2-pin screw terminal labeled +M (or Vcc ) and GND . This is where you connect your external motor power supply.
#include <AFMotor.h>
The shield features a shorting jumper labeled (often near the external power terminal).
: 0.6A per bridge (1.2A peak) with thermal shutdown protection. Voltage Range : Motor supply voltage from 4.5V to 25V (though many variants are rated up to 12V-16V for safety). Dimensions : Approximately 69mm x 53mm. 5.imimg.com Pinout and Connectivity void setup() myStepper.setSpeed(12)
This code will spin a motor connected to the M1 port forward at half speed for one second, then backward for one second.
Always connect a dedicated battery or a wall adapter to the terminals. For small DC motors, a 5 V–12 V supply with a current rating of at least 1 A–2 A is sufficient. For larger motors, ensure the supply can meet the peak current drawn by all motors simultaneously. // 12 RPM myStepper.step(2048)
⚠️ The HW 130 does not use D3 for PWM like the official L293D shield. Check your pinout.
void setup() myStepper.setSpeed(12); // 12 RPM myStepper.step(2048); // one full rotation