A microcontroller that normally operates on 5V or 3.3V cannot be directly used to control a DC motor operating on higher voltage and current rating. This is why we commonly use Motor Driver modules like the L293D Motor Driver Module and the L298N Motor Driver Module. While the L293D motor driver module can be used for basic low current application the L298N Motor driver module is a high current motor driver with some additional features that are commonly used with Arduino and Raspberry Pi for Robotics applications.
The L298N Motor Driver module is based on the L298 Dual Full-Bridge Driver IC and can control the speed and direction of two DC motors (Motor A and Motor B) simultaneously. The voltage rating of these motors can be between 5V to 35V and the peak current value can be up to 2A. The pinout diagram of the L298N Motor Driver Module is shown below.

The motors to be controlled (Motor A and B) are connected to screw terminals. The voltage required to power the motor is provided to the Motor Power and Ground screw terminal, the voltage range should be between 7V to 35V. The L298 IC requires 5V to operate, this is why we have a built-in 5V Linear Regulator. If the operating voltage of the motor is less than or equal to 12V than the built-in regulator will power the driver IC, and this regulated 5V can also be obtained as an output voltage from the 5V screw terminal which can be used to power your microcontrollers like Arduino. If the operating voltage of the motor is greater than 12V then the built-in regulator will not be able to handle it, so we have to disconnect the regulator by removing the 5V Select Jumper pin and provide a separate 5V power as an input voltage to the 5V screw terminal to power our L298N Driver IC.
The pins Enable A and Enable B are used to set the speed of the motor. By default, there will be jumper pins connected to both Enable A and B to make them high (5V), this way the motors will rotate at maximum speed. You can adjust the speed of the motors by removing the jumper and providing a variable voltage between 0V to 5V by using a PWM signal.
Finally, the four input pins Input 1, 2, 3, and 4 are used to control the direction of the motor. For example, if Input 1 and Input 2 are made High and Low, respectively, then Motor A will rotate in clockwise. If they are made Low and High, then the motor will rotate counterclockwise. The same logic applied for Input 3 and 4 with Motor B.
Specifications of L298N Motor Driver IC:
The basic dimensions of the L298N Motor Driver module are shown below.

Additional Resources:
Due to the type of products we sell, we accept limited returns. Below are the conditions where we can accept a return request.
If you receive a product damaged during shipment, please notify us within 3 days of receiving the product, supported by proper pictures and a description. Once our support team accepts the return, we will provide a replacement or a complete refund, including the return shipping cost.
If your item looks different from what is shown in the image on our website, we will take the item back and provide a refund or replacement as per your choice.
We don’t accept returns for products damaged due to improper use. Moreover, we don’t accept returns if the ordered product is not suitable for a specific application. Please read the product specifications and datasheet carefully before placing an order. Returns are accepted only within 3 days from the date of delivery.
We ship all over India with free shipping on all prepaid orders above ₹500. For Cash on Delivery (COD) orders, ₹80 will be charged for orders below ₹599 and ₹30 for orders above ₹599.
For any questions related to shipping, please contact our support team at support@quartzcomponents.com.
Note: The minimum order value for COD orders is ₹500.