Skip to Content

Motor Driver Module 2ch 2A 35V L298N

The L298N motor driver module is a widely used solution for controlling two DC motors or a single stepper motor. With a maximum current rating of 2A per channel and a maximum voltage of 35V, it is commonly used in robotics, automation, and other DIY projects where precise motor control is necessary. This module is designed for easy integration and features built-in protection mechanisms, making it reliable for various applications.

Package Includes:

  • 1 x Motor Driver Module 2ch 2A 35V L298N

Features:

  • 2-channel, dual H-bridge motor driver

  • Controls two DC motors or a single stepper motor

  • Maximum current rating of 2A per channel

  • Maximum voltage of 35V

  • Built-in protection against over-current, over-temperature, and over-voltage

  • Compatible with various microcontrollers (Arduino, Raspberry Pi, etc.)

  • Several input options for motor control (logic inputs, PWM, direction)

  • Built-in voltage regulator for a wide input voltage range

  • Onboard 5V power supply for external circuitry or microcontrollers

  • Compact design with four screw terminals for motor connections

  • Cost-effective and reliable for motor control

Description:

The L298N motor driver module uses a dual H-bridge configuration to control DC motors and stepper motors. With a current handling capacity of 2A per channel and voltage support up to 35V, the module provides precise control over speed and direction. The onboard voltage regulator supports a wide input voltage range, typically between 7V and 35V, while the built-in 5V power supply can be used for external components or microcontrollers.

Principle of Work:

The L298N uses a dual H-bridge circuit to control the speed and direction of DC motors or stepper motors. The H-bridge allows the current to flow in either direction through the motor, enabling speed and direction control. The module can also adjust motor speed by controlling the duty cycle of PWM signals. It includes protection mechanisms against over-current, over-temperature, and over-voltage to safeguard both the module and connected motors.

Pinout of the Module:

  • Enable A (ENA): Enables or disables motor A.

  • Input 1A (IN1): Controls motor A's rotation direction.

  • Input 2A (IN2): Controls motor A's speed using PWM.

  • Output A: Connected to the positive terminal of motor A.

  • Ground (GND): Ground connection.

  • Output B: Connected to the positive terminal of motor B.

  • Input 2B (IN2): Controls motor B's speed using PWM.

  • Input 1B (IN1): Controls motor B's rotation direction.

  • Enable B (ENB): Enables or disables motor B.

Applications:

  1. Robotics: Control the motion of wheels, arms, and other parts.

  2. Automation: Used in industrial systems for controlling machinery like conveyor belts and pumps.

  3. CNC Machines: For controlling the cutting head in CNC applications.

  4. Home Automation: For controlling motorized doors, windows, and blinds.

  5. Automotive Applications: Used for controlling components like windshield wipers and power windows.

  6. Educational Projects: A popular module for teaching motor control and electronics.

Circuit:

  • Connect the L298N motor driver to Arduino as follows:

    • ENA pin → Pin 3 (Arduino)

    • IN1 pin → Pin 4 (Arduino)

    • IN2 pin → Pin 5 (Arduino)

    • ENB pin → Pin 9 (Arduino)

    • IN3 pin → Pin 6 (Arduino)

    • IN4 pin → Pin 7 (Arduino)

    • Connect the common ground (GND) of L298N, Arduino, and power source together.

    • Use a 9V battery for powering the L298N motor driver.

Motor A: Connect the positive wire to OUT1 and the negative wire to OUT2. Motor B: Connect the positive wire to OUT3 and the negative wire to OUT4.

Code:

This example code demonstrates how to control two DC motors using serial commands to control the direction and speed of the motors.


// Define motor control pins #define enA 3 #define in1 4 #define in2 5 #define enB 9 #define in3 6 #define in4 7 void setup() { // Set motor control pins as outputs pinMode(enA, OUTPUT); pinMode(in1, OUTPUT); pinMode(in2, OUTPUT); pinMode(enB, OUTPUT); pinMode(in3, OUTPUT); pinMode(in4, OUTPUT); // Start serial communication Serial.begin(9600); } void loop() { // Read input from serial monitor if (Serial.available() > 0) { String input = Serial.readString(); input.trim(); // Control motor A if (input == "Aforward") { digitalWrite(in1, HIGH); digitalWrite(in2, LOW); analogWrite(enA, 255); } else if (input == "Areverse") { digitalWrite(in1, LOW); digitalWrite(in2, HIGH); analogWrite(enA, 255); } else if (input == "Astop") { digitalWrite(in1, LOW); digitalWrite(in2, LOW); analogWrite(enA, 0); } // Control motor B if (input == "Bforward") { digitalWrite(in3, HIGH); digitalWrite(in4, LOW); analogWrite(enB, 255); } else if (input == "Breverse") { digitalWrite(in3, LOW); digitalWrite(in4, HIGH); analogWrite(enB, 255); } else if (input == "Bstop") { digitalWrite(in3, LOW); digitalWrite(in4, LOW); analogWrite(enB, 0); } } }

Technical Details:

  • Operating Voltage: 5V-35V

  • Maximum Current: 2A per channel

  • Peak Current: 3A

  • Logic Voltage: 5V

  • Power Consumption: Maximum 25W

  • Dimensions: 43mm x 43mm x 27mm

Comparisons:

  • L298N vs L293D:

    • The L298N supports higher current and voltage handling compared to the L293D.

    • The L298N is more expensive but is more suitable for powerful applications.

    • The L293D is cheaper and works well for smaller, low-power projects.

17.95 AED 17.95 AED Tax Included
17.95 AED Tax Included

Not Available For Sale

This combination does not exist.

Terms and Conditions
30-day money-back guarantee
Shipping: 2-3 Business Days