


TTL Compatible Enable Input: the LOW state disables the bridge A (enable A) and/or the bridge B (enable B). Supply Voltage for the Power Output Stages Outputs of the Bridge A the current that flows through the load connected between these two pins is monitored at pin 1. The sense resistor needs to be connected between this pin and GND (not used on breakout board). If you can’t find the datasheet, you can measure the resistance of one of the windings and use the following formula to get an estimation of the current draw: Since the driver can supply a maximum of 2 amperes per channel, you need to find a stepper motor that can be used in this voltage range and doesn’t exceed the maximum current rating.Ĭheck the datasheet of your stepper motor and look for the voltage/current draw of the motor. Not all stepper motors will work! The L298N operating voltage is between 4.8 and 46 volts (max 35 V when mounted on the breakout board). What this means for you, is that you need to be careful when selecting the stepper motor and power supply to use with this motor driver. When the motor draws too much current, you can damage the driver and the motor will get hot! This means that the current draw depends on the relationship between the inductance and resistance (L/R) of the stepper motor that you connect to it. One thing that is very important to remember is that the L298 does not have an easy way to set a current limit unlike other stepper motor drivers like the A4988 ( tutorial). The Arduino Motor Shield Rev3 also uses a L298 driver. How to control a Stepper Motor with Arduino Motor Shield Rev3.28BYJ-48 Stepper Motor with ULN2003 Driver and Arduino Tutorial.How to control a stepper motor with A4988 driver and Arduino.

If you would like to learn more about other stepper motor drivers, then the articles below might be useful: This library is fairly easy to use and can greatly improve the performance of your hardware.Īfter each example, I break down and explain how the code works, so you should have no problems modifying it to suit your needs. I highly recommend to also take a look at the example codes for the AccelStepper library at the end of this tutorial. In the first example we will look at the Stepper.h Arduino library. I have included a wiring diagram and many example codes. This driver board is usually used to control DC motors, but it is also an inexpensive alternative to control stepper motors! It can control both the speed and the spinning direction of most stepper motors like a NEMA 17. In this article you will learn how to control a stepper motor with the L298N motor driver.
