Hw 130 Motor Control Shield For Arduino Datasheet Free ((full)) -
Always use an external battery pack for the motor terminals. USB power is usually insufficient for multiple motors.
What is your ? (9V battery, Li-ion, Wall adapter?)
#define MOTOR1_DIR 4 #define MOTOR1_PWM 5
Uses two L293D H-bridge drivers and one 74HC595 shift register to save Arduino pins. hw 130 motor control shield for arduino datasheet free
If you are building a robot, a smart car, or a project involving motors with an Arduino, you likely need a reliable, cost-effective motor driver. The HW-130 Motor Control Shield Go to product viewer dialog for this item.
#include <AFMotor.h>
void loop() // Forward at 70% speed digitalWrite(MOTOR1_DIR, HIGH); analogWrite(MOTOR1_PWM, 179); // 179 = ~70% of 255 delay(2000); Always use an external battery pack for the motor terminals
| IN1 | IN2 | ENA (PWM) | Motor A State | |-----|-----|-----------|----------------| | LOW | LOW | x | Brake (free stop) | | HIGH| LOW | 0–255 | Forward speed | | LOW | HIGH| 0–255 | Reverse speed | | HIGH| HIGH| x | Brake (short stop) |
The HW-130 connects directly to the Arduino Uno headers. Below is the pin mapping between the shield’s screw terminals, IC, and Arduino I/O pins.
Built-in thermal shutdown and internal ESD protection diodes Pinout and Hardware Configuration (9V battery, Li-ion, Wall adapter
for 5V "hobby" servos connected to the Arduino's high-resolution timers. Current Limits
// HW-130 motor A forward at 75% speed int enA = 5; int in1 = 4; int in2 = 3;
Do not supply more than 12V to the external power terminals if you leave the PWR jumper connected, as it could burn out the Arduino voltage regulator [1].

