AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Stepper Motor Stall Detection With External Feedback

Sensors, encoders and machine vision on the machine Published 6 min read By AutomateDirectUSA engineering team

Short answer

A stepper that has lost sync or is locked still draws regulated phase current, so no electrical measurement proves the shaft turned. Detect a stall with independent feedback: an incremental encoder on the shaft or load is the reliable general answer, a once-per-rev target proves continuous rotation only, and sensorless current or back-EMF detection works only above roughly 0.5 to 1 revolution per second.

On this page
  1. Why current does not prove rotation
  2. Checks in order, cheapest first
  3. Worked example: encoder counts to accept or reject a 90 degree index move
  4. Sensorless stall detection and its speed limit
  5. The once-per-revolution target and its blind spot
  6. The decision
  7. Questions asked

A stalled stepper still draws regulated phase current and holds torque, so no electrical measurement by itself proves the shaft turned. The deciding check is independent feedback of actual motion: an incremental encoder on the shaft or load is the reliable general answer, a once-per-revolution target proves continuous rotation only, and sensorless current or back-EMF stall detection is usable only above roughly 0.5 to 1 revolution per second. Start from what each measurement can prove, then pick the sensor that answers your specific question: did the load move, and within how much time must I know?

Why current does not prove rotation #

A stepper drive regulates winding current whether the rotor follows or not. A step command says what the controller requested; drive status says what the drive reports; phase current says the winding is energized. None of these proves the rotor tracked the command. When demand exceeds the torque available at that speed, the rotor loses synchronism while the commanded step count keeps advancing, so the drive can look completely healthy on a locked or stalled motor.

That is also why upsizing the motor fixes the torque shortfall but not the blindness: without an independent motion measurement, you still cannot prove any given move happened.

Temperature is a separate matter. A stationary motor on holding current gets just as warm as a running one, so warmth is not evidence of rotation; investigate heat against the winding and drive ratings as in the article on why a stepper motor runs hot.

Checks in order, cheapest first #

When a customer reports an axis that commands motion but the process sees nothing, work down this list:

  1. Confirm the command reached the drive. Watch the step and direction or network command at the drive input. This proves the controller issued the move, nothing more.
  2. Measure phase current. A shunt resistor in a phase, read as the voltage across it, or a current sensor with a dry contact back to an input card, proves the winding is energized. It does not prove rotation: a stationary, energized winding carries full current.
  3. Check for rotation at the motor shaft by hand with the drive disabled and locked out. A shaft that turns freely under hand torque while the axis refuses to move points to the drive, wiring or command path rather than a mechanical jam.
  4. Look between the motor and the load. A shaft that turns while the mechanism does not means a failed coupling, belt, gearbox or key. This is why the deciding sensor often belongs on the load, not the motor.
  5. Add real motion feedback. Fit an incremental encoder, or a proximity pickup with a ferrous target once per revolution if continuous rotation is the only question.

Never connect or disconnect motor phases with the drive energized, and verify winding connections against the motor and drive documentation before first power-up.

Worked example: encoder counts to accept or reject a 90 degree index move #

The situation: an indexing fixture must move 90 degrees, and you want the controller to flag a stall before the next station actuates.

Inputs:

  • Incremental encoder on the driven shaft, 500 counts per revolution. This is an example resolution; take the actual value from your encoder's datasheet.
  • Move size: 90 degrees, from the process requirement.
  • Acceptance window: the detected move must be within 5 counts of the commanded move. Five counts on this encoder is 3.6 degrees, an example tolerance chosen to catch gross stalls, not servo-grade accuracy.

The rule in words: expected counts equal encoder resolution times the fraction of a full turn commanded; accept only when the counted result falls inside the window around that number.

The arithmetic: 90 degrees divided by 360 degrees per revolution is 0.25 of a turn. 500 counts per revolution multiplied by 0.25 is 125 counts expected. The acceptance window is 125 plus or minus 5 counts, so at least 120 and at most 130.

Result and decision: if the counter reads fewer than 120 counts when the move completes, the axis stalled or slipped and the controller rejects the index. This is a calculated example for these inputs; scale it to your encoder's actual counts per revolution and your own tolerance. The same counted feedback closes the position loop if you want it to, as described in the article on absolute position control with an incremental encoder. If the requirement is closed-loop correction rather than detection only, the conversion path is covered in how to convert an open loop stepper to closed loop control.

Sensorless stall detection and its speed limit #

Back-EMF-based sensorless methods exist: the drive compares the winding voltage behavior across the two halves of each current cycle, and a stalled rotor changes that comparison. Manufacturers' application notes for this technique describe it as speed-dependent, and field experience with early implementations put the reliable floor around 0.5 to 1 revolution per second. Below that, the back-EMF signal is too small against the regulated current to separate running from holding.

A related trick covers locked-rotor detection on some drives: commanding a ramp faster than about 3 revolutions per second makes the drive flag a stall even when the rotor had jammed earlier at lower speed. Note what that means: you detect an existing jam by driving the axis harder, which is only acceptable when extra motion cannot damage the mechanism or process. Detecting a stall while stationary, or proving position between moves, is a different problem and needs external feedback.

If you do use a sensorless drive, take its documented detection range and configuration requirements from that drive's own manual, and validate the actual detection delay on your machine.

The once-per-revolution target and its blind spot #

A proximity pickup watching a ferrous feature on the rotating member gives one pulse each revolution. It answers a narrow question well: is the shaft still turning? Its limits decide when it is the wrong sensor:

  • A short move that starts and ends between targets never crosses the sensor, so a successful 90 degree index can look identical to a stalled one.
  • Detection delay is a full revolution period at the running speed, which is too slow for a machine that must reject within one short cycle.
  • It says nothing about shaft position between pulses and cannot verify a move size.

Use it for continuous conveying or spindle-running supervision; use an incremental encoder when move size, position or fast detection matter. What a pulse train does and does not tell you about direction and counting is covered in the article on how an incremental encoder shows direction of rotation.

The decision #

  • Need proof that a short or slow move completed: incremental encoder on the driven load, checked against a counted window like the worked example. This is the default answer.
  • Need only to know the shaft keeps spinning: once-per-revolution proximity target, accepting the one-revolution detection delay.
  • Running always above about 1 revolution per second, and the drive offers it: sensorless detection within its documented envelope, never for static position.
  • A jammed axis may be probed by extra motion and the drive supports it: the high-speed diagnostic ramp above roughly 3 revolutions per second; otherwise external feedback only.
  • Electrical dead axis: phase-current measurement and drive diagnostics find it, but they are the check, not the proof, of motion.

Questions asked

Can I detect a stalled stepper from its current draw alone?

Not reliably in production. A stalled stepper's drive keeps regulating phase current at or near the commanded level, so an amplitude threshold cannot separate holding from running. Back-EMF-based sensorless algorithms compare signal components across a current half-cycle and need enough speed to work at all; vendors of such algorithms report useful detection only from roughly 0.5 to 1 revolution per second upward, and the tuning is motor- and drive-specific.

Where should the stall-detection encoder be mounted?

On the driven load when the point of the check is that the load moved: a shaft-mounted encoder proves only the motor turned, while a failed coupling, belt or gearbox leaves the load stationary. Mount it on the motor shaft when you specifically need to separate an electrical failure from a mechanical one, and use both points when the machine must distinguish them.

What does the index or Z channel of an incremental encoder add to stall detection?

The index output gives one pulse per shaft revolution at a fixed reference location. For stall detection it acts like a once-per-revolution target: it confirms the shaft completed full turns and passed the reference, but it cannot detect a short move that starts and ends between index pulses. It is most useful as the homing reference that gives subsequent counts a known mechanical position.

Is a diagnostic ramp safe to use on a jammed axis?

Only when extra commanded motion cannot damage the mechanism or the process. Some sensorless drives flag a locked rotor once the command exceeds about 3 revolutions per second, even when the jam happened at lower speed, but that means deliberately driving a jammed axis harder. If the load cannot tolerate that movement, use external position feedback instead.

Keep reading

  • Selection guide

    Where to Mount a Proximity Switch for Induction Motor Speed Feedback

    Mount the inductive proximity switch on the motor's own shaft, rear stub if there is one, otherwise the drive-end stretch, sensing a single metal flag whenever the number you need is motor RPM. One flag keeps the pulse rate near 29 Hz at 1750 RPM, far inside a 200 Hz sensor. Use the VFD's estimate when the drive already runs the motor and an estimate suffices; use an encoder when speed is critical to control.

    Sensors, encoders and machine vision on the machine

  • Comparison

    Absolute joint encoders for a stepper robot arm without homing

    Fit a single-turn magnetic absolute encoder to the output side of each joint, after the gearbox: it reads the joint angle the moment the arm powers up, so no homing move or switch is needed. A 14-bit part resolves about 0.022 degrees per count, roughly 0.12 millimetres at the tip of a 300 millimetre link.

    Sensors, encoders and machine vision on the machine

  • How-to

    Counting Encoder Pulses on a PLC Without Losing Position

    Count encoder pulses with a hardware high-speed counter input wired for quadrature, never with a count instruction in the scan. At 214 rpm and 75 pulses per revolution the encoder delivers 267.5 pulses per second, one every 3.7 ms, while a 10 ms scan cannot guarantee seeing even one in three. Zero the counter at a reference switch and treat every target as counts from that switch.

    Sensors, encoders and machine vision on the machine