Hw 130 Motor Control Shield For Arduino Datasheet Better ((new)) Jun 2026

If you use analogWrite() on pins 9, 10, 5, or 6, the PWM frequency is ~490Hz or ~980Hz depending on the board. The L298N works best below 25kHz, so this is fine—but the shield’s response becomes nonlinear below 30% duty cycle due to the H-bridge dead-time. A better datasheet would warn you.

If connected, motor power comes from Arduino; if removed, motors use external power (recommended).

// Stop all motors initially digitalWrite(in1, LOW); digitalWrite(in2, LOW); digitalWrite(in3, LOW); digitalWrite(in4, LOW);

One of the most critical components of the HW-130 is the :

Power the Arduino via USB and motors via the EXT_PWR terminal. hw 130 motor control shield for arduino datasheet better

: Includes internal thermal shutdown to prevent damage during overloads. 5.imimg.com Connectivity & Control The shield is designed to sit directly atop an Arduino Uno

Uses a 74HC595 serial-to-parallel converter to save Arduino pins. 4. Power Management (Crucial Step) The motors require more power than the Arduino can provide.

#include <AFMotor.h> #include <SoftwareSerial.h>

⚠️ If your motors draw >1A, do NOT power the Arduino through the shield’s 5V regulator. Instead, power Arduino via USB or its own DC jack. If you use analogWrite() on pins 9, 10,

void loop() // Forward both motors digitalWrite(in1, HIGH); digitalWrite(in2, LOW); digitalWrite(in3, HIGH); digitalWrite(in4, LOW); analogWrite(enA, 200); // Speed 0-255 analogWrite(enB, 200); delay(2000);

Troubleshooting checklist

Because the shield drives multiple motors simultaneously, it uses a shift register to save microcontroller pins. Understanding which pins are utilized by the shield is essential to prevent GPIO conflicts when adding sensors. Dedicated Board Pinouts Using L293D 4 DC Motors Shield for Arduino UNO and Mega

The shield is designed to be plug-and-play, mounting directly onto the Arduino Uno. However, it uses specific pins for internal communication via the shift register: If connected, motor power comes from Arduino; if

AF_DCMotor motor1(1); // Connects to M1 port AF_DCMotor motor2(2); // Connects to M2 port

The HW-130 routes the L298N pins to specific Arduino pins. This is the critical reference for your code.

// HW-130 Motor Shield Pin Definitions #define ENA 9 // Speed Motor A #define IN1 4 // Direction Motor A #define IN2 5 // Direction Motor A