Hw 130 Motor Control Shield For Arduino Datasheet -
void setup() pinMode(ENA, OUTPUT); pinMode(ENB, OUTPUT); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT);
600 mA continuous per channel (1.2A peak current)
The Arduino and the motors share the same power source. Power supplied via the Arduino's DC jack will also power the motors. Only use this for very small, low-current motors. hw 130 motor control shield for arduino datasheet
void setup() motor1.setSpeed(150); // 0-255 motor2.setSpeed(200); motor1.run(FORWARD); motor2.run(BACKWARD);
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. void setup() motor1
The HW-130 motor control shield is a popular, budget-friendly expansion board designed to drive multiple motors using an Arduino Uno or Mega. Based on the classic L293D dual H-bridge driver design, this shield simplifies robotics projects by eliminating messy breadboard wiring.
![HW-130 Shield Pictorial Representation] Based on the classic L293D dual H-bridge driver
void setup() stepper.setSpeed(30); // 30 rpm