The library also supports steppers. To run a stepper on M1 & M2, you would use:

This code initializes the motor on M1 and spins it forward.

Since "HW-130" is the generic part number printed on many generic Chinese motor driver shields, it can be difficult to find a specific "brand name" datasheet. This shield is widely known as the .

Up to 4 bidirectional DC motors (with 8-bit speed resolution)

Dedicated to controlling the two 5V servo motor ports. Available Pins for Sensors

2-pin or 5-pin screw terminals used to connect DC and stepper motors. DC Motors: Connect to the terminal pairs (e.g., M1 or M2).

The HW-130 is based on the , designed to provide bidirectional drive current for motors. Motor Driver IC: 2 x L293D

Your power supply cannot provide enough current. Switch to an external battery pack and remove the power jumper.

Uses a 74HC595 shift register to expand 3 Arduino pins into 8 direction control pins. Key Features & Design

It is based on the standard dual full-bridge driver chip but designed specifically to stack onto an Arduino Uno.

is a highly versatile, budget-friendly hardware expansion board designed to drive inductive loads like DC motors, stepper motors, and servos. It is widely used in hobbyist robotics, automated CNC prototypes, and DIY mobile platforms. Structurally, it is a fully layout-compatible open-source clone of the classic .

Based on the pinout above, here is the truth table. To spin a motor, you set one direction pin HIGH and the other LOW . To brake, set both HIGH .

Always and use an external battery pack (like a 2-cell LiPo or 6AA battery pack) connected to the EXT_PWR terminal to power your motors. This prevents the high current draw of the motors from drawing down the Arduino’s onboard regulator. Software Implementation & Code Example

The easiest way to program the HW-130 shield is by using the (Adafruit Motor Shield V1 library). Open the Arduino IDE.