Hw 130 Motor Control Shield For Arduino Datasheet __exclusive__
The HW-130 shield uses Arduino pins for motor control while leaving other pins free for sensors. Motor Terminals (M1, M2, M3, M4)
I can provide a tailored wiring schematic or custom code for your exact build! AI responses may include mistakes. Learn more Share public link
#include // Initialize DC motor on terminal M1 AF_DCMotor motor(1); void setup() Serial.begin(9600); Serial.println("HW-130 Motor Shield Test"); // Set initial speed (0 is off, 255 is max speed) motor.setSpeed(200); motor.run(RELEASE); void loop() Serial.println("Moving Forward"); motor.run(FORWARD); // Accelerate for (int i=0; i 0; i--) motor.setSpeed(i); delay(10); Serial.println("Stopping"); motor.run(RELEASE); delay(2000); Use code with caution. Troubleshooting Common Issues hw 130 motor control shield for arduino datasheet
The HW-130 motor control shield is a highly versatile, budget-friendly expansion board designed for Arduino enthusiasts and robotics builders. Based on the classic L293D push-pull driver chip architecture, this shield allows you to control multiple motors simultaneously without dealing with messy breadboard wiring.
An H-Bridge is an electronic circuit that switches the polarity of a voltage applied to a load, enabling a DC motor to spin forward or backward. The two onboard L293D chips provide a combined total of , outputting up to four individual unidirectional paths or two bidirectional paths. Motor Shield Rev3 | Arduino Documentation The HW-130 shield uses Arduino pins for motor
Serial.println("Backward at speed 100"); motor.run(BACKWARD); // Spin counter-clockwise motor.setSpeed(100); delay(2000);
Below is a simple sketch to spin a DC motor connected to the terminal forward, backward, and adjust its speed. Learn more Share public link #include // Initialize
AF_Stepper stepper1(48, 1); // 48 steps per revolution, motor port #1 (M1+M2)
If you stack this shield onto an Arduino Uno, the following pins are hardwired and unavailable for other sensors:
Do not trust the silkscreen on cheap boards. Always verify with a multimeter, but the table above matches the standard "L298N Shield" reference design.
💡 Always use an external power supply for DC motors to avoid crashing your Arduino due to voltage drops.