AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

What decides the microstep count on a PWM stepper drive

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

Short answer

The microstep count is a drive setting, not a motor property. The motor fixes only its full-step angle, and the PWM driver's sine/cosine current table divides each full step into N microsteps, so a 1.8-degree motor at N = 24 commands 0.075 degrees per microstep. Pick the smallest N that meets the required resolution, because incremental torque falls as sin(90°/N) of holding torque and step frequency rises in proportion to N.

On this page
  1. Is the microstep count decided by the motor or the drive?
  2. How does a PWM drive create the intermediate microsteps?
  3. What step angle does a microstep count give you?
  4. How much torque holds the rotor on one microstep?
  5. How do you choose the microstep count for a required resolution?
  6. What limits the microstep rate at speed?
  7. Does a higher microstep count make positioning more accurate?
  8. Questions asked

The microstep count is a drive setting, not a motor property. The motor fixes only its full-step angle — 1.8 degrees on the common hybrid, which is 360 ÷ 1.8 = 200 full steps per revolution — and the PWM driver decides how many current levels it places between two adjacent full-step positions. That division, N microsteps per full step, sets the commanded step angle, the restoring torque available at each intermediate position, and the step frequency the controller must sustain. Choose N from the resolution the axis actually needs, then check it against torque and rate; both checks are worked below for a 24-microstep setting.

Is the microstep count decided by the motor or the drive? #

The drive decides it: a PWM stepper driver divides each full step into N microsteps by regulating the two winding currents from a sine/cosine table, while the motor contributes only its full-step angle and the torque it can hold between positions. No motor datasheet lists microsteps, because the subdivision lives entirely in the driver's current control; the stator and rotor teeth fix the full-step angle and nothing finer. Half stepping is the same mechanism at N = 2, where the drive alternates single-phase and two-phase states instead of following a fine table. The full-step angle itself is the other number you configure — the one involved in setting a stepper drive to 200 steps per revolution — so the drive needs the correct full-step count as well as the correct N.

How does a PWM drive create the intermediate microsteps? #

It shapes the two phase currents as a sine/cosine pair: for each microstep the table gives both phases a target, and a chopper switches the bridge so the measured winding current follows those targets, pulling the rotor to an intermediate equilibrium. Adjacent full-step positions sit 90 electrical degrees apart, and N microsteps spread those 90 degrees into equal current increments: phase A follows the sine of the electrical angle and phase B the cosine, with the amplitude held near the motor's rated phase current so torque is handed smoothly between the phases rather than reduced. Because the currents move gradually instead of switching fully on and off, the rotor sees a field that rotates in small increments — the original purpose of microstepping, smooth rotation at slow speeds — while the chopper's fixed switching frequency sets the current ripple around each target independently of the step rate.

What step angle does a microstep count give you? #

Divide the full-step angle by N: for a motor with a 1.8-degree full step, a setting of 24 microsteps per full step gives 0.075 degrees per microstep, which is 200 × 24 = 4800 microsteps per revolution — and N does not have to be a power of two. A table-driven PWM controller can hold any N its lookup table and timer resolution support, so 24 is as legitimate as 16 or 32; drives with hardware selectors simply offer a fixed list, usually powers of two. The arithmetic for the common motor:

Microsteps per full step (N) Step angle Microsteps per revolution Incremental torque, share of holding torque
1 (full step) 1.8 degrees 200 100%
2 (half step) 0.9 degrees 400 70.7%
8 0.225 degrees 1600 19.5%
16 0.1125 degrees 3200 9.8%
24 0.075 degrees 4800 6.5%
64 0.028125 degrees 12800 2.5%

The angles are exact arithmetic; the torque shares are calculated from the sin(90°/N) relation at those settings, not measured results. Settle one thing before any of this counts: what the drive's number means. Most quote microsteps per full step, but a drive that quotes steps per revolution means something completely different by the same figure, and the first FAQ below gives the conversion.

How much torque holds the rotor on one microstep? #

A fraction of the holding torque: the restoring torque around a commanded microstep position is approximately the holding torque times sin(90°/N), about 6.5% at the 24-microstep setting, so friction and load can absorb small steps entirely. Incremental torque is the torque needed to pull the rotor out of its standstill position, and it decides whether a commanded microstep survives contact with a real load. Command resolution is not positioning accuracy: when standing friction and load torque exceed the incremental torque, the rotor settles short of the target and the shortfall persists within the current full step, while the motor's own step accuracy and detent torque — datasheet values — bound the error at every setting.

The decision rule is that the incremental torque at your N must exceed the total friction and load torque reflected to the shaft at standstill, with margin; a factor of two is a working rule of thumb, not a datasheet limit. If it fails, lower N or add gearing, because raising N only shrinks this torque further.

How do you choose the microstep count for a required resolution? #

Take the smallest N that meets the required increment, round up to a value the drive supports, then verify incremental torque and step rate at that N: a larger N improves only the commanded resolution while both other checks get worse.

Worked example, calculated from example inputs rather than measured on a machine: a rotary axis must accept commanded increments no coarser than 0.08 degrees, its top speed is 60 rpm, the motor datasheet lists a holding torque of 1.2 N·m, and friction plus load torque at the shaft at standstill totals 0.02 N·m.

  • Required division: N ≥ 1.8 ÷ 0.08 = 22.5, so choose 24.
  • Commanded increment: the full-step angle divided by N gives 0.075 degrees, which beats the requirement.
  • Step demand: microsteps per revolution = 200 × 24 = 4800, so the 60 rpm top speed requires 4800 steps per second — confirm the drive's documented maximum step rate sits above it.
  • Incremental torque: 1.2 N·m × sin(90° ÷ 24) = 1.2 × 0.0654 ≈ 0.08 N·m, four times the 0.02 N·m friction and load, clearing the two-times rule.

Decision: set the drive to 24 microsteps per full step. A coarser requirement of 0.2 degrees would be met from N = 9 upward — 16 on a drive that lists powers of two — and picking 64 for headroom would be a mistake: the torque share drops to 2.5% and the pulse rate at the same speed rises almost threefold. Take the load off the shaft or keep the guard closed for the first move after changing the setting, because a drive that interprets its number differently from your assumption will travel several times the expected distance.

What limits the microstep rate at speed? #

The winding's current slew does: the step frequency is (rpm ÷ 60) × full steps per revolution × N, and once the interval between current targets approaches the winding's rise time, the actual current lags the table and torque collapses. The winding is an inductor, so its current ramps at roughly supply voltage divided by inductance, and the chopper can only regulate whatever current has actually built up. With a 24 V supply and a 3 mH winding — example values — the slew is 24 ÷ 0.003 = 8000 A per second, meaning a full 1 A excursion needs about 125 µs. At the worked example's top speed the update interval is 1 ÷ 4800 ≈ 208 µs, so the targets stay reachable; at 300 rpm on the same setting the demand is (300 ÷ 60) × 200 × 24 = 24,000 steps per second, an interval near 42 µs, and the current can no longer follow.

Adjacent microstep targets differ by far less than 1 A, so treat that comparison as a bounding check and confirm on the machine with a current probe: a sine/cosine waveform that flattens at speed is the signature, along with lost steps and audible roughness. The fixes, cheapest first: lower the speed or acceleration, lower N, or raise the supply voltage within the drive's rating — how voltage shapes the speed-torque trade is covered in stepper motor max RPM: torque curve, voltage and acceleration, and the controller-side ceiling in stepper drive pulse frequency limit versus microstep demand.

Does a higher microstep count make positioning more accurate? #

No: a larger N refines the commanded increment, not the achieved accuracy — absolute error is bounded by the motor's step accuracy and detent torque, both datasheet values, and what microstepping reliably buys is smoother low-speed motion and less resonance excitation. Two nominally equal microsteps are not physically identical, and their small errors do not average away; the step accuracy quoted for full steps still applies at every N. When an axis needs both fine resolution and real torque, earn it mechanically: a gearbox multiplies torque and cuts the inertia the motor sees, while microstepping only subdivides commands — the trade is laid out in stepper motor resolution: microstepping versus a gearbox. When smoothness rather than resolution is the goal, a working rule of thumb is 8 to 16 microsteps; past that you buy increments the machine cannot use and pay in torque and pulse rate.

Questions asked

Is a microstep setting of 24 the same on every drive?

No. Most PWM drives quote microsteps per full step, so 24 divides each full step into 24 current levels, but a drive that quotes steps per revolution means a 15-degree step by the same number, which no standard hybrid motor produces. Selector-based drives offer a fixed list, usually powers of two, while table-driven drives accept other counts. Convert to microsteps per revolution, meaning full steps per revolution times N, before comparing two drives.

Does microstepping reduce the motor's holding torque?

No. Holding torque at a full-step position stays at its datasheet value at rated current; what shrinks is the stiffness around each intermediate position, which is the incremental torque. A finely microstepped motor therefore yields to small disturbances but still resists a large one about as well as before, because the rotor is pulled back toward the nearest strong equilibrium within one full step.

Can the microstep count be changed without re-homing the axis?

No. The controller counts position in microsteps, so changing N changes what each pulse stands for, and a stored count now maps to a different physical place. Record the old setting, change it, then re-home and re-verify travel over a measured distance before production resumes. Axes whose position is scaled from a separate encoder are less exposed but still deserve the travel check.

How can I confirm the drive really takes 24 microsteps per full step?

Command exactly one revolution with the shaft unloaded or the axis guarded and watch a mark on the shaft: a 1.8-degree motor at 24 microsteps needs 4800 pulses for one full turn. A half turn means the drive is really stepping coarser than assumed; two turns mean a finer setting. Repeat the test once to rule out a lost step.

Keep reading

  • Explainer

    Servo Positioning Resolution Versus Stepper Step Angle Explained

    A 0.018° move needs 360 ÷ 0.018 = 20,000 usable feedback counts per revolution, which come from the encoder and the drive's decoding and scaling, not from the servo label. Matching 3,000 command pulses per revolution on a stepper and a servo only matches command scaling; short-time overload capacity and high-speed performance still differ.

    Servo and stepper motion

  • How-to

    Setting a stepper drive to 200 steps per revolution

    Yes. 200 steps per revolution is the drive's full-step point: set it in the drive's resolution setting, power-cycle, then divide the controller's pulse scaling constant by 100, because 20,000 divided by 200 equals 100. Skip that division and the axis travels a hundred times the commanded distance; full step buys pulse-rate headroom and gives up microstep smoothness and command resolution.

    Servo and stepper motion

  • Comparison

    A step and direction servo drive versus an open-loop stepper

    A step and direction servo drive takes the same pulse train as an open-loop stepper drive but closes the position loop inside the drive on the motor's encoder counts, so lost steps become a following-error fault instead of silent drift. The deciding arithmetic is the pulse budget: steps per inch times feed gives the steps per second your controller must supply, and a high-count encoder can exhaust that budget before the motor runs out of torque.

    Servo and stepper motion