Nhạc Chuông Rồi Nâng Cái Ly Remix Nal tainhac123
Hw 130 Motor Control Shield For Arduino Datasheet Updated Jun 2026
Connect stepper coils:
Download from Adafruit’s GitHub or via Arduino Library Manager (search “Adafruit Motor Shield”).
To simplify coding, it is standard practice to use the . Wiring Steps: Plug the HW-130 shield directly onto your Arduino Uno. Connect your DC motor wires to the M1 terminal. hw 130 motor control shield for arduino datasheet
| Arduino Pin | Function | Notes | | :--- | :--- | :--- | | | Speed PWM – Channel A (DC motor 1) | AnalogWrite() to set speed | | D11 | Speed PWM – Channel B (DC motor 2) | AnalogWrite() to set speed | | D12 | Direction – Channel A | HIGH for forward, LOW for reverse | | D13 | Direction – Channel B | HIGH for forward, LOW for reverse | | D9 | Brake – Channel A | HIGH = brake engaged | | D8 | Brake – Channel B | HIGH = brake engaged | | D4, D5, D6, D7 | Serial data to 74HC595 | Used by the AFMotor library | | A0, A1 | Optional analog inputs | Not normally used by motors | | A2, A3 | External inputs (IN2, IN3) | Can be used for sensors |
The HW-130 features a dedicated terminal for external power. Because Arduino pins cannot provide enough current for motors, you should connect an external battery pack (typically 6V–12V) to the terminals. Connect stepper coils: Download from Adafruit’s GitHub or
For advanced users, the 74HC595 shift register allows the L293D’s enable and direction pins to be controlled with only three GPIOs (data, clock, latch). This is why the shield leaves most Arduino pins free for other uses.
Screw terminals for connecting DC motors (M1, M2, M3, M4), stepper motors, and external power supply (EXT_PWR). Connect your DC motor wires to the M1 terminal
Understanding the layout of the HW-130 is crucial for safe wiring and effective debugging.
const int IN1 = 2; // direction pin 1 const int IN2 = 3; // direction pin 2 const int ENA = 5; // PWM pin (must be PWM-capable)
Control via: