Motor Control Shield For Arduino Datasheet |top| | Hw 130

The Ultimate Guide to the HW-130 Motor Control Shield for Arduino

#include <AFMotor.h>

to expand 3 Arduino pins to 8, used specifically for motor direction control. 5.imimg.com Pinout and Interface hw 130 motor control shield for arduino datasheet

void setup() // Set all control pins to outputs pinMode(E1, OUTPUT); pinMode(M1, OUTPUT); pinMode(E2, OUTPUT); pinMode(M2, OUTPUT);

The motor power supply rail is completely separated from the Arduino logic power. You must connect an external power supply (4.5V–25V) to the 2-pin screw terminal on the shield to power the motors, while powering the Arduino separately via USB or its own DC jack. Software Implementation and Code Examples The Ultimate Guide to the HW-130 Motor Control

Unlike some generic L298N modules, the HW 130 reserves pins 3 and 11 for PWM, making it ideal for speed control. Do not use these pins for other sensors.

| Project | HW‑130 Configuration | | --------------------------- | --------------------------------------------------- | | | 2 or 4 DC motors; HC‑05 Bluetooth module for remote control | | CNC Drawing Plotter | 2 stepper motors (X and Y axes) + 1 servo for pen lift | | Smart Home Curtain Opener | 1 DC motor + limit switches | | Line‑following Robot | 2 DC motors + IR line sensors | | Surveillance Pan‑Tilt | 2 servos (pan and tilt) + 2 DC motors for wheels | | Model Railway Turnout Control | Up to 4 Tortoise switch machines | It allows hobbyists, makers, and engineers to safely

// HW 130 Motor Shield Basic Test // Pins predefined by shield layout

The HW-130 Motor Control Shield is a versatile, cost-effective expansion board designed for Arduino UNO and Mega boards. It allows hobbyists, makers, and engineers to safely drive multiple motors simultaneously without risking damage to the Arduino microcontroller.

Used for PWM (Pulse Width Modulation) speed control of DC/Stepper motors.

In the world of DIY electronics and robotics, the ability to control DC motors is fundamental. While an Arduino Uno or Nano can read sensors and blink LEDs, it cannot directly power a motor. The GPIO pins simply do not provide enough current, and the inductive kickback from a motor can destroy the microcontroller. This is where the enters the scene.