AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Unipolar stepper oscillates in place: wrong phase order fix

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

Short answer

A six-wire unipolar stepper oscillates because a right-shift order energizes both ends of one winding on consecutive steps, which reverses that winding's field instead of advancing it. Loop the four states so the two windings alternate — 1000, 0010, 0100, 0001 or 1000, 0001, 0100, 0010 with one common bit mapping — and confirm the wiring by measuring about half resistance from each center tap to its outer leads.

On this page
  1. Why does a unipolar stepper oscillate instead of turning in shift order?
  2. Which pulse order makes a 6-wire stepper run in one direction?
  3. How do I identify the windings and center taps on six unlabelled wires?
  4. What current does one half-winding draw from a 5 V supply?
  5. How do I tell a wrong phase order from a dead winding or a stall?
  6. Can I leave the center taps off and run the motor as bipolar?
  7. Questions asked

The shaft oscillates because the pulse order is wrong, not because the motor is bad. A six-wire unipolar stepper on a low-side driver array such as the ULN2003 turns only when consecutive output states energize the two windings alternately. The plain right-shift order 1000 → 0100 → 0010 → 0001 energizes both ends of one winding back to back, which reverses one stator field and rocks the rotor instead of advancing it. Loop 1000 → 0010 → 0100 → 0001 for one direction and 1000 → 0001 → 0100 → 0010 for the other, with the bit-to-lead mapping in the table below. Confirm the leads with a resistance measurement before trusting any color code, and size the winding current from the measured resistance rather than from the supply voltage alone. The sections below cover the failure mechanism, the working orders, multimeter identification, the current calculation, symptom separation and the bipolar option.

Why does a unipolar stepper oscillate instead of turning in shift order? #

It oscillates because a plain right shift walks both halves of one winding in a row, and energizing the opposite end of the same winding reverses that stator field, so the rotor steps forward and then straight back instead of advancing around the circle.

A six-wire unipolar motor contains two separate windings, each with a center tap and two outer ends. The two taps, often both red, go to the positive supply, and each outer end lands on one driver channel that sinks current to switch that half-winding on. The two windings sit at right angles in the stator, so energizing one pulls the rotor toward one axis and energizing the other pulls it toward the next axis around.

The shift order 1000 → 0100 → 0010 → 0001 walks down four adjacent channels. On the wiring mapped in the table below that order is yellow, orange, brown, black: winding 1 with one polarity, then winding 1 reversed, then winding 2 with one polarity, then winding 2 reversed. Each step cancels the pull of the one before it, so the shaft swings through the same two positions clockwise and counterclockwise and accumulates no rotation. The two-state loops rock on a smaller scale for the same reason: looping 1000 and 0100 only flips winding 1 between its two polarities, which can inch the shaft along but cannot build a rotating field.

Which pulse order makes a 6-wire stepper run in one direction? #

Loop 1000 → 0010 → 0100 → 0001 for one direction of rotation and 1000 → 0001 → 0100 → 0010 for the other, because both orders alternate between the two winding pairs instead of walking down one winding. Both traverse the same four states, and reversing direction only swaps the middle two states. Hold each state until the rotor settles before issuing the next: this is one-phase-on full stepping, one half-winding conducting at a time.

Output pattern (1 = channel conducting) Lead energized Winding and polarity
1000 Yellow Winding 1, one polarity
0100 Orange Winding 1, opposite polarity
0010 Brown Winding 2, one polarity
0001 Black Winding 2, opposite polarity

This mapping belongs to one wiring example. If your outputs land on different pins or your leads measure differently, translate the patterns so that consecutive states still alternate between the winding pairs; the resistance test in the next section, not the colors, decides the pairing. For the driver side of the hookup, a two-wire unipolar stepper control walkthrough with the ULN2003 schematic and code shows the array wiring and driving code in detail.

How do I identify the windings and center taps on six unlabelled wires? #

With the motor disconnected from supply and driver, sort the six leads into two groups of three that read continuity between them; in each group, the lead that measures about half of the end-to-end resistance is that winding's center tap. Resistance decides the topology, and wire colors only give a starting guess, so measure the motor itself rather than paths through the electronics.

  1. Disconnect all six leads from the supply and the driver board.
  2. Measure between every pair of leads and sort them into two groups of three that show continuity; there should be no reading between the groups.
  3. In each group, measure the two outer ends against each other; on an example winding you might read 40 Ω end to end.
  4. Find the tap: the lead that reads about half the end-to-end value, about 20 Ω to each outer end in that example, is that winding's center tap.
  5. Record which tap pairs with which two outer ends, connect the taps to the positive supply and the four outer ends to the driver channels, and rebuild the alternating sequence from the measured pairs.

Two half-windings in series explain the doubling: tap-to-outer is one half-winding, and outer-to-outer passes through both. An open reading, or one group whose tap reading is lopsided, means a damaged winding or lead — find that before applying power. If the measured groups contradict the color-based mapping in the table, the measurements win and the sequence gets rebuilt around them.

What current does one half-winding draw from a 5 V supply? #

Divide the voltage that reaches the winding by the measured half-winding resistance to get the settled current; a half-winding measuring 20 Ω on a supply that leaves 4 V across it draws about 0.2 A. The low-side array does not regulate this current. The ULN200x datasheet documents the family as seven NPN Darlington pairs with common-emitter, open-collector outputs: each channel switches the low end of one half-winding, the winding sees the supply minus the conducting channel's saturation drop, and that drop is not near zero — read it from the same datasheet at your current.

Illustrative example with inputs you replace with your own measurements: a half-winding of 20 Ω, a 5 V supply, and an assumed 1 V driver drop at that current give I = (5 V - 1 V) ÷ 20 Ω = 0.2 A; the winding's copper heat is P = I² × R = 0.04 A² × 20 Ω = 0.8 W; and the conducting driver channel dissipates P = I × V = 0.2 A × 1 V = 0.2 W. These are steady-state figures: winding inductance limits how quickly current builds during each step, so at faster step rates the current per step, and the torque with it, falls further below these numbers.

A slow single-step test holds each half-winding near continuously, so a slow test is not automatically a cool test: watch winding and driver temperature during commissioning. Decision: if the motor's rating is recoverable from its documentation or machine records, the calculated current must sit inside it; if the model is unmarked or obsolete, the temperature check and the driver's documented per-channel and package limits decide whether the arrangement is fit to run.

How do I tell a wrong phase order from a dead winding or a stall? #

Run the four states one at a time and watch each transition: a repeatable back-and-forth jump at the same point means phase order, while a state with no pull at all means a dead winding or an inactive driver channel. Work from the cheapest check to the most expensive, and never assign the cause from the symptom alone.

Observed symptom Likely cause, cheapest check first Confirming check Decision
Shaft rocks back and forth through the same positions Phase order walks one winding's two halves consecutively Apply the alternating order slowly and watch each transition Rewrite the sequence so consecutive states alternate windings
One state produces no pull at all Open winding, broken lead, or a driver channel that never conducts Continuity from that outer lead to its tap, then the driver output pin itself Repair the connection or move that phase to a spare channel
Steps correctly at low speed, stalls or loses steps at speed Current cannot build between steps, or the load exceeds available torque Halve the step rate and lighten the load separately Lower the rate or acceleration, or raise the supply within documented limits
Motor or driver heats quickly while a state is held Continuous current above the thermal budget Measure the winding current and compare with the documented limits Cut the dwell duty, cool the driver, or lower the supply
Controller resets when the outputs switch Supply disturbance or unclamped inductive switching Watch the logic rail during switching; check the driver's documented protection arrangement for inductive loads Separate the motor supply from the logic supply or fit the clamp the datasheet shows

Two related faults carry their own signatures: a grounded or miswired phase is described in why a unipolar stepper sequence fails but a grounded phase twitches, and a motor that runs but refuses a mid-move direction change is covered in why a stepper motor will not change direction while running.

Can I leave the center taps off and run the motor as bipolar? #

Leaving both center taps unconnected and driving the four outer leads needs a bipolar H-bridge driver, because a bipolar winding needs current in both directions and the ULN2003 can only sink current from one end. The conversion itself is documented: a stepper drive maker's support knowledge base lists leaving the center tap leads disconnected and wiring the four outer ends as a normal four-wire bipolar motor as its first method for a six-wire motor. In that bipolar-series connection both halves of a winding conduct in series, so the end-to-end resistance you measured is the figure that sizes the current, and the same current produces roughly twice the winding heat it would in a single half-winding.

Decision: with the ULN2003, keep both taps on the positive supply and use the alternating order; move to a bipolar H-bridge driver only if you need the extra torque and can drive both ends of each winding. The conversion, its wiring and its trade-offs are laid out in Running a 6-wire unipolar stepper motor on a bipolar driver.

Questions asked

How many loops of the four-state order turn the shaft one revolution?

One loop is four full steps, because each state is one full step in this one-phase-on order. A motor labelled 7.5 degrees per step takes 360 divided by 7.5, which is 48 steps per revolution, so 12 loops turn the shaft once. Divide 360 by the step angle printed on your own motor's label; the example number applies only to a 7.5 degree motor.

Is the corrected sequence a wave, a full-step, or a half-step pattern?

The alternating orders energize one half-winding at a time, which builders call one-phase-on full stepping or wave drive. A two-phase-on pattern energizes one half of each winding simultaneously and gives roughly twice the holding torque at twice the copper heat. Half-stepping interleaves both patterns into eight states per loop for smoother motion at reduced per-state torque. Any of them must keep the alternating-windings property or the shaft will rock instead of turn.

Does the same fix apply to a five-wire unipolar motor?

Yes. A five-wire motor ties the two center taps together internally, so both windings share one common lead. Connect that single common to the positive supply and drive the four remaining leads exactly as in the six-wire case. The alternating sequence and the resistance test work the same; only the grouping changes, because the two three-lead groups now share one tap wire.

How do I pick a supply voltage when the motor's datasheet no longer exists?

Measure the half-winding resistance first and compute the settled current for the candidate supply with the formula in this article. Small unipolar motors of this class are commonly run from the same 5 V rail as the logic, but the deciding test is thermal: hold one state for a few minutes and confirm the winding and the driver stay only warm. An obsolete model's original rating cannot be recovered without the maker's data.

If I move the outputs to different microcontroller pins, do I keep the same four patterns?

The patterns translate; they do not transfer blindly. Keep the property that consecutive states energize different windings and that the two states sharing a winding use its opposite halves. Assign the four channels to the same roles as the example table, write the four patterns against your new pin assignment, and re-verify with slow single steps before running at speed.

Keep reading

  • Explainer

    Running a 6-wire unipolar stepper motor on a bipolar driver

    A 6-wire unipolar stepper motor runs on a bipolar driver with both centre-tap leads left unconnected and insulated, and the driver current set to about 0.7 times the unipolar winding rating. The step angle does not change: it comes from rotor and stator tooth geometry, not from how the winding is connected. A 5-wire motor cannot be wired this way.

    Servo and stepper motion

  • 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

  • Troubleshooting

    Why a unipolar stepper sequence fails but a grounded phase twitches

    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.

    Servo and stepper motion