Hw 130 Motor Control Shield For Arduino Datasheet [hot] -

| IN1 (D4) | IN2 (D7) | ENA (D5 PWM) | Motor A Action | | :--- | :--- | :--- | :--- | | H | L | H | Forward (CW) | | L | H | H | Reverse (CCW) | | H | H | H | Brake (quick stop) | | L | L | H | Coast (free stop) | | X | X | L | Coast (disabled) |

// Initialize motors off digitalWrite(MOTOR_A_DIR, LOW); digitalWrite(MOTOR_B_DIR, LOW); analogWrite(MOTOR_A_PWM, 0); analogWrite(MOTOR_B_PWM, 0); Hw 130 Motor Control Shield For Arduino Datasheet

The HW 130 can drive a unipolar or bipolar stepper (e.g., 28BYJ-48). Use the built-in Stepper library. | IN1 (D4) | IN2 (D7) | ENA

Check if the PWR Jumper is correctly configured. If using external power, the jumper must be removed. If using external power, the jumper must be removed

// HW 130 Motor Shield - Basic Control // Pin mapping for standard HW 130 #define MOTOR_A_DIR 4 #define MOTOR_A_PWM 5 #define MOTOR_B_DIR 7 #define MOTOR_B_PWM 6

| Issue | Probable cause | Solution | |---------------------------|----------------------------------------|----------------------------------------| | Motor not moving | VMS too low (<4.5V) or missing | Provide adequate external power | | Arduino resets on motor start | Motor current spike | Add large capacitor (470–1000 µF) across VMS/GND | | Only one motor works | Damaged L293D channel | Replace shield or use second channel | | Poor speed regulation at low PWM | L293D dead band | Use PWM > 100 Hz and >15% duty cycle | | Heat sink required | Continuous current >300 mA per channel | Add small adhesive heatsink on L293D |

#define ENA 9 #define IN1 8 #define IN2 7 #define ENB 10 #define IN3 6 #define IN4 5