The Short Answer: What Is a Stepping Motor?
A stepping motor (universally known in the industry as a stepper motor) is a brushless DC electric motor that divides a full 360° rotation into a precise number of equal steps. Unlike standard DC motors that spin continuously when voltage is applied, a stepping motor moves in discrete angular increments—most commonly 1.8° per step, yielding 200 full steps per revolution.
The working principle relies on electromagnetic stator coils energized in a specific sequence to pull a toothed magnetic rotor into alignment. By precisely timing the current pulses sent to these coils, you achieve exact open-loop positional control without needing an optical encoder.
For a deeper look at the electromagnetic physics behind the rotor and stator interaction, All About Circuits provides an excellent visual breakdown of the internal pole alignment.
Stepping Motor vs. Servo vs. Brushless DC: Load Profile Match
A common mistake on the workbench is treating steppers and servos as interchangeable. They are not. Servos rely on closed-loop feedback and excel at high speeds and dynamic torque, while steppers provide maximum torque at zero speed (holding torque) but suffer from a steep torque drop-off as RPM increases.
Here is how the three primary motion control motors compare when selecting a drive for a specific load profile:
| Motor Type | Torque Curve Profile | Control Needs | Typical Cost (USD) | Best Load Profile |
|---|---|---|---|---|
| Stepping Motor | Maximum at stall (0 RPM); drops sharply past 1,000 RPM. | Open-loop pulse/direction; microstepping driver required. | $12 - $60 (Motor + basic driver) | Low-speed, high-precision positioning; heavy static holding loads (CNC, 3D printers). |
| AC/DC Servo | Flat, constant torque up to rated speed; high peak torque for acceleration. | Closed-loop (requires encoder); complex PID tuning. | $150 - $500+ | High-speed, high-acceleration dynamic loads; robotic arms, industrial pick-and-place. |
| Brushless DC (BLDC) | Similar to servo but optimized for continuous rotation rather than positioning. | Closed-loop (Hall sensors/FOC); ESC required. | $30 - $150 | Continuous high-RPM rotation; drones, cooling fans, electric vehicle traction. |
Sizing Rule of Thumb and Worked Load Example
Never size a stepping motor based solely on the running torque of your load. Steppers suffer from mid-band resonance and require significant overhead to overcome the inertia of starting and stopping. The golden sizing rule is to select a motor with 2.5x to 3x the calculated peak running torque.
Worked Example: Sizing a Linear Lead Screw Axis
Let’s calculate the required torque for a horizontal linear axis driven by a stepper motor.
- Load Mass (m): 10 kg
- Desired Acceleration (a): 1.0 m/s²
- Friction Force (Ff): 5 N (measured on the rails)
- Lead Screw Pitch (P): 4 mm (0.004 m)
- Screw Efficiency (η): 90% (0.9)
Step 1: Calculate Total Linear Force (F)
F = (m × a) + Ff
F = (10 kg × 1.0 m/s²) + 5 N = 15 N
Step 2: Convert Linear Force to Rotary Torque (T)
The formula for lead screw torque is T = (F × P) / (2π × η)
T = (15 × 0.004) / (2 × 3.14159 × 0.9)
T = 0.06 / 5.654 = 0.0106 Nm (or 10.6 Ncm)
Step 3: Apply the Safety Factor
Required Motor Torque = 10.6 Ncm × 2.5 (safety factor) = 26.5 Ncm.
The Verdict: A standard NEMA 17 motor (like the widely available StepperOnline 17HS4401, rated at ~40 Ncm holding torque for about $14) is perfectly sized for this load. If the calculation had yielded 80 Ncm, we would step up to a NEMA 23 frame (e.g., 23HS45, rated at ~120 Ncm for ~$35).
Wiring, Terminals, and Driver Demands
Modern stepping motors in DIY and CNC spaces are almost exclusively bipolar, 4-wire configurations. You will see terminals labeled A+, A-, B+, and B-. These represent the two independent electromagnetic coil pairs inside the motor.
Identifying Coil Pairs Without a Datasheet
If you have a salvaged motor with unmarked wires, grab your multimeter. Set it to resistance (Ohms). Probe the wires until you find two pairs that show continuity (typically 1 to 5 ohms). Wires that show infinite resistance (OL) belong to different coils. Alternatively, short two wires together and try to spin the shaft by hand; if it feels coggy and resists rotation, you’ve found a matched coil pair.
What Driver Does It Demand?
You cannot connect a stepping motor directly to a microcontroller GPIO pin or a DC power supply. The inductance of the coils requires high voltage to push current quickly, and the microcontroller cannot source the required 1.5A to 3A per phase. You need a chopper stepper driver.
According to Texas Instruments' motor drive design guidelines, chopper drivers use PWM to regulate current, allowing you to run a 24V or 48V bus into a motor rated for just 2V or 3V. This high voltage overcomes coil inductance, maintaining torque at higher RPMs.
- Budget/Standard (DRV8825 / A4988): Costs ~$2-$4. Loud, generates high-frequency whine, but perfectly reliable for basic 3D printers and low-budget CNCs.
- Silent/Advanced (TMC2209 / TMC2225): Costs ~$6-$12. Uses stealthChop technology to eliminate audible motor noise and features StallGuard, which can detect missed steps without a physical limit switch.
Recognizing Failure Signatures
Because steppers run open-loop, they fail silently in terms of software errors, but the hardware tells you what is wrong:
- The Hum (Mid-Band Resonance): If the motor hums loudly and stalls at a specific speed (usually 10-20 rev/s), you have hit mid-band resonance. Fix: Implement microstepping (1/16 or 1/32) in your driver settings, or add a mechanical damper to the shaft.
- Overheat (Thermal Torque Derating): If the motor casing is too hot to touch (>60°C) and it starts missing steps under load, the copper windings are heating up. As copper temperature rises, its resistance increases, dropping the current and the torque. Fix: Reduce the driver's RMS current limit by 20%, or add forced-air cooling.
- Stall (Missed Steps): The motor stops moving, but the driver keeps clicking. Fix: Your acceleration profile is too aggressive for the motor's inertia, or your VREF (current limit) on the driver is set too low.
Frequently Asked Questions
What is a stepping motor used for in 3D printers and CNCs?
In 3D printers and CNC routers, stepping motors are used for precise, open-loop positional control of the X, Y, and Z axes, as well as the extruder or spindle feed. Because these machines operate primarily at low-to-medium speeds and require the axis to hold rigidly against cutting forces or gravity when stopped, the high holding torque and step-accuracy of NEMA 17 and NEMA 23 stepping motors make them vastly more cost-effective than closed-loop servos.
How do I stop my stepping motor from overheating at idle?
Stepping motors draw full rated current even when holding a static position, which generates significant heat. To prevent overheating at idle, configure your stepper driver to use an "idle current reduction" feature. Most modern drivers (like the TMC2209 or DRV8825) allow you to drop the holding current to 25% or 50% of the running current when no step pulses are received. If your load doesn't require high holding torque while stationary (like a 3D printer X/Y axis), this simple firmware tweak will keep the motor casing cool.
Can I use a stepping motor without a microcontroller?
Yes, but you still need a pulse generator. A stepping motor requires a sequenced square wave to operate. You can use a dedicated hardware stepper motor controller board (often called an indexer or pulse generator) that features physical potentiometers and switches to set speed, direction, and acceleration without writing a single line of code. Alternatively, a simple 555 timer circuit can generate a basic clock pulse to spin the motor at a fixed speed, though you will lose the ability to control precise acceleration ramps or exact step counts.
What is the difference between unipolar and bipolar stepping motors?
The difference lies in the internal coil wiring. A bipolar motor has 4 wires and two distinct coils. Current must be reversed (polarity flipped) through the coil to change the magnetic pole, requiring a more complex H-bridge driver, but it yields about 30% more torque for a given frame size. A unipolar motor typically has 5 or 6 wires, featuring a center tap on each coil. This allows the driver to energize only half the coil at a time, simplifying the drive electronics (no polarity reversal needed), but it sacrifices torque and efficiency. In modern DIY and industrial applications, bipolar motors paired with chopper drivers are the overwhelming standard.






