AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why a unipolar stepper sequence fails but a grounded phase twitches

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

A stepper rotates only when excitation walks an ordered cycle of winding states, one state per step, slow enough for winding current and rotor to follow. Grounding one phase energizes a single winding and seats the rotor at one detent, so the twitch proves the winding path works and the fault sits in state order, bit mapping, logic polarity or step timing, checked in that order.

On this page
  1. What a single energized winding does
  2. Wave, full step and half step
  3. The serial link carries bytes; complete output states command the motor
  4. Worked example: the posted bytes on a 90-degree-per-step motor at two steps per second
  5. Checks in order, cheapest to confirm first
  6. Questions asked

A stepper does not rotate because four correct bytes arrived. It rotates when excitation walks through an ordered cycle of winding states, one state per step, with enough dwell for the winding current to build and the rotor to follow each move. Grounding one phase completes one winding's current path and seats the rotor at a single detent, so the twitch you saw is useful evidence: the common, the winding and its switch all conduct. The fault lives in what changes between steps, meaning state order, bit-to-winding mapping, logic polarity, or the timing of complete output states, and the checks below isolate it from the cheapest to confirm.

What a single energized winding does #

A unipolar motor has a center tap on each phase winding and switches each phase with two transistors to ground, or with one changeover contact, which is the arrangement the stepper motor driving application note from STMicroelectronics describes. Grounding a phase terminal therefore drives current through one winding half. The rotor pulls into that winding's field and stops there: one detent, holding torque, and no command for any further motion. A shaft that twitches and seats when you ground a phase tells you the current path through the common, the winding and the switch is intact.

Continuous rotation needs the energized pair to advance around the cycle. Each step releases one winding and picks up the next, so the field the rotor chases keeps moving ahead of it. One unchanged state, even the correct state, positions the rotor once and never commands a second step.

One safety note: on powered hardware, force no motion by grounding drive terminals. That bypasses the driver's current control and can push uncontrolled current through a winding; command every state through the driver inputs, in simulation or on the bench.

Wave, full step and half step #

The same four windings serve three drive modes:

  • Wave drive energizes one winding per state and the rotor seats on that winding: the simplest pattern and the least torque.
  • Full step energizes two adjacent windings per state and the rotor sits between them, with roughly twice the winding heat of wave drive at the same current setting, because two windings carry current at once.
  • Half step alternates one-winding and two-winding states, doubling the commanded positions per revolution; without current compensation, the torque alternates between strong and weak steps.

The posted pattern is a full-step pattern: every state has two windings on. Confirm the drive mode matches the pattern you send before anything else, because a mode mismatch is one of the cheapest faults to rule out. And if your controller drives the bridge transistors itself instead of handing the sequencing to a driver stage, the ordering lives in the phase sequence table a PLC-driven H-bridge needs, and an ordering fault there produces exactly this symptom: energized windings, no rotation.

Serial bit rate and step rate are different quantities. The link transports the command; the excitation rate is how often a complete output state appears at the driver pins, and that interval is what the rotor feels. Measure it at the pins, not as a delay in the code.

If a shift register feeds the driver without a latch, the winding inputs walk through partial patterns during every byte and energize combinations you never commanded. A latched output, where the received byte lands in a register and the pins update once per complete byte, holds the previous state stable until the next one is ready. On the controller side, what the controller output switching rate does to stepper speed sets the ceiling on how fast those pins can update at all. And a motor that turns but far more slowly than intended behind a gearbox is a pulse-rate question first.

Worked example: the posted bytes on a 90-degree-per-step motor at two steps per second #

Inputs, each with its source:

  • States: the posted clockwise sequence is four bytes that each repeat one four-bit group in both halves, so 01100110 is 0110 twice, and the pattern per output group is 0110, 0011, 1001, 1100. Source: the posted sequence in the question.
  • Mapping: the four bit positions feed windings A, B, C, D left to right and logic 1 energizes. This is the assumption under test; confirm it against the board before trusting the decode.
  • Motor: 90 degrees of shaft travel per full step, the figure Texas Instruments' application note on driving steppers with peripheral drivers uses for its example motor, so N = 4 steps per revolution.
  • Rate: 2 steps per second, one complete state every 500 ms, an illustrative bench rate chosen slow enough to watch each move.

The rule in words: shaft speed in revolutions per minute equals 60 times the step rate in steps per second, divided by the number of steps per revolution in the selected drive mode.

State Group (A B C D) Windings energized
1 0110 B and C
2 0011 C and D
3 1001 D and A
4 1100 A and B

The decode shows each state sharing one winding with the next and moving to the adjacent pair, wrapping from A and B back to B and C: an ordered full-step cycle. The posted anticlockwise order runs the same four states backward, so it reverses the shaft with the mapping untouched. The speed arithmetic: 60 x 2 steps per second divided by 4 steps per revolution equals 30 rpm.

The decision: an ordered cycle like this owes you rotation, 30 rpm at that rate for this motor, which is half a revolution per second. A shaft that stands still has a mapping, polarity or latch fault, not a pattern fault; work down that list. A twitch to one seat and hold means one state is repeating instead of cycling. Rotation well below 30 rpm while the pins really do change every 500 ms means steps are merging or being swallowed between the serial link and the pins.

Checks in order, cheapest to confirm first #

  1. Map the power path. Identify the common, the winding ends, the supply and the switch that serves each phase, and confirm every intended winding has a controlled current path through the driver.
  2. Fix polarity with one static command. Send one state, hold it, and measure which windings carry current; record whether a logic 1 or a logic 0 turns a winding on, and whether you probed the logic input or the switched terminal.
  3. Establish the magnetic order. Energize one winding at a time and note where the rotor seats. Terminal letters do not establish the cyclic order; this test does.
  4. Drive the four states directly at the pins with the serial link out of the circuit, at a fixed slow dwell of 500 ms per state. A cycle that rotates here clears the pattern, the mapping and the polarity in one stroke.
  5. Restore the serial path and compare three points: the byte sent, the byte received, the final pin states. Check bit order, which nibble actually feeds the windings, and that the pins change only on complete bytes.
  6. Cycle continuously with wrap-around, state 4 back to state 1, then reverse the traversal with the mapping untouched. Which physical direction is clockwise depends on the wiring and the end of the shaft you look at, so decide direction at the shaft.
  7. Raise the rate in small increments toward the target. From rest without a ramp, a stepper starts only below its pull-in rate, a datasheet figure for the exact motor, and a stall confined to one speed band points at resonance under load, not at the sequence.

The decision, case by case. Twitch on a grounded phase and nothing on the sequence: the winding path is good, so fix order, mapping, polarity or update timing, top down. An ordered cycle confirmed at the pins and still no rotation: the bytes are not arriving as complete states, so the serial-to-parallel update is the suspect. Rotation but slower than the arithmetic promises: raise the step rate, respect the pull-in limit, and add a ramp once the target sits above it.

Questions asked

How do I find my motor's steps per revolution?

Take the step angle from the datasheet of the exact motor and divide 360 degrees by it. A 1.8-degree motor gives 360 / 1.8 = 200 full steps per revolution; a 7.5-degree motor gives 48. Running half step doubles the commanded states, so that same motor then needs 400 transitions per revolution.

Why does the motor get hot while it holds one state?

A held state leaves one or two windings continuously energized at full current, and that heat is normal dissipation, not a fault. Full step carries current in two windings at once, so holding heat roughly doubles against wave drive. If the drive exposes a holding-current or idle-current setting, reduce it for long stationary periods and keep full current while moving.

The motor hums and swings between two positions but never advances. Why?

The two alternating states are energizing winding pairs that are not adjacent in the motor's magnetic order, so the rotor rocks between two seats without net travel. Re-derive the order by energizing one winding at a time, then rebuild the cycle so every step moves to the pair beside the last one.

What step rate should I start at when commissioning?

Start from rest well below the pull-in rate in the datasheet of the exact motor, which is the highest rate it can start at without a ramp, then raise the rate in small steps toward the target. A target above the pull-in rate needs a ramp, not a faster clock.

Keep reading

  • How-to

    5-Phase Stepper Motor Winding Sequence from Ten Leads

    Ten leads mean five separate windings you can find with an ohmmeter; the running order comes from the voltage each winding generates as you turn the shaft. Map without power, confirm with a current-limited step test, and never open the motor.

    Servo and stepper motion

  • Explainer

    Why a PLC driving an H-bridge needs a phase sequence table

    The L298 only switches winding current; it has no translator, so the PLC must produce the four full-step or eight half-step states itself. The design lives or dies on a written next-state table that reads CLK, DIR and MODE and advances exactly one state per clock edge, held in persistent memory and owned by one routine.

    Servo and stepper motion

  • Troubleshooting

    Stepper motor lost steps after a stall: is it damaged

    A single stall on a current-limited stepper drive rarely demagnetizes the rotor magnets. Persistent slipping usually means the drive is dropping a phase, the mechanics gained drag, or the magnets were weakened by heat or overcurrent from a drive without a current limit. Spin the disconnected shaft at a known speed and compare the back-EMF with a good motor: about 20 percent low condemns the magnets.

    Servo and stepper motion