Hw 130 Motor Control Shield For Arduino Datasheet Better ((new)) 【Recommended ✮】
Offers 8-bit speed selection for DC motors. 2. HW-130 Enhanced Datasheet & Pinout
The shield uses pins 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. You cannot use these for sensors.
pinMode(ENB, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT); hw 130 motor control shield for arduino datasheet better
This article serves as the to the raw datasheet. We will dissect every technical specification, explain the actual circuit logic, provide corrected wiring diagrams, and show you how to maximize performance. By the end, you will know more about the HW-130 than any six-page datasheet could ever teach you.
#include // Create motor objects AF_DCMotor motor1(1); // Motor on M1 AF_DCMotor motor2(2); // Motor on M2 void setup() // Set initial speed (0-255) motor1.setSpeed(200); motor2.setSpeed(200); void loop() // Forward motor1.run(FORWARD); motor2.run(FORWARD); delay(1000); // Backward motor1.run(BACKWARD); motor2.run(BACKWARD); delay(1000); // Stop motor1.run(RELEASE); motor2.run(RELEASE); delay(1000); Use code with caution. 5. Troubleshooting & Limitations Offers 8-bit speed selection for DC motors
Here is a complete code example to drive two DC motors forward, stop, reverse, and stop.
Supports external power for motors to prevent Arduino damage. You cannot use these for sensors
Because it uses a shift register, most motor control signals are handled internally. However, certain Arduino pins are "reserved" when the shield is plugged in. Arduino Pins Used Description 4, 7, 8, 12 Communicates with the 74HC595 latch. PWM Speed (DC) 3, 5, 6, 11 Controls motor speed via PWM. Servo 1 Digital Pin 9 Connects to the standard Servo 1 header. Servo 2 Digital Pin 10 Connects to the standard Servo 2 header. Analog Inputs Generally free for sensors or extra I/O. 3. Power Connection (Critical) L293D Based Arduino Motor Shield
Proper power management is critical for a reliable and safe project.
There are two popular Adafruit motor libraries—V1 (for this shield) and V2 (for newer shields). Make sure you have installed the Adafruit Motor Shield V1 Library to match your HW-130 shield.
The HW-130 is an Arduino shield based on the . It is designed to control two DC motors (or one stepper motor) with direction and speed control. Unlike bare L298N modules, the HW-130 comes as a shield that stacks directly onto an Arduino Uno, Leonardo, or Mega 2560.