Aideepen DY-L298-N

Rate this product if you’ve used it
Download PDF
Contents

Aideepen DY-L298-N Dual H-Bridge Motor Driver Module

Instruction Manual

1. Introduction

This manual provides detailed instructions for the proper use and operation of the Aideepen DY-L298-N Dual H-Bridge Motor Driver Module. This module is designed to control DC motors and stepper motors, offering robust performance for various electronic projects, including those based on Arduino platforms.

Please read this manual thoroughly before using the product to ensure safe and efficient operation.

2. Safety Information

  • Ensure all power connections are correct before applying power to the module. Incorrect wiring can cause damage to the module or connected components.
  • Do not exceed the maximum specified voltage and current ratings for the module and connected motors.
  • Always disconnect power before making or changing any wiring connections.
  • The module may generate heat during operation, especially under high loads. Ensure adequate ventilation or heat sinking if necessary.
  • This product is intended for use by individuals with sufficient knowledge of electronics and electrical safety.

3. Product Overview

The Aideepen DY-L298-N is a dual H-bridge motor driver module based on the ST L298N chip. It is capable of driving two DC motors or one 2-phase stepper motor. Its design emphasizes strong driving capability, low heat generation, and robust anti-interference.

3.1 Key Features

  • Utilizes the L298N as the main driver chip, providing strong driving capability.
  • Features large capacity filter capacitors for stable operation.
  • Incorporates flywheel protection diodes for enhanced reliability.
  • Achieves high efficiency through its dual-channel H-bridge drive method.
  • Designed with strong anti-interference capabilities.
  • Supports external 5V logic power supply for drive voltages above 12V to protect the voltage stabilization chip.

3.2 Module Components

Aideepen DY-L298-N Motor Driver Module with labeled components
Figure 1: Labeled diagram of the DY-L298-N module showing key components and connection points.

The module includes screw terminals for motor connections and power input, pin headers for logic control signals, and a heatsink for the L298N chip. Key labels on the module typically include:

  • Output A (OUT1, OUT2): Connects to Motor A.
  • Output B (OUT3, OUT4): Connects to Motor B.
  • 12V Power Supply (VCC): Main motor power input (5V to 35V).
  • Power Supply GND (GND): Ground connection for both motor power and logic power.
  • 5V Power Supply (5V): Logic power input (can be supplied internally if VCC is 7-12V, or externally).
  • Logic Input Terminals (IN1, IN2, IN3, IN4): Control signals for motor direction and speed (via PWM).
  • Channel A Enable (ENA): Enables/disables Motor A.
  • Channel B Enable (ENB): Enables/disables Motor B.

4. Specifications

ParameterValue
Driver ChipL298N Dual H-Bridge
Logic Voltage5V
Drive Voltage5V - 35V
Logic Current0mA - 36mA
Drive Current2A (MAX single bridge)
Maximum Power25W
Operating Temperature-20°C to +130°C
Module DimensionsApproximately 44mm x 44mm (1.73in x 1.73in)
Module Weight50g
Quantity in Set2 pieces
Dimensions of the Aideepen DY-L298-N Motor Driver Module
Figure 2: Physical dimensions of the DY-L298-N module.

5. Setup and Wiring

Proper wiring is crucial for the correct and safe operation of the DY-L298-N module. Refer to the labeled diagram in Figure 1 for pin identification.

5.1 Power Supply Connections

  • Motor Power (VCC): Connect your motor power supply (5V to 35V) to the VCC terminal.
  • Ground (GND): Connect the ground of your motor power supply and your logic power supply (e.g., Arduino GND) to the GND terminal of the module. Important: Ensure all grounds are common. A common issue is forgetting to connect the external power supply's GND to the module's GND and the microcontroller's GND.
  • Logic Power (5V):
    • If your motor drive voltage (VCC) is between 7V and 12V, the onboard 78M05 regulator can supply 5V logic power. In this case, you can connect the 5V pin to your microcontroller's 5V, or leave it unconnected if the microcontroller supplies its own 5V logic to IN pins.
    • If your motor drive voltage (VCC) is above 12V (up to 35V), it is recommended to remove the jumper on the 5V enable pin and supply an external 5V logic power to the 5V terminal to prevent damage to the onboard regulator.
    • If your motor drive voltage (VCC) is 5V or less, you must supply an external 5V logic power to the 5V terminal.

5.2 Motor Connections

  • DC Motors:
    • Connect the two terminals of your first DC motor to OUT1 and OUT2.
    • Connect the two terminals of your second DC motor to OUT3 and OUT4.
  • 2-Phase Stepper Motor:
    • Connect one coil of the stepper motor to OUT1 and OUT2.
    • Connect the second coil of the stepper motor to OUT3 and OUT4.

5.3 Logic Control Connections

  • ENA (Enable A): Connect to a digital pin on your microcontroller. A HIGH signal enables Motor A, a LOW signal disables it. For PWM speed control, connect ENA to a PWM-capable pin.
  • IN1, IN2 (Input for Motor A): Connect to digital pins on your microcontroller. These control the direction of Motor A.
    • IN1 HIGH, IN2 LOW: Motor A rotates in one direction.
    • IN1 LOW, IN2 HIGH: Motor A rotates in the opposite direction.
    • IN1 LOW, IN2 LOW (or IN1 HIGH, IN2 HIGH): Motor A brakes/stops.
  • ENB (Enable B): Connect to a digital pin on your microcontroller. A HIGH signal enables Motor B, a LOW signal disables it. For PWM speed control, connect ENB to a PWM-capable pin.
  • IN3, IN4 (Input for Motor B): Connect to digital pins on your microcontroller. These control the direction of Motor B.
    • IN3 HIGH, IN4 LOW: Motor B rotates in one direction.
    • IN3 LOW, IN4 HIGH: Motor B rotates in the opposite direction.
    • IN3 LOW, IN4 LOW (or IN3 HIGH, IN4 HIGH): Motor B brakes/stops.

6. Operating Instructions

Once the module is correctly wired, you can control the connected motors using a microcontroller (e.g., Arduino) by sending appropriate logic signals to the IN and EN pins.

6.1 Controlling DC Motors

To control a DC motor, you will typically use two IN pins for direction and one EN pin for enabling and speed control (PWM).

  1. Enable Motor: Set the corresponding ENA/ENB pin to HIGH (or apply a PWM signal for speed control).
  2. Set Direction:
    • For Motor A: Set IN1 HIGH and IN2 LOW for one direction. Set IN1 LOW and IN2 HIGH for the opposite direction.
    • For Motor B: Set IN3 HIGH and IN4 LOW for one direction. Set IN3 LOW and IN4 HIGH for the opposite direction.
  3. Stop Motor: Set both IN pins for a motor to LOW (or HIGH) to brake, or set the corresponding ENA/ENB pin to LOW to coast.
  4. Speed Control (PWM): Apply a Pulse Width Modulation (PWM) signal to the ENA/ENB pin. A higher duty cycle will result in higher motor speed.

6.2 Controlling Stepper Motors

Controlling a stepper motor requires a sequence of signals to be sent to the IN pins to energize the coils in a specific order. The ENA and ENB pins should typically be kept HIGH for continuous operation.

Common stepper motor driving modes include full step, half step, and micro stepping. You will need to implement the appropriate stepping sequence in your microcontroller code.

Example (Full Step Sequence for a 2-phase stepper motor):

StepIN1 (Coil 1)IN2 (Coil 1)IN3 (Coil 2)IN4 (Coil 2)
1HIGHLOWHIGHLOW
2LOWHIGHHIGHLOW
3LOWHIGHLOWHIGH
4HIGHLOWLOWHIGH

Repeat this sequence to rotate the stepper motor. Adjust the delay between steps to control speed. Reverse the sequence for opposite rotation.

7. Maintenance

  • Keep the module clean and free from dust and debris.
  • Ensure good airflow around the heatsink, especially during prolonged operation or high current loads, to prevent overheating.
  • Regularly check all wiring connections for tightness and ensure no wires are frayed or damaged.
  • Store the module in a dry, static-free environment when not in use.

8. Troubleshooting

ProblemPossible CauseSolution
Motor does not move.
  • Incorrect wiring.
  • No power to the module or motor.
  • Logic signals (IN/EN) are incorrect or not applied.
  • Motor is jammed or overloaded.
  • Common ground not connected.
  • Double-check all wiring against the setup instructions.
  • Verify power supply connections and voltage.
  • Ensure ENA/ENB are HIGH and IN pins are set for direction.
  • Check motor for obstructions or excessive load.
  • Crucial: Ensure the GND of your external power supply, the module, and your microcontroller are all connected together.
Motor moves in the wrong direction.
  • IN pin logic is reversed.
  • Motor coil connections are reversed.
  • Swap the HIGH/LOW states of the IN pins (e.g., IN1 and IN2).
  • Reverse the connections of one motor coil (e.g., swap OUT1 and OUT2).
Module gets excessively hot.
  • Motor current exceeds module rating.
  • Insufficient ventilation.
  • Short circuit in motor or wiring.
  • Reduce motor load or use a motor with lower current draw.
  • Ensure adequate airflow around the heatsink.
  • Inspect wiring and motor for any short circuits.
5V logic power not working correctly.
  • VCC is too low (below 7V) for internal regulator.
  • VCC is too high (above 12V) and external 5V is not used.
  • If VCC < 7V, supply external 5V to the 5V pin.
  • If VCC > 12V, remove the 5V enable jumper and supply external 5V to the 5V pin.

9. Warranty and Support

Aideepen provides a 24-month service period for products purchased from Aideepen. If you encounter any quality issues with the item, a new replacement product can be obtained.

For technical support or warranty claims, please contact Aideepen customer service through your purchase platform or the official Aideepen website. When contacting support, please provide your product model (DY-L298-N) and a detailed description of the issue.

© 2023 Aideepen. All rights reserved.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Was this page helpful?