Hw 130 Motor Control Shield For Arduino Datasheet Better New! ⭐ Must See
with individual 8-bit speed selection (connected to terminals M1, M2, M3, M4). Up to 2 stepper motors (unipolar or bipolar).
// Connect a stepper motor with 200 steps per revolution (1.8-degree step) AF_Stepper stepper(200, 1); // 200 steps, motor port 1 (M1 & M2)
Digital pins 4, 7, 8, and 12 drive the motors through the 74HC595 serial-to-parallel latch. PWM Speed Control: M1: Digital Pin 11 M2: Digital Pin 3 M3: Digital Pin 5 M4: Digital Pin 6 Servos: Digital pins 9 (Servo #1) and 10 (Servo #2). hw 130 motor control shield for arduino datasheet better
// Increase speed for (int i = 0; i <= 255; i++) motor1.setSpeed(i); motor1.run(FORWARD); delay(5);
The shield works seamlessly with the AFMotor.h library. This library simplifies complex motor commands into simple, easy-to-understand functions like setSpeed() and run() , abstracting away the underlying complexity. PWM Speed Control: M1: Digital Pin 11 M2:
#include <AFMotor.h>
Controlled via Pins 4, 7, 8, and 12 (Shift Register). PWM (Speed Control): Motor 1: Pin 11 Motor 2: Pin 3 Motor 3: Pin 5 Motor 4: Pin 6 Servos: Pins 9 and 10 (linked directly to Arduino timers). Better Software Implementation #include <AFMotor
This article fills those gaps.