Microstepping divides the step and leaves the error where it was
A stepper motor is sold as a number of steps. The number is on the label, two hundred per revolution for a common frame size, and the driver counts pulses into it. Everything between the counter and the shaft is a second set of numbers, all of them printed on the same datasheet, none of them on the label, and each one narrows what the first one promised.
This piece takes one widely used bipolar motor and one widely used geared unipolar motor, and runs the published figures through the arithmetic until the step count stops matching the angle. Nothing below is measured on a bench. Every input is a datasheet value, and every result is reproducible from the numbers printed here.
Two hundred steps, and a tolerance given in degrees
A 1.8 degree motor has 200 full steps per revolution. That figure is exact in the same way a nominal resistor value is exact: it is the design centre, not the delivered part. The specified accuracy for hybrid steppers of this class is plus or minus five percent of the step angle, quoted at full step and no load, and it appears with the same wording across manufacturers who otherwise disagree about everything else.
Five percent of 1.8 degrees is 0.09 degrees. That is the number to keep. Not because it is large, but because it does not shrink when the step does.
The error is non-cumulative, and the mechanism is worth stating because it explains why the rest of this article looks the way it does. On every step the rotor teeth are pulled into alignment with an energised set of stator teeth, and the same set is used again on the next electrical cycle. A rotor that finished one step 0.05 degrees late starts the next step from wherever it actually is, pulled toward the next tooth pair rather than toward a position offset by the previous error. Over one revolution the errors do not add up to eighteen degrees; they stay within a step, because the tooth grid is the reference and the grid does not move.
What does accumulate is everything downstream of the shaft. A coupling with runout, a belt with a pitch error, a gear train with a ratio that is not the ratio printed on the box. The motor is the one element in a typical motion axis whose angular error genuinely does not stack, which is why the largest errors in a home-built machine are usually found in the parts that were not specified at all.
Eight numbers on one datasheet
The motor used for the arithmetic below is a NEMA 17 hybrid, 40 mm body, 1.7 A per phase. It is unremarkable and it is everywhere.
| Parameter | Value | Unit |
|---|---|---|
| Step angle | 1.8 | degree |
| Step angle accuracy | plus or minus 5, full step, no load | percent |
| Rated current | 1.7 | A per phase |
| Phase resistance | 1.5 | ohm |
| Phase inductance | 2.8 | mH |
| Holding torque | 40 | N·cm |
| Detent torque | 2.2 | N·cm |
| Rotor inertia | 54 | g·cm² |
Two entries in that table do most of the work and receive the least attention. Phase inductance decides the maximum speed. Detent torque, the resistance felt by hand with the coils unpowered, decides the smallest increment that can actually be held still.
Microstepping divides the step
A two-phase hybrid motor has fifty rotor teeth, and one full step advances the electrical angle by ninety degrees. A microstepping driver does not move the rotor to a new tooth; it energises both phases at once and sets the two currents on a sine and a cosine, so the rotor settles where the vector sum of the magnetic fields points. At a sixteenth step those currents advance in increments of 5.625 electrical degrees, and the shaft advances 0.1125 mechanical degrees with them.
The arithmetic of the division is trivial and worth tabulating, because the last column is the whole argument.
| Microstep | Step size | Steps per revolution | 0.09 degree error as a share of one step |
|---|---|---|---|
| 1/1 | 1.800 degree | 200 | 5 percent |
| 1/2 | 0.900 degree | 400 | 10 percent |
| 1/4 | 0.450 degree | 800 | 20 percent |
| 1/8 | 0.225 degree | 1600 | 40 percent |
| 1/16 | 0.1125 degree | 3200 | 80 percent |
| 1/32 | 0.05625 degree | 6400 | 160 percent |
The right-hand column is not an error in the microstepping; it is a statement about what the tolerance was always worth. At full step the specified accuracy is five percent of the commanded increment, which is a defensible sensor. At one thirty-second step it is a hundred and sixty percent, which means the commanded increment is smaller than the uncertainty attached to the reference it is measured against. A driver that accepts 6400 pulses per revolution has divided the step. It has not divided the tolerance.

The dead band sets the floor
The useful question is not how finely the position can be commanded but how far the shaft can be moved before it stays moved. That quantity comes from the torque curve.
Displaced by an angle from its stable point, measured in electrical degrees, a hybrid stepper develops a restoring torque close to the holding torque multiplied by the sine of that angle. At ninety electrical degrees the torque reaches the full holding value; near zero it is almost nothing, in proportion to the angle.
Against that restoring torque sits the detent torque, 2.2 N·cm, which is present whether or not the coils are energised and which the microstep position must overcome before the rotor will follow the command at all. The angle at which the restoring torque equals the detent is the edge of the dead band.
| Opposing torque | Electrical dead band | Mechanical dead band | Finest step that can resolve it |
|---|---|---|---|
| 2.2 N·cm, detent only | 3.15 degree | 0.063 degree | 1/16 |
| 5 N·cm, light preload | 7.18 degree | 0.144 degree | 1/8 |
| 10 N·cm, typical belt tension | 14.48 degree | 0.290 degree | 1/4 |
| 20 N·cm, half of rated load | 30.00 degree | 0.600 degree | 1/2 |
The first row is the one that matters, because it is the floor the hardware sets by itself. Sixty-three thousandths of a degree is fifty-six percent of a sixteenth step and a hundred and twelve percent of a thirty-second step. A sixteenth-step position can just be distinguished from its neighbour; a thirty-second-step position cannot, because both sit inside the same band and the rotor returns to whichever side of it the detent prefers.
There is a second way to read the same number. At the first microstep of a sixteenth sequence the restoring torque available is 40 times the sine of 5.625 degrees, or 3.92 N·cm, which is 1.78 times the detent. At a thirty-second step it is 1.96 N·cm, below the detent. The command is issued, the current vector moves, and the shaft does not, because 1.96 is smaller than 2.2.
This is also why the quoted resolution of a driver and the resolution of a machine are different numbers. The driver has 6400 positions. The motor holds somewhere between 800 and 3200 of them, depending on what is bolted to the shaft.
The current you set is not the current in the coil
Three driver families dominate this price bracket and they do not share a formula.
| Driver | Full-scale current | Microstep limit | Sense resistor on common carriers |
|---|---|---|---|
| A4988 | VREF divided by 8 times the sense resistor | 1/16 | 0.068 ohm, 0.050 ohm on older boards |
| DRV8825 | VREF divided by 5 times the sense resistor | 1/32 | 0.100 ohm |
| TMC2209 | set by register, not by a trimmer | 1/64 with interpolation | 0.110 ohm |
The two trimmer-driven formulas differ by a factor of 1.6, and they are frequently interchanged in write-ups, which is the first way to get the current wrong. The second is the sense resistor, which is not a constant across boards of the same name.
| VREF set to 0.800 V | A4988 at 0.050 ohm | A4988 at 0.068 ohm | A4988 at 0.100 ohm | DRV8825 at 0.100 ohm |
|---|---|---|---|---|
| Coil current limit | 2.00 A | 1.47 A | 1.00 A | 1.60 A |
One potentiometer position, four different currents spanning a factor of two. The sense resistor is marked in a code that takes a magnifier to read, which is a poor way to discover that the motor is being driven at twice its rating.
The third way to get it wrong is more interesting, because it is built into the silicon and not into the board. In full-step mode both coils are energised at once and the driver limits each of them to about seventy percent of the set current, since the vector magnitude is what the scale refers to. Microstepping then allows the coil current to rise to forty percent above the value measured in full step on certain steps, and the carrier documentation says so explicitly.
The practical consequence runs the other way from the usual intuition. A motor rated at 1.7 A per phase needs a full-scale setting of 2.40 A to reach that current in full-step mode, because 1.7 divided by 0.707 is 2.40. Set the scale to 1.7 A, which looks like the conservative choice, and every coil receives 1.20 A and the axis has seventy percent of the torque the datasheet promised. Set it to 2.40 A and an A4988 without a heatsink, rated at roughly 1 A per phase continuous, will thermally cycle.
That is the selection error this arithmetic exposes: a 1.7 A motor on an unheatsinked A4988 cannot be run at its rating in any configuration. It can be run at about forty percent of the rating all day, or at the rating for a few seconds at a time.
Holding torque is paid for in watts
The 40 N·cm figure is measured with the shaft stationary and the coils energised. It is not a free property of the motor.
Two phases at 1.7 A through 1.5 ohms dissipate 8.67 W. The motor weighs 280 g and its outer surface is roughly 80 square centimetres. Holding the quoted 80 K rise across that surface, at that dissipation, requires about 13 W per square metre per kelvin, which is near the top of what unforced convection gives a body this size. Enclose the motor in a housing, or bolt it to a plate that blocks the airflow, and the coefficient falls toward 8, the rise heads for 135 K, and the winding is running past the class it was insulated for. The rated current is a thermal rating taken on an open bench, and the holding torque printed beside it belongs to the same bench.
Two rules follow and both are cheap to implement. Idle current reduction, dropping the coil current when no step has arrived for a few hundred milliseconds, converts an 8.7 W heater into a 2 W one and costs nothing but a counter. And the detent torque, 2.2 N·cm, is what remains when the power is removed: 5.5 percent of the holding figure, which is the only braking force an unpowered axis has.
Two point eight millihenries sets the speed ceiling
A chopper driver holds the coil current at the set value by switching, so the reachable speed is limited by how fast current can be established in the winding after each step. For a step response dominated by inductance, the time to reach the rated current is the inductance times the current divided by the supply voltage.
| Motor supply | Time to 1.7 A in 2.8 mH | Ceiling at 1/16 step | Ceiling at full step |
|---|---|---|---|
| 12 V | 397 microseconds | 47 rpm | 756 rpm |
| 24 V | 198 microseconds | 95 rpm | 1513 rpm |
| 35 V | 136 microseconds | 138 rpm | 2206 rpm |

The table explains a decision that looks arbitrary until the arithmetic is done. Every 3D printer that moved from 12 V to 24 V did not gain torque; it gained the ability to run a sixteenth-step sequence at a useful speed, because the current has half as far to climb in the same step period. It also explains the complaint that follows a change of microstep setting. If the firmware keeps the same pulse rate, the shaft runs sixteen times slower; if it keeps the speed, the pulse rate has to rise from 700 to 11,200.
The ceiling in the last two columns is generous, because it ignores back-EMF, which subtracts from the available voltage in proportion to speed, and it ignores the torque actually required. Treat the numbers as the point past which no amount of driver configuration helps.
The gearbox is where the error actually accumulates
The 28BYJ-48 is the other end of the market: 5 V, five wires, unipolar, four phases, and a plastic gear train that turns a fast weak motor into a slow strong one. It is also the clearest case of an error that does accumulate, and it accumulates because of a number nobody prints on the label.
Inside the case the motor itself steps 11.25 degrees per full step, 32 steps per revolution, or 5.625 degrees in the eight-state half-step sequence. The gear train then multiplies that by something close to 64. Close, not equal: the actual tooth counts give 63.68395 to one.
| Quantity | Printed or assumed | Actual |
|---|---|---|
| Gear ratio | 64 to 1 | 63.68395 to 1 |
| Half steps per output revolution | 4096 | 4075.77 |
| Output step angle, half step | 0.087891 degree | 0.088327 degree |
| Error per output revolution | zero, if the ratio were 64 | 1.778 degrees, 0.494 percent |
A firmware that counts 4096 half steps per revolution overshoots by 20.2 steps every turn. That is 0.494 percent, and because it has the same sign every revolution it is not an uncertainty but a rate: after 202.5 revolutions the commanded position and the actual position differ by a full 360 degrees. A camera slider that traverses the same metre a few times a day reaches that in a couple of months, and the failure looks like a mechanical problem, because the pulse count is always right.
The half-step figure is also routinely misread as a step angle rather than a ratio. The string 5.625 divided by 64 that appears on the label is a division, not a range, and the quotient is 0.0879 degrees.
The driver adds a second, smaller loss. A ULN2003 channel drops 0.85 V at 100 mA and 1.1 V at the top of its range, and the winding sees what is left of the 5 V rail. On a 5 V supply that is 17 to 22 percent of the voltage gone before the motor is reached, which takes the same share of the current and therefore of the torque. The usual remedy is not a better driver but a higher rail, within the motor's thermal limits, since the Darlington drop is roughly fixed and its share falls as the supply rises.
What survives the arithmetic
Five numbers decide the outcome of an axis, and four of them are not the step count.
The step angle sets the grid. The tolerance, five percent of it, is the accuracy and stays at 0.09 degrees no matter how finely the driver divides. The detent torque, divided by the holding torque, sets the dead band, and any microstep finer than that band is a position the motor cannot hold. The phase inductance, divided by the supply voltage, sets the speed ceiling. The gear ratio, if there is one, sets the only error in the chain that accumulates.
Everything else is configuration. The current limit is a resistor value read off the board and a formula taken from the right datasheet, remembering that the number the potentiometer sets is a vector magnitude and not a per-coil current. The supply voltage buys speed and not torque. The microstep setting changes the pulse count, and therefore changes every constant in the firmware that was expressed in steps, including the steps per millimetre and the acceleration profile, both of which will otherwise be wrong by exactly the ratio that was changed.
A closed-loop axis converts all of this into a correction. An open-loop one, which is what almost every desktop machine is, converts it into a design margin that has to be computed once and then believed.