Sub topic 11
Why Torque Drops with Speed and Steps Get Missed
This chapter assumes you can already drive a STEP/DIR driver from an Arduino, convert RPM to a step interval, and read a motor's rated current and coil resistance. It explains why a motor that works at 60 RPM can stall at 600 RPM, and what you can do about it.
What a missed step is
An open-loop stepper system has no sensor reporting the shaft position. The Arduino counts the pulses it sends and assumes the rotor followed each one. A missed step happens when the rotor fails to follow a pulse. Common causes are too little torque for the load, a step rate the coils cannot keep up with, or a resonance that shakes the rotor loose.
The software cannot detect this. After a missed step, your position counter and the real shaft angle disagree by one full step (1.8° on a 200-step motor), and they stay that way. A stall is the extreme case. The rotor stops following the rotating field and only buzzes or hums.
The torque curves
A datasheet usually gives three torque figures.
- Holding torque is the torque at standstill with rated current in the coils. It is the largest number and the least relevant to a moving system.
- Pull-in torque is the largest load at which the motor can start, stop, or reverse instantly at a given step rate, with no ramp.
- Pull-out torque is the largest load the motor can carry at a given speed once it is already running. It is higher than pull-in torque, so a motor can run at speeds it could never start at.
Torque falls as speed rises. The graph below shows a typical pull-out curve for a NEMA 17 motor on a 24 V supply. The numbers are illustrative, so read the real curve from your motor's datasheet.
Always check which supply voltage and driver a published curve was measured with. The same motor gives a different curve on 12 V than on 24 V.
Why torque falls with speed
Two electrical effects cause the drop. Both are properties of the coil, not of your code.
Coil inductance limits how fast current can rise
Each winding is an inductor. When the driver switches a coil, the current cannot jump to its rated value. It rises at a rate of roughly V/L amps per second, where V is the voltage across the coil and L is its inductance. Torque is proportional to coil current, so the rotor needs current before it can produce torque.
At low speed there is plenty of time. At high speed the step period gets shorter than the time the current needs to rise, and the coil never reaches its rated current before the next step arrives.
A worked example: a motor has L = 3.5 mH and a rated current of 1.5 A.
- On 12 V, the rise time is about L × I / V = 0.0035 × 1.5 / 12 ≈ 0.44 ms.
- On 24 V, the rise time is about 0.22 ms.
At 2000 full steps per second, a step lasts 0.5 ms. On 12 V most of that step is spent just building current. On 24 V there is time left to deliver torque. This is why a higher supply voltage improves high-speed performance. The chopper in the driver limits the current to your setting, so a higher voltage does not push more current through the motor.
Back-EMF opposes the supply
A spinning rotor with permanent magnets acts as a small generator. It induces a voltage in the coils called back-EMF, and this voltage opposes the one the driver applies. Back-EMF grows in proportion to shaft speed. As speed rises, less of the supply voltage is left to push current into the coil, and at some speed the driver can no longer reach the set current at all. Torque then falls off quickly.
Resonance
Even at speeds where torque is plentiful, the rotor can lose steps. A stepper is a spring-mass system. Each step makes the rotor overshoot and oscillate around the new position, much like a pendulum, at a natural frequency usually between 50 and 200 full steps per second for small motors. If the step rate sits near that frequency, each step adds energy to the oscillation. The motor becomes noisy, vibrates, and may stall under a light load.
Several things reduce the problem:
- Accelerate quickly through the resonant range instead of running at those speeds.
- Use microstepping, which breaks one large jump into small ones that excite the oscillation less.
- Add mechanical damping, for example a rubber damper on the rear shaft.
- Avoid very light, unloaded setups, because a modest load absorbs the oscillation energy.
Many drivers also have a mid-band resonance near several hundred steps per second, where the motor can stall with no load attached.
Load and inertia
Two load properties matter.
- Friction and external torque subtract from the available torque at every speed. Leave a safety margin. A working rule is to size the motor for no more than 50 to 70 percent of the torque the curve gives at your operating speed.
- Inertia matters whenever speed changes. Accelerating a heavy load needs torque on top of what steady running needs. The required torque is the load inertia multiplied by the angular acceleration. A large flywheel or lead screw carriage that runs fine at constant speed can stall on a hard start.
Measuring the limit of your own setup
The most reliable method is an experiment. This sketch steps the speed up every two seconds with no ramp and prints the current value. Listen for the speed where the motor starts to stutter, then use a fraction of that speed as your design limit.
#include <AccelStepper.h>
AccelStepper stepper(AccelStepper::DRIVER, 3, 4); // STEP pin 3, DIR pin 4
float speedSps = 200; // steps per second
unsigned long lastChange = 0;
void setup() {
Serial.begin(115200);
stepper.setMaxSpeed(4000);
stepper.setSpeed(speedSps);
}
void loop() {
stepper.runSpeed(); // constant speed, no acceleration
if (millis() - lastChange >= 2000) {
lastChange = millis();
speedSps += 100;
if (speedSps > 4000) speedSps = 4000;
stepper.setSpeed(speedSps);
Serial.println(speedSps);
}
}Because the speed jumps in 100 steps/s increments with no ramp, this test finds a limit closer to the pull-in torque than the pull-out torque. A motor that ramps up gently will reach higher speeds than this test reports. Run the test with the real load attached, and repeat it with the driver at your intended microstepping setting. The serial print briefly delays step pulses, but at 115200 baud once every two seconds the effect is small.
Choosing the right fix
| Symptom | Likely cause | Fix |
|---|---|---|
| Stalls when started at high speed, runs if started slowly | Pull-in limit, too much inertia | Add an acceleration ramp |
| Loses steps above a certain speed, hums | Back-EMF and inductance limit | Raise supply voltage (within driver rating), pick a lower-inductance motor, or reduce speed |
| Loud vibration at one low speed | Resonance | Use microstepping, pass through that speed quickly |
| Misses steps at any speed under load | Not enough torque, current set too low | Check the current limit, add gearing, or use a larger motor |
| Position drifts over many moves | Occasional silent missed steps | Add a limit switch for homing, or use an encoder |
Gearing is another route. A 5:1 gearbox lets the motor run five times faster for the same output speed, but at a speed where torque is lower, and it multiplies torque by five before losses. Whether the trade is worth it depends on where the motor's curve sits at the higher speed.
Summary of the main points
- Torque falls with speed because coil inductance slows the current rise and back-EMF reduces the voltage available to drive current.
- Pull-out torque is higher than pull-in torque, so ramps let a motor reach speeds it could not start at.
- Resonance can cause missed steps at low and mid speeds even when torque is sufficient.
- Open-loop control cannot detect a missed step, so leave margin and re-home when position matters.
Exercise
A 200-step motor runs at 600 RPM with the driver set to 1/16 microstepping. (a) What step pulse rate does the Arduino have to produce? (b) Which equivalent full-step rate decides how much torque the motor has, and why? (c) Name one reason the motor could lose steps at this speed even though the Arduino can generate the pulses.
Show answer
(a) Steps per revolution is 200 × 16 = 3200. Pulse rate = 600 × 3200 / 60 = 32,000 steps per second, which is an interval of 31.25 µs. That is above what AccelStepper can reliably produce on a 16 MHz AVR board such as the Uno. (b) The torque limit depends on shaft speed, which sets the back-EMF. 600 RPM is 10 revolutions per second, or 2000 full steps per second (10 × 200). Read the torque curve at 2000 full steps per second, not 32,000. (c) Back-EMF and coil inductance may leave too little current at 600 RPM on the available supply voltage, so the pull-out torque could fall below the load. Other valid reasons are an unramped start that exceeds pull-in torque, or a resonance passed too slowly.
Exercise
A motor with L = 2 mH and a rated current of 2 A runs from a 12 V supply. Estimate the current rise time, then estimate it again for a 24 V supply. Why does the second result help at high speed?
Show answer
Rise time ≈ L × I / V. At 12 V it is 0.002 × 2 / 12 ≈ 0.33 ms. At 24 V it is 0.002 × 2 / 24 ≈ 0.17 ms. At a high step rate each step is short, so a shorter rise time means the coil reaches its set current sooner and spends more of each step at full torque. The chopper still limits the current to the setting, so the higher voltage does not overload the motor.