Sub topic 8
Setting the Driver's Current Limit
Prerequisites
This chapter assumes that you can read a motor datasheet, use Ohm's law, and identify the power, ground, motor, and control terminals on a stepper driver. You should already know that the driver needs a separate motor supply. Never power the motor from an Arduino pin.
Why the Current Limit Matters
A stepper driver's current limit controls the largest current sent through each motor winding. The motor's rated current is usually the maximum continuous current for one phase. Set the driver close to that value for the motor to produce its rated torque.
A setting that is too high can overheat the motor, driver, or power supply. A setting that is too low usually causes weak torque, vibration, or missed steps. The motor can feel warm during normal operation, but it should not become too hot to touch briefly.
The current limit is different from the motor supply voltage. A driver may use a 12 V or 24 V supply while limiting winding current to 1 A. The higher supply voltage helps current rise quickly at higher speeds. The current limit still protects the windings.
Read the Motor Rating Correctly
Find the phase current in the motor datasheet. Do not confuse it with the resistance, voltage, or total supply current.
| Datasheet value | Meaning |
|---|---|
| 1.2 A/phase | Maximum recommended current in each winding |
| 2.8 V | Approximate winding voltage at the rated current |
| 2.3 ohms/phase | Resistance of one winding |
Some drivers specify output current as RMS current. Others specify peak current. These values are not interchangeable. Use the conversion and adjustment method in the driver's datasheet or the carrier board's documentation.
Calculate the Adjustment Voltage
Many small carrier boards set the current limit with a potentiometer, also called a trimmer. The board exposes a reference voltage called VREF. The driver-specific formula might look like this:
I_LIMIT = VREF / (8 × R_S)
Here, R_S is the board's sense-resistor value. For an A4988 board with R_S = 0.05 ohms and a motor rated at 1.2 A/phase:
VREF = 1.2 × 8 × 0.05 = 0.48 V
This formula is only an example. A DRV8825 board can use a different formula, and boards with the same driver chip can have different sense-resistor values.
Adjust and Test Safely
Disconnect power before changing motor wiring. Never plug or unplug a motor while the driver is powered. That can create voltage spikes and destroy the driver.
If the board requires a powered adjustment, use an insulated screwdriver and follow its documentation. Measure VREF at the specified test point, with the meter ground connected to driver ground. Start below the calculated value, then increase gradually.
Run the motor slowly with a light load. Check for smooth motion and listen for grinding or loud buzzing. After several minutes, check the motor and driver temperature. Mount a heatsink or fan if the board requires additional cooling. A current limit cannot compensate for an undersized driver or a motor load that needs more torque.
Exercise
A motor is rated at 1.0 A per phase. The driver's documentation gives VREF = ILIMIT × 8 × RS, and the board has R_S = 0.05 ohms. What VREF should you target?
Show answer
Target 0.40 V: 1.0 × 8 × 0.05 = 0.40 V. Confirm that the board's documentation uses this formula and current convention before applying it.