Stepper Motor Guide: Working Principle, Sizing and Setup

Isometric illustration of a stepper motor with a lead screw linear slide, a stepper motor driver, wiring, and a control box

A stepper motor turns in small, fixed steps, so you can position a load without a feedback device. However, it only works well when the controller, driver, motor and power supply suit the job. In this guide, you will learn how steppers work and how to size, wire, set up, troubleshoot and repair them, including basic Arduino control.

On this page

What is a stepper motor?

A stepper motor is a motor that moves in fixed angular increments, called steps. Next, a driver energises its windings in a set order, and each change moves the shaft one step. Because each pulse equals a known angle, you can count pulses to know where the shaft should be. Also, the motor holds its position at rest as long as the windings stay powered.

Common step angles and steps per revolution

The most common step angle is 1.8°, which gives 200 full steps per revolution. In half-step mode, the same motor moves 0.9° per step, or 400 steps per revolution. Some motors also have a 0.9° full step. So read the label or data sheet before you set up the drive.

Does a stepper motor need feedback?

A basic stepper motor runs open loop. In other words, nothing tells the controller whether the shaft actually reached the target. So if the load gets too heavy, the motor can skip steps with no warning at all. Closed-loop steppers add an encoder, a sensor that reports shaft position, to catch this problem.

How a stepper motor works

How does a stepper motor work?

Inside the motor, a toothed rotor sits within a stator that carries the windings. Then the driver energises those windings in sequence. Each time the magnetic field shifts, the rotor teeth line up with the next set of stator teeth, and the shaft turns one step. To reverse, the driver runs the sequence backward.

Cutaway isometric view of a motor showing orange copper coils around a gear-toothed inner rotor, with a shaft, laminated
Four bolt holes on the front flange secure it to the machine frame.

In addition, each full step equals 90 electrical degrees of phase advance. In a 1.8° motor, that works out to 200 full steps per revolution. As a result, the number of pulses sets the distance, and the pulse rate sets the speed.

What is the difference between full step, half step and microstepping?

Steppers commonly run in three modes: full step, half step and microstepping. In full step, the driver energises the windings at full current in a fixed pattern. Half step alternates between one winding on and both windings on, which doubles resolution and reduces vibration. Microstepping goes further, because the driver sets each winding to in-between current levels so the rotor rests between full steps.

ModePositions per revolution (1.8° motor)Degrees per step
Full step2001.8°
Half step4000.9°
1/16 microstep3,2000.1125°
1/32 microstep6,4000.05625°
1/256 microstep51,2000.00703125°

The effect also shows up at the load. For example, with a lead screw of 5 threads per inch, full step moves the nut 0.001 in per step. Half step cuts that to 0.0005 in per step.

Does microstepping improve accuracy?

No. Microstepping raises command resolution and smooths motion, but it does not make positioning more accurate. Under load, the shaft deflects away from the commanded point. In one test, A4988 and TB6560AHQ drivers set to 1/16 step deflected by more than half a full step under load.

In addition, a stepper makes its rated holding torque only at a full-step position with both windings at full current. Between full steps, the torque holding the rotor in place is lower. So if you need roughly 0.1° accuracy, use a closed-loop stepper with encoder feedback.

Why does a stepper run warm when it is not moving?

A stepper driver keeps current flowing in the windings while the motor stands still. That current creates the holding torque that keeps the shaft in place. However, it also makes heat, even when nothing moves. So a warm motor at rest is normal, and many drives let you lower the current at standstill to cut that heat.

Parts of a stepper motor system

What are the parts of a stepper motor system?

Every stepper motor system follows the same basic chain. First, a controller decides the move. Next, a driver turns the commands into winding current. Then the motor converts that current into steps, while a power supply feeds the driver.

  • Controller or indexer: decides how far and how fast to move, and sends step and direction pulses. It can be a PLC, a motion controller, a microcontroller or a host computer.
  • Driver (drive): reads the pulses and supplies regulated current to the motor windings, including microstepping.
  • Motor: turns one step or microstep per pulse, as long as it has enough torque.
  • Power supply: feeds the driver’s motor input. The controller often has its own logic supply.
  • Mechanics: the coupling, belt, lead screw or gearbox that carries motion to the load.

In pulse/direction control, each pulse moves a two-phase motor one step angle in full-step mode. Meanwhile, the direction line sets which way it turns.

Driver, controller or indexer: what do the terms mean?

People use these names loosely. Usually, “driver” or “drive” means the power stage, and “controller” or “indexer” means the part that makes the pulses. However, some products put both in one box, and sellers often call that combined unit a controller as well. So when you order a replacement, confirm whether the unit makes pulses, powers the motor, or does both.

Stepper motor driver

What is a stepper motor driver and what does it do?

A stepper motor driver energises the two windings of a two-phase motor with controlled current. It reads the step and direction inputs, runs the winding sequence, and provides full step, half step or microstepping. Most modern drivers also run from a supply voltage well above the motor’s nameplate voltage. That higher voltage pushes current into the windings faster, which helps torque at speed.

Orange stepper motor driver mounted on a DIN rail, wired to a motor with cables and terminal blocks.
Finned heat sink on the driver carries away heat from the power stage.

How chopper current regulation works

Because the supply voltage is higher than the motor’s rating, the driver must cap the current. A chopper driver does this with PWM, which means fast on-off switching. It switches each coil current on and off to hold it at the level you set. Also, the full set current flows through the coils even when the motor is not moving, unless the drive offers a lower hold current.

Common stepper driver chips compared

DriverCurrent per coilVoltageFinest microstepNotable features
A49882 A maximum rating; usable current depends on cooling8 to 36 V motor supply (per a common tutorial)1/16Simple STEP/DIR inputs; three MS pins set resolution
DRV88252.5 A per output with proper heat sinking; the Pololu carrier limits it to 2.2 A45 V rated part (TI)1/32Built-in current regulation
TMC22092 A RMS (2.8 A peak)See the TMC2209 datasheetUp to 1/256 (Trinamic family)StealthChop2 quiet mode, SpreadCycle chopper, StallGuard, CoolStep
STSPIN820See the ST datasheetSee the ST datasheet1/256Eight resolutions from full step to 1/256

In practice, these chips sit on small carrier boards and inside many compact drives. Industrial stepper drives use the same ideas, but they come in enclosed packages with terminals and switch or software setup. Finally, always confirm ratings in the maker’s documents, such as the Texas Instruments DRV8825 product page and datasheet, the Analog Devices Trinamic TMC2209 datasheet, or the STMicroelectronics AN5381 STSPIN820 microstepping application note.

How do I choose a stepper motor driver?

Start with the motor, then match the driver to it. Check these points:

  • Current: The driver must supply the motor’s rated phase current continuously, with the cooling you have.
  • Voltage: Keep the supply inside the driver’s rating. Within that rating, higher voltage helps torque at speed.
  • Microstep resolution: Finer steps give smoother motion, but the controller must send more pulses for the same speed.
  • Inputs: Make sure the step, direction and enable inputs accept your controller’s signal voltage.
  • Features: Look for anti-resonance, stall detection, quiet chopper modes, adaptive current and hold current reduction where the job needs them.

How do I choose the supply voltage for a stepper motor?

The motor’s winding inductance, which is how strongly the coil resists a change in current, limits how fast current can build up. A higher supply voltage pushes current in faster, so torque holds up at higher speed. A common rule of thumb says the useful supply voltage is about 32 times the square root of the motor inductance in millihenries. Treat that as a starting point, not a limit.

Two hard limits apply. First, never exceed the driver’s maximum supply voltage, and leave some margin for voltage that rises when the motor slows down. Second, never set the current above the motor’s rated current per phase, even if the driver can supply more. A low-inductance motor on a high supply voltage gets the best speed, but only if the driver can regulate the current.

Setting the driver current limit

The current limit is the most important driver setting. Next, set it at or below the motor’s rated current per phase. If it is too high, the motor and driver overheat. If it is too low, torque drops until the motor may stall.

Also, microstep modes only work properly when current limiting actually engages. On the A4988 board, a limit set too high means the driver cannot hold the in-between current levels. As a result, the motor skips microsteps.

  1. Read the rated current per phase from the motor label or data sheet.
  2. Find the current-limit formula in your own board’s documentation.
  3. With the driver powered, measure the reference voltage (Vref) between the trimmer potentiometer and ground.
  4. Turn the potentiometer until Vref matches your target.
  5. Run the motor and check that the motor and driver do not overheat.

Vref formulas for A4988 and DRV8825 boards

The current Pololu A4988 carrier page says all units made since 2017 have 0.068 Ω sense resistors. For these boards, the limit is I_MAX = VREF ÷ (8 × R_CS), which is roughly VREF × 1.84. For example, Pololu sets VREF to 540 mV for a 1 A limit. Older boards and older copies of the Pololu page use a different resistor value and a different formula, so check which board you have. In full-step mode, that board limits coil current to 70% of the setting. So for 1.2 A per coil in full step, Pololu’s example sets the limit to 1.2 A ÷ 0.7, or about 1.7 A.

For the DRV8825, the Pololu DRV8825 carrier documentation gives the limit as Vref × 2, based on 0.100 Ω sense resistors. As a result, a motor rated for 1 A needs a 0.5 V reference.

However, these formulas apply only to those specific boards. Other boards and versions use different sense resistors, so the formula changes. Always check your own board’s documentation before you set Vref.

Measure coil current in the right place

If you check current with a meter, put the meter in series with one motor coil. Do not use the current at the power supply to set the limit, because a chopper driver draws less from the supply than it sends through the coils. Also, never connect or disconnect the motor while the driver has power, since that can destroy the driver.

How do I set the current on an industrial stepper drive?

Industrial drives use one of two methods. Many have a bank of DIP switches, which are small on-off switches on the drive. You match the switch pattern to the current table printed on the drive or in its manual. Others use software: you connect a laptop with the maker’s setup tool and type in the current, microstep and hold-current values.

In both cases, pick the value that matches the motor’s rated current per phase. Some drives list peak current and some list RMS current, so check which one the table uses. Then power the drive down and back up, because some drives read the switches only at power-up.

What do stepper drive fault and alarm codes mean?

Fault codes differ from one maker to the next, so no single list is reliable. Most drives flash an LED a set number of times or show a code on a display. Look up that code in the manual for your exact drive model. Typical causes include overcurrent, over-voltage, under-voltage, over-temperature and a motor wiring fault. If you cannot find the manual, send us the drive model and the code.

How do hold-current reduction and decay mode change torque, noise and heat?

Hold-current reduction lowers the winding current a short time after the motor stops. As a result, the motor and drive run cooler and make less noise at rest. However, holding torque drops with the current, so keep enough current to hold the load, especially on vertical axes. Many drives let you set the delay and the reduced level.

Decay mode controls how current falls in the winding during each chopper cycle. The common choices are:

  • Slow decay: current falls slowly, so ripple is low and the motor runs quieter and cooler. However, current control gets worse at higher speed and in fine microsteps.
  • Fast decay: current falls quickly, so the drive tracks the command better at speed. In return, ripple, noise and heating go up.
  • Mixed decay: the drive switches between the two, which is a good default for most jobs.

Many drives set this automatically. If yours has a setting, change it only when you see a problem, such as noise at low speed or lost torque at high speed.

How do I wire for EMC and manage drive heat in a cabinet?

A stepper drive switches current fast, so it can make electrical noise. These steps help:

  • Use shielded cable for the motor and for the step and direction signals.
  • Ground the shield where the maker’s manual says, usually with a clamp that touches the shield all the way around.
  • Run motor cables apart from signal and encoder cables, and cross them at right angles if they must meet.
  • Keep the motor cable as short as the machine allows. The maximum length depends on the drive, so check its manual.
  • Bring all grounds to one point on the panel, and mount the drive on a bare metal plate.

For heat, mount the drive where the manual says, leave the listed gap around it, and keep air moving across the heat sink. Add a fan when the cabinet runs warm. In addition, lowering the hold current cuts the heat the drive makes at rest.

Stepper motor controller

What is a stepper motor controller (indexer)?

A stepper motor controller, also called an indexer, generates the step and direction pulses. It might be a PLC with pulse outputs or a motion module, a dedicated motion controller, a microcontroller such as an Arduino, or software on a host computer. The controller sets the pulse count for distance and the pulse rate for speed. It also sets how quickly the rate changes, which is the acceleration.

What step and direction signals do drivers need?

Most drivers take a step input and a direction input. Each pulse on the step line moves the motor one step or microstep, and the level on the direction line sets the way it turns. Many drives take 5 V logic. Some take 24 V, so check the input rating before you connect a PLC.

Industrial drives often use opto-isolated inputs, which means a small light-based switch separates the control side from the drive. These inputs need a little current to turn on. If you connect 24 V to an input made for 5 V, add the series resistor the manual calls for. Also check the minimum pulse width and the minimum gap between a direction change and the next step pulse. Both are in the drive manual, and they are often in the microsecond range.

What pulse frequency do I need from a PLC?

Work out the pulse rate first: pulses per second = RPM × pulses per revolution ÷ 60. For example, 600 RPM at 1/16 microstepping on a 200-step motor is 600 × 3,200 ÷ 60, or 32,000 pulses per second. Then compare that with the PLC output limit. Relay outputs are far too slow for this job. Transistor outputs are faster, but the limit depends on the PLC model, so read its manual. If the PLC cannot reach the rate, use coarser microstepping or a dedicated motion module.

Motion profiles: acceleration, constant speed and deceleration

Each move has three phases: accelerate, run at constant speed, then decelerate. A stepper cannot jump straight to full speed, because its torque falls as speed rises. For example, a linear, or trapezoidal, profile ramps the pulse rate at a steady slope. Instead, an S-curve profile softens the start and end of each ramp, which excites fewer low-frequency resonant modes. So if the motor stalls during ramps, lower the acceleration or switch to an S-curve.

How does a stepper motor know its position at power-up?

It does not know. An open-loop controller only counts the pulses it sends, so at power-up it has no idea where the shaft sits. For this reason, the controller first runs a homing routine that turns the motor to a known position, such as a home switch or hard stop. After that, it sets the count to zero. However, if the motor later misses steps under load, the count goes wrong, and you must restart or re-home the axis.

Enable, run current and hold current

Most drivers have an enable input that switches the output stage on or off. On the A4988, ENABLE is active low, so a low signal turns the outputs on. When you disable the driver, the shaft loses holding torque, so watch vertical axes and loads that can push the shaft.

In addition, many drives offer separate run and hold current settings. Run current applies during moves, while a lower hold current at standstill cuts heat. However, keep the hold current high enough to hold the load in place.

Stepper motor control methods

How is a stepper motor controlled in open loop?

Open-loop stepper motor control is the classic pulse-and-direction method. The controller sends pulses, the driver steps the motor, and nothing checks the result. Because there is no feedback, it is the lower-cost option and needs no feedback tuning. However, open-loop drives usually run at high, constant current to protect position. That can cause heat and noise, and position accuracy is still not guaranteed.

Isometric illustration of a stepper motor with an orange flange and belt-drive pulley, linked by cables to a driver box, a
Loose coiled cable lies beside the motor, showing spare wiring run

How does closed-loop stepper control work?

A closed-loop stepper is a hybrid stepper, the common industrial type, with a position feedback device and a closed-loop driver. Typically, the feedback device is an encoder. The driver watches rotor position all the time and corrects any deviation, so it can detect and fix lost steps. Adding an encoder also gives more accurate, cooler and quieter running. In addition, one source says it typically gives a strong performance-to-cost ratio below about 1,000 RPM.

What does a closed-loop stepper cost, and how do I set it up?

A closed-loop stepper costs more than an open-loop one, because you pay for the encoder and a smarter drive. It usually costs less than a comparable servo. We do not list prices here, so contact us for a current quote.

Encoder resolution depends on the motor, so read it from the motor or drive data sheet. Then set up the drive in these steps:

  1. Set the motor current and microstep resolution as you would for open loop.
  2. Enter the encoder resolution if the drive asks for it.
  3. Set the position error limit, which is how far the shaft may lag before the drive raises a fault.
  4. Run the move with the real load and watch for errors.
  5. If the drive has gain settings, adjust them one at a time, using the manual as your guide.

Sensorless stall detection

Some drivers can sense a stall without an encoder. For example, the TMC2209 offers StallGuard for sensorless homing and CoolStep, which adapts current to the load. Overall, these features help a lot on simple machines. Still, they do not replace an encoder where you must prove position.

Stepper motor vs servo motor

A stepper and a servo can both position a load, but they work differently. A stepper system holds current at rest and assumes the shaft followed the pulses. In contrast, a servo continuously monitors position through its encoder and adjusts current to match the load.

FeatureOpen-loop stepperClosed-loop stepperServo
Loop typeOpen, no feedbackEncoder feedbackEncoder feedback
Relative costLowestMiddleUsually higher
Best speed rangeLow to moderateStrong value below about 1,000 RPM (one source)High speed
Torque at speedFalls as speed risesFalls with speed; lost steps get correctedBetter torque at high speed
Tuning effortNo feedback tuningEncoder setup; see the drive manualGain tuning usually needed
Changing loadsCan lose steps without warningDetects and corrects deviationHandles changing loads best

Stepper motor or servo motor: which should I use?

  • Open-loop stepper: choose it for low cost, low to moderate speed, steady loads, and jobs where a missed step is not costly.
  • Closed-loop stepper: choose it as the middle ground when you must catch lost steps or need around 0.1° accuracy.
  • Servo: choose it for high speed, high torque at high speed, or loads that change during the move.

Closed-loop steppers come close to servo performance. However, servos still win where speed, torque at speed or changing loads matter. For the servo side of the choice, see our post on servo motors.

Sizing and selecting a stepper motor

Use the torque-speed curve, not holding torque

Catalogs usually list holding torque, which is the torque at standstill. However, running torque at speed can be 30–60% lower, depending on driver voltage and winding inductance. What matters is pull-out torque, the torque available at each speed before the motor loses sync. In other words, above that curve, the rotor stalls and drops steps with no warning.

Isometric illustration of several motors, a caliper, and a clipboard on a workbench, with the central orange motor fitted
Three motor housings differ in frame size, shaft length, and mounting flange style.

For example, a motor might offer 1.2 Nm at low speed while the load needs only 0.7 Nm during acceleration. At first, that looks safe on paper. Yet the move reaches 1,200 RPM, where the available torque has fallen, so the motor can still stall.

How do I size a stepper motor?

  1. Find the load torque from friction, gravity and process forces.
  2. Work out the acceleration torque from the total inertia and the fastest acceleration you need.
  3. Add them to get peak torque, then multiply by a 1.5 safety factor.
  4. Find the top speed in RPM for the move.
  5. Check the torque-speed curve at that speed, using the driver and supply voltage you plan to use.
  6. Check the inertia ratio, then confirm current, voltage and mounting fit.

Because the curve depends on the drive and voltage, a curve taken with a different drive can mislead you. So ask for, or read, the curve that matches your setup.

Check the inertia ratio

In this check, the inertia ratio compares the load inertia, as seen at the motor shaft, with the rotor inertia. One sizing source suggests keeping it under 10:1 for open loop and under 3:1 for aggressive acceleration. If the ratio is too high, a gearbox or pulley reduction lowers the inertia the motor sees.

Frame size does not tell you the torque

NEMA frame sizes such as 17 and 23 describe the faceplate size and mounting, not the torque. In fact, two NEMA 23 motors can differ by 50% in torque. So compare torque-speed curves, not frame numbers.

Resonance, vibration and noise

Why does a stepper motor vibrate or make noise at certain speeds?

First, every stepper has natural resonant frequencies. When the step rate excites one, the rotor rings around each step, so the motor vibrates, gets loud, loses torque and may stall. Sources describe the zone in different units. One puts torsional resonance in hybrid steppers between roughly 60 and 180 rev/min, while another puts it at typically 50–200 Hz for NEMA 17 frames. So treat these as rough guides, and find your own trouble speeds on the machine.

How to reduce stepper resonance

  • Microstepping: the first line of defence. For low-speed squeal, use microstepping finer than 1/8.
  • Anti-resonance compensation: enable it if your drive offers it.
  • S-curve profiles: they reduce excitation of low-frequency resonant modes.
  • Speed choice: accelerate through the resonant zone and avoid running at a resonant speed.
  • Mechanical damping: add damping to the shaft or load.
  • Closed loop: it corrects deviations, which helps with dynamic loads.

Controlling a stepper motor with Arduino

Controlling a stepper motor with Arduino is a quick way to build a prototype or test a motor. However, Arduino pins cannot drive the motor directly, because they cannot supply the winding current. Instead, you need an external driver, such as an A4988 or DRV8825, and a separate motor supply. Also, never run the motor from the Arduino’s 5 V pin.

Isometric illustration of a bench setup: a power supply, multimeter with probes, microcontroller board, and orange driver
Motor leads run from the module to the breadboard, separate from the supply leads.

Parts you need

  • An Arduino board
  • An A4988 or DRV8825 driver carrier
  • A 4-wire bipolar NEMA 17 stepper motor
  • A DC motor supply within the driver’s range (8 to 36 V for the A4988, per a common tutorial)
  • A 100 µF electrolytic capacitor for the motor supply
  • Hookup wire and a multimeter

A4988 to Arduino pin connections

A4988 pinConnect toNotes
VMOTMotor supply positiveExternal supply only
GND (next to VMOT)Motor supply negativeShare ground with the Arduino
VDDArduino 5VLogic supply only
GND (next to VDD)Arduino GNDCommon ground
STEPAny digital pin, for example pin 3One pulse per step
DIRAny digital pin, for example pin 4High or low sets direction
ENABLEDigital pin or left as your board allowsActive low
RESET and SLEEPEach otherTie together on the Pololu carrier
MS1, MS2, MS3Leave open, or set high or lowOpen means full step
1A, 1BMotor coil AOne coil pair
2A, 2BMotor coil BOther coil pair

The DRV8825 carrier uses a similar layout, but it names the mode pins M0 to M2. So check the Pololu DRV8825 carrier documentation before you wire it.

Wiring a stepper motor to a driver

To wire a NEMA 17 stepper motor to a driver, follow these steps with all power off:

  1. Identify the coil pairs. A typical bipolar NEMA 17 has 4 wires for two phases, A and B. On the resistance range, two wires that read low resistance form one coil.
  2. Connect coil A to 1A and 1B, and coil B to 2A and 2B.
  3. Wire the logic side: Arduino 5V to VDD, and Arduino GND to the GND next to VDD.
  4. Wire the motor supply to VMOT and GND, and tie its ground to the Arduino ground.
  5. Fit the 100 µF capacitor across VMOT and GND, as close to the driver as you can, with the polarity correct.
  6. Set the current limit before you run the motor.

Never plug or unplug the motor while the driver has power. Also, if the motor vibrates but does not turn, check the coil pairs and swap one pair.

How do I wire 6-wire and 8-wire steppers?

A 6-wire motor has two windings, and each has a center tap, which is a wire attached to the middle of the winding. To find the leads, measure resistance. The center tap reads half the resistance of the two end wires on the same winding. Then choose how to use it:

  • Unipolar drive: connect each center tap to the supply and switch each end to ground. Only half of each winding carries current at a time.
  • Bipolar, full winding: leave the center taps unconnected and use the two end wires of each winding. You get more low-speed torque and higher inductance.
  • Bipolar, half winding: use the center tap and one end of each winding. Inductance is lower, so speed is better, but the current rating differs.

An 8-wire motor has four separate half-windings, so you can join them in two ways. In series, the halves form one longer winding, which has higher inductance and a lower rated current. In parallel, the halves share the current, so the rated current is about twice the series value and inductance is much lower, which helps torque at higher speed. Because the rated current changes with the connection, set the drive current from the motor data sheet for the connection you choose. Also, follow the maker’s wiring chart for wire colors, since they vary.

Setting microstepping with the MS pins

The A4988 uses three logic inputs, MS1 to MS3, to pick the resolution. With the MS pins left disconnected, the driver runs in full-step mode. These are the settings, listed as MS1, MS2 and MS3 in order:

  • Full step: MS1 low, MS2 low, MS3 low.
  • Half step: MS1 high, MS2 low, MS3 low.
  • Quarter step: MS1 low, MS2 high, MS3 low.
  • Eighth step: MS1 high, MS2 high, MS3 low.
  • Sixteenth step: MS1 high, MS2 high, MS3 high.

Remember that each pulse now moves one microstep. As a result, you need more pulses for the same distance.

Arduino code options: Stepper and AccelStepper

You have two common library routes. The built-in Stepper library switches the coil wires directly, so it suits H-bridge boards wired to all four motor leads. With a STEP and DIR driver such as the A4988, you can instead toggle the STEP pin in your own loop or use the AccelStepper library in its driver mode. AccelStepper also handles acceleration and deceleration, which helps prevent stalls.

Converting steps per second to RPM

To find shaft speed, use this formula: RPM = pulses per second × 60 ÷ (full steps per revolution × microsteps per full step). For example, a 200-step motor at 1/16 microstepping needs 3,200 pulses per revolution. Then, at 1,600 pulses per second, the shaft turns at 30 RPM.

Stepper motor troubleshooting

Why is my stepper motor not turning, stalling or running hot?

SymptomLikely causeFix
Hums or vibrates but does not turnCoil pairs mixed up, loose coil wire, current too low, or start speed too highCheck pairs with a meter and swap one pair; set current to rating; lower start speed
Stalls during accelerationAcceleration torque above pull-out torqueLower acceleration, use an S-curve, add torque margin
Loses steps at speedTorque falls as speed risesCheck the torque-speed curve; raise supply voltage within the driver rating; use a larger motor or closed loop
Vibration at certain speedsMid-band resonanceEnable anti-resonance, use microstepping, accelerate through the zone, add damping
Squeal at low speedCoarse steppingUse microstepping finer than 1/8
Position drifts after stoppingMissed steps, low hold current or coupling slipRaise hold current, increase frame size or add a gearbox, tighten couplings, re-home
Rough motion, skipped microstepsCurrent limit too high for limiting to engageLower the limit so current limiting engages
Driver overheatsCurrent set too high or poor heat sinkingSet current to rating, add a heat sink and airflow, use hold current reduction
Motor too hot to touchCurrent above motor ratingCheck the current limit; some warmth is normal
Erratic motion or Arduino resetsNo common ground or supply noiseTie grounds together; fit the 100 µF capacitor near the driver

Checks to run first

  1. Current setting: confirm the limit against the motor rating and your board’s formula.
  2. Supply voltage: measure it under load and confirm it sits within the driver rating.
  3. Wiring: check coil pairs, tight terminals and a common ground.
  4. Acceleration: lower it and see if the fault clears.
  5. Load: turn the mechanics by hand with power off and feel for binding.

When to repair or replace a stepper motor or drive, and what to send us

Signs the problem is in the drive

  • No output to the motor, even though supply voltage is present
  • A fault light or fault code on the drive
  • Burn marks, a burnt smell or swollen capacitors
  • The same motor runs fine on a known-good drive
  • The drive trips or overheats at normal current settings

Signs the problem is in the motor

  • The two coils read different resistance, or one reads open
  • A winding shows a short to the frame on an insulation test
  • Rough or noisy bearings, or play in the shaft
  • The motor also fails on a known-good drive

With the leads apart and power off, a healthy stepper turns with a slight notchy feel. In contrast, it feels stiff when you short its leads together, which is normal.

How do I test coil and insulation resistance?

First, switch off and lock out the power, then disconnect the motor leads from the drive. Next, measure the resistance of each winding with a meter that reads low ohms. Compare the reading with the data sheet value. Also compare the two phases with each other, because a good motor reads nearly the same on both. A reading that is open, near zero, or clearly different from the other phase is a fail.

Then test the insulation. Use an insulation tester at the voltage the motor maker allows, and measure from each winding to the motor frame. Never run this test with the drive connected, since it can damage the drive. We cannot give one pass value for every motor, so use the maker’s limit. As a rule, a low reading, or one that keeps falling, means the winding is failing.

Signs the problem is in the mechanics

  • Binding in the lead screw, guides or bearings
  • A loose coupling or set screw
  • A worn or slipping belt
  • Position errors that appear after a load or friction change

When should a stepper motor or drive be repaired or replaced?

Repair makes sense when the unit is hard to source, is built into a larger machine, or has a fixable fault such as worn bearings or a failed component. On the other hand, replacement often makes more sense for a common, standard part. If the same fault keeps returning, re-check sizing before you install the same model again. Sometimes a closed-loop stepper or a servo is the better long-term fix.

What information do I need to get a replacement or repair quote?

  • Motor label data: maker, model or part number, frame size, step angle, rated current and wire count
  • Driver make and model, plus the controller type
  • Supply voltage, current limit and microstep settings
  • The symptoms and when they happen
  • The application: load, speed and duty cycle
  • Photos of the labels and the wiring

Also, Precision Electric can quote repair or replacement for stepper motors and stepper motor drives. For related topics, see our posts on servo motors, VFDs and motor basics.

Frequently asked questions

What is a stepper motor?

A stepper motor moves in fixed angular steps, commonly 1.8°, or 200 steps per revolution. A driver pulses its windings in sequence. As a result, you can position and hold it without an encoder when it runs open loop.

What is the difference between a stepper motor driver and a stepper motor controller?

The controller, which may be an indexer, PLC or microcontroller, decides how far and how fast to move. It then sends step and direction pulses. Next, the driver takes those pulses and supplies regulated current to the motor windings, including microstepping.

How do you control a stepper motor with Arduino?

First, connect the Arduino to a driver such as the A4988 or DRV8825 through its STEP and DIR pins. Next, power the driver’s motor input from a separate supply and set the driver current limit. Then send pulses with your own code or the AccelStepper library.

Why does a stepper motor lose steps or stall?

It stalls when load or acceleration torque exceeds the pull-out torque at that speed. Because torque falls as speed rises, holding torque is not a safe guide. To fix it, lower the acceleration, add torque margin, avoid resonant speeds, or move to closed loop.

Does microstepping make a stepper more accurate?

No. It raises command resolution and gives smoother motion, but it does not improve position accuracy. Under load, the shaft can deflect by more than the microstep size.

A stepper motor system works well when you size it from the torque-speed curve, set the driver current correctly and give the controller a sensible motion profile. When steps go missing, check current, voltage, wiring, acceleration and load before you blame the motor. If you need proof of position or more speed, move to a closed-loop stepper or a servo. For help choosing, repairing or replacing a stepper motor or drive, contact Precision Electric for a quote.