Hw 130 Motor Control Shield For Arduino Datasheet ((better)) Guide

void setup() pinMode(ENA, OUTPUT); pinMode(ENB, OUTPUT); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT);

The HW-130 is best for where low cost is critical.

int currentPin = A0; float voltage, current;

The HW-130 shield uses two L293D motor driver ICs and one 74HCT595 shift register. This combination minimizes the number of Arduino pins required to drive your motors. 4.5V to 25V DC hw 130 motor control shield for arduino datasheet

This article serves as the complete datasheet and reference manual for the HW 130. We will cover pinouts, electrical characteristics, schematic logic, interfacing with Arduino, and advanced programming techniques.

Install in Arduino IDE: Sketch -> Include Library -> Add .ZIP Library . Example Code: Controlling a DC Motor

Proper power management is the most important factor when working with the HW-130 shield. Misconfiguring the power supply can destroy your Arduino or cause intermittent resets. The Power Jumper (PWR) Example Code: Controlling a DC Motor Proper power

The shield splits its functional layout into three distinct spaces: the power bridges, the serial control module, and the direct mechanical routing. 1. Dual L293D H-Bridges

void loop() // Motor A Forward at 75% speed digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); analogWrite(ENA, 191); // 255 * 0.75

Do not exceed 1.2A peak per channel. For 4 motors running simultaneously, total current should stay below 2A to prevent L293D thermal shutdown. For beginners or educators

For beginners or educators, the HW-130 works with , a visual programming environment for Arduino. You can drag and drop blocks to control motors without writing code. The AFMotor library must still be included in a global “insert code” block.

Connect an external 9V battery or Li-ion pack to the block (observe polarity!).