Hw 130 Motor Control Shield For Arduino Datasheet Better ((new)) | Proven & Trusted
#include <AFMotor.h>
AF_Stepper stepper(200, 2); // 200 steps/revolution, motor port #2
Here is a basic code example to control two DC motors connected to M1 and M2.
The HW-130 motor control shield is a popular accessory for Arduino boards that enables users to control DC motors, stepper motors, and other loads. Here's a brief overview of the shield's features and specifications: hw 130 motor control shield for arduino datasheet better
Built-in thermal shutdown and internal kickback protection diodes. 2. Pin Layout & Functions
| Feature | HW-130 | Adafruit L293D | SparkFun L293D | |---------|--------|----------------|----------------| | Enable pins accessible | Sometimes (jumpers) | Yes | Yes | | Flyback diode quality | Internal (weak) | External + internal | External | | Voltage regulator for servos | None | 5V/1A | None | | Documentation | Poor | Excellent | Good | | Price | $3–5 | $20–25 | $15–20 |
for (int i = 255; i >= 0; i--) motor2.setSpeed(i); delay(10); #include <AFMotor
#define ENA 10 #define IN1 9 #define IN2 8 #define ENB 5 #define IN3 7 #define IN4 6
Here's a step-by-step guide to get a simple motor spinning:
Serial.println("Stop!"); motor1.run(RELEASE); // Stop the motor (coast) delay(2000); // for 2 seconds These specs are based on the L293D integrated
These three-pin headers provide a convenient way to connect up to two standard 5V servos. They are usually connected to digital pins 9 and 10.
These specs are based on the L293D integrated circuit capabilities.
The easiest way to get started is to use the AFMotor library, which provides an abstraction layer for the shield.