The maximum power consumption of the driver is 20W.
L298N can control the speed of the motors.
It contains different ports to connect the battery, motors, and ARDUINO.
Connection of motor driver with Arduino
The Motor Driver contains the two pairs of ports on either side as shown in the image. These ports are connected to the pair of DC Motors.
On the front side, it contains a three green phoenix connector. 12v VCC, Gnd and 5v output.
There are six pairs of mail buck pins, INPUT 1, INPUT2, INPUT3, INPUT4, ENABLE A and ENABLE B.
INPUT1 and INPUT2 pins are the positive and negative terminals of Motor 1.
INPUT3 and INPUT4 pins are the positive and negative terminals of Motor 2.
ENABLE A and ENABLE B are the PWM pins and these pins are connected to the ARDUINO to control the speed of the Motor 1 and Motor 2.
How the Dual H-Bridge works
An H bridge is an electronic circuit that switches the polarity of a voltage applied to a load. These circuits are often used in robotics and other applications to allow DC motors to run forwards or backward