

If the 5V-EN jumper is in place, this pin acts as an output and can be used to power up your Arduino. Remember, if the 5V-EN jumper is in place, you need to supply 2 extra volts than motor’s actual voltage requirement, in order to get maximum speed out of your motor.ĥV pin supplies power for the switching logic circuitry inside L298N IC. The higher the duty cycle, the greater the average voltage being applied to the dc motor(High Speed) and the lower the duty cycle, the less the average voltage being applied to the dc motor(Low Speed).īelow image illustrates PWM technique with various duty cycles andaverage voltages.

The average voltage is proportional to the width of the pulses known as Duty Cycle. PWM is a technique where average value of the input voltage is adjusted by sending a series of ON-OFF pulses. A common technique for doing this is to use PWM (Pulse Width Modulation) The speed of a DC motor can be controlled by varying its input voltage. H-Bridge – For controlling rotation direction.This can be achieved by combining these two techniques. In order to have a complete control over DC motor, we have to control its speed and rotation direction. One of the easiest and inexpensive way to control stepper motors is to interface L298N Motor Driver with Arduino.
