Stator and rotor
The stator is the fixed outer part: iron poles, each wrapped in a coil. Energize a coil and its pole becomes an electromagnet. The rotor is a permanent magnet on the shaft. Opposite poles attract, so the rotor’s N pole swings into line with the energized stator poles and holds there.
That holding is the point of a stepper. With no position sensor at all, the controller knows where the shaft is, because it knows how many steps it has sent.
Stepping through the sequence
Switch the energized coils round the stator in order and the magnetic field turns with them; the rotor follows, step by step. Reverse the order and it turns the other way. How fast you step sets the speed.
Full step (two coils on): AB → BC → CD → DA Half step: A → AB → B → BC → C → CD → D → DA
Step angle, pole pairs and speed
A real rotor carries many N–S pole pairs round its rim, not one. One pass through the four-step coil sequence moves the rotor along by one pole pair, so a motor’s full steps per revolution is four times its pole pairs. A 24-step motor has 6 pole pairs; a common 200-step motor has 50.
step angle = 360° / steps per revolution pole pairs = full steps per revolution / 4 rpm = step rate · 60 / steps per revolution
Full step versus half step
Full stepping keeps two coils on all the time, so the rotor sits between two poles with full torque. Half stepping alternates between one coil and two, adding a position halfway between each pair of full steps. That doubles the resolution and halves the step angle, so at the same step rate the shaft turns half as fast. The one-coil positions hold with less torque.
Worked example (the simulator’s default values)
- Full step, 24 steps per revolution, 4 steps per second, clockwise.
- Step angle = 360° / 24 = 15°; pole pairs = 24 / 4 = 6.
- Speed = 4 · 60 / 24 = 10 RPM, so one revolution takes 6 s.
- Half step: 48 positions per revolution, 7.5° per step, and 5 RPM at the same 4 steps per second.
- Each full step turns the field by 90°, but the shaft by only 90° / 6 = 15°.
Common mistakes
- Thinking a stepper turns smoothly. It moves in discrete steps and holds between them; smooth motion at low speed needs microstepping.
- Assuming the step angle depends on the step rate. It is fixed by how the motor is built; the step rate only sets the speed.
- Stepping too fast for the load. Above some rate the rotor cannot keep up, misses steps, and the controller loses track of where the shaft is.
Common questions
How does a stepper motor work?
Coils on the stator are energized in sequence, each turning its pole into an electromagnet. The magnet rotor is pulled into line with the energized poles, so it moves one step every time the sequence advances.
What is the difference between full step and half step?
Full step keeps two coils on and moves one full step angle per pulse. Half step alternates between one and two coils, giving twice as many positions per revolution at half the step angle.
How do you calculate stepper motor RPM?
RPM = step rate × 60 / steps per revolution. A 24-step motor driven at 4 steps per second turns at 10 RPM.