Hw 130 Motor Control Shield For Arduino Datasheet Better |best| ✪
// Turn right (Motor A forward, Motor B backward) digitalWrite(in1, HIGH); digitalWrite(in2, LOW); digitalWrite(in3, LOW); digitalWrite(in4, HIGH); analogWrite(enA, 150); analogWrite(enB, 150); delay(1000);
The shield is designed to be plug-and-play, mounting directly onto the Arduino Uno. However, it uses specific pins for internal communication via the shift register: hw 130 motor control shield for arduino datasheet better
The HW-130 uses two L293D dual H-bridge chips and one 74HC595 shift register to expand the available control pins. L293D Based Arduino Motor Shield // Turn right (Motor A forward, Motor B
// Create a motor object connected to port M1 // Options: MOTOR1, MOTOR2, MOTOR3, MOTOR4 AF_DCMotor motor(1); Instead, use a higher-capacity power source like or
For reliable operation, avoid using a standard 9V alkaline battery, as it often cannot provide enough current for multiple motors under load. Instead, use a higher-capacity power source like or a dedicated DC power supply connected to the EXT_PWR terminal.
void setup() pinMode(enA, OUTPUT); pinMode(enB, OUTPUT); pinMode(in1, OUTPUT); pinMode(in2, OUTPUT); pinMode(in3, OUTPUT); pinMode(in4, OUTPUT);
Designed for Arduino Uno, Mega, and Duemilanove. Capacity & Connections The shield can simultaneously control: