Hw 130 Motor Control Shield For Arduino Datasheet Better Jun 2026
Use the Stepper.h library with steps per revolution = 200 (common).
For more details, you can refer to the L293D Based Arduino Motor Shield Datasheet or the Adafruit Motor Shield V1 Guide . hw 130 motor control shield for arduino datasheet better
| Feature | Specification | | :--- | :--- | | | L298N (ST) | | Operating Voltage | Logic: 5V | Motor Power: 7V – 12V (Recommended), Max 24V | | Output Current | 2A per channel (Max), 1A continuous recommended | | Peak Power | 25W | | Driven Motors | 2x DC Motors OR 1x Stepper Motor (4-wire) | | Protection | Built-in 4x 1N5819 High-speed Schottky Diodes (Back EMF) | | Size | Standard Arduino Shield Dimensions | Use the Stepper
void motorA(int speed) // speed: -255 to 255 if (speed > 0) digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); else if (speed < 0) digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH); speed = -speed; else digitalWrite(IN1, LOW); digitalWrite(IN2, LOW); else if (speed <