To control the DC motors with the L298N driver, we ensure that the EnA and EnB pins are not connected to 5 V.
A high-voltage and high-current full-bridge driver with two H-bridges, which can be used to drive inductive loads such as DC motors, stepping motors, relay coils, etc. The main features are: high working voltage, the highest working voltage can reach 46V the output current is large, the instantaneous peak current can reach 3A, the continuous working current is 2A the rated power is 25W. L298N is a high-voltage, high-current motor drive chip produced by ST. This module is capable to drive 2 DC motors independently or a single 4 phase stepper motor. This module can be controlled by standard TTL logic and it works with a wide range of input voltages, making it ideal for robots and other high power projects. This motor driver module uses the popular L298N integrated circuit, which contains two H-bridges, capable of currents up to 2 A each.