
One type controls the speed and the other type controls the direction of the motor. There are two types of control pins found at the bottom right side of the module. Let us now see the details behind controlling the dc motor through the L298N module. Motor A having voltage between 5-35V, will be connected through these two terminals.Ĭontrolling DC motors through L298N Driver Module This pin controls the speed of the motor B by enabling the PWM signal. They control the spinning direction for that particular motor. This pin controls the speed of the motor A by enabling the PWM signal. If jumper is intact, then it acts as an output pin. Will be used only if the 5V enable jumper is not intact. This pin supplies the power (5V) for the internal circuit (L298N IC). It is imprinted with +12V on board but can be powered between 6-12V. This is the pin which supplies power to the motor. This module is mainly used in robotics and in controlling dc and stepping motors. Thus, it is perfect for two-wheeled robots.

It is widely used in controlling robots as we can connect up to four motors at once but if we want to control the speed and direction as well then it allows two motors to be connected. The L298N motor driver module is very easy to use with microcontrollers and relatively inexpensive as well.

Firstly, we will see an example to control DC motor speed. This is an in-depth guide about the L298N motor driver including its specifications, pinout, interfacing with ESP32 board. In this tutorial, we will learn to interface L298N Motor Driver with ESP32.
