Electric Motors HubWrite for us
Servo & Stepper Motors

How to Match Stepper Microstepping to Drive Resolution

Published 5 min read

A stepper motor connected to a motion control board in a workshop
Quick answer

Match stepper microstepping to drive resolution by selecting the correct microstep ratio based on required step size. Higher ratios reduce mechanical steps but do not increase actual physical resolution. Verify the setup by measuring position error against a reference scale.

Key takeaways
  • Microstepping divides the electrical steps into smaller increments but does not change the physical pitch of the motor rotor.
  • Match the microstep ratio to the required step size and the drive's resolution limits.
  • Verify the final resolution with a linear scale or encoder feedback.
  • Excessive microstepping can increase current ripple and reduce effective torque.

Prerequisites: What You Need Before Configuring

Before touching the drive settings, confirm the physical step angle of the motor and the required position resolution for the application. A standard NEMA 17 stepper often has 200 full steps per revolution. If the application requires 0.01 degrees per move, the raw 1.8 degree step is not sufficient. You need microstepping.

Gather the drive manual, the motor nameplate data, and the required step size. Note the maximum current the drive can supply and the motor’s rated current. These values define the torque envelope, which interacts with microstepping. If the drive cannot support the selected microstep ratio, the resolution will be limited by the driver electronics, not the setting you enter.

Step 1: Define the Required Position Resolution

Calculate the maximum step size allowed by the application. If the machine must stop within a 5 micro-meter tolerance on a 100 mm stroke, the resolution requirement is strict. Determine if the requirement is based on the motor step or the final output via the lead screw or gearbox. The lead screw pitch and gear ratio change the effective resolution at the tool tip.

This step sets the target. If the target is 1.8 degrees or larger, full stepping may suffice. If it is smaller, microstepping is required.

Step 2: Check the Drive Microstepping Capability

Open the drive parameters. Most industrial drives support ratios such as 1, 2, 4, 8, 16, 32, or 64. The manual will list the maximum supported ratio. If the drive only supports up to 32, setting 128 in the software will either reject the command or default to the highest supported value.

Some older drives use a microstepping filter that improves smoothness but can introduce small phase errors. Check the datasheet for notes on microstepping accuracy.

Step 3: Select the Microstep Ratio

Choose the smallest ratio that meets or exceeds the required resolution. Do not select the highest ratio by default. A 1.8 degree motor with 32x microstepping gives an effective step size of 0.05625 degrees. If the application requires 0.1 degrees, 16x is sufficient.

Using a higher ratio than needed increases the drive’s current ripple. The current waveform must be sampled more often. This can cause audible noise and slightly reduce the available torque. Match the ratio to the need.

Step 4: Verify the Drive Resolution Limit

The drive has a resolution limit based on its internal current controller and position counter. Even if the motor supports 64x microstepping, the drive may only resolve up to a certain number of counts per revolution. Check the drive’s step pulse output or the internal counter resolution.

If the drive outputs pulses at a fixed frequency, the microstep ratio must divide evenly into the pulse train. A mismatch causes dropped pulses or jitter.

Step 5: Configure the Drive Parameters

Enter the microstep ratio in the drive. Set the microstepping filter if available. Enable the filter to reduce torque ripple. Some drives have a filter strength setting. Start with the default. Adjust only if you hear audible whine or feel vibration in the shaft.

Set the direction pin and enable pin if your controller uses them. Make sure the step and direction wiring is secure. A loose connection at this stage will cause random step loss that looks like a resolution error.

Step 6: Test with a Linear Scale

Mount the motor to a test fixture with a linear scale or a precision dial indicator. Run the motor through a full revolution. Measure the actual displacement at the output. Compare it to the expected value based on the microstep ratio and lead screw pitch.

If the measured step size is larger than the calculated value, the drive may be dropping pulses. If it is smaller, the gear ratio may be wrong. Record the error. This data tells you if the resolution is real or just a setting.

Step 7: Check Torque and Current Ripple

After verifying resolution, check the torque. Run the motor at the minimum speed and maximum speed. Observe the current draw with a clamp meter or the drive’s built-in monitoring. Excessive microstepping can cause the current to oscillate around the set point.

If the current ripple is high, the motor may heat up or lose torque at low speeds. Reduce the microstep ratio if the application allows. This restores torque margin.

Common Mistakes

  • Setting microstepping higher than the drive supports. The drive ignores the extra setting.
  • Ignoring the lead screw pitch. The motor resolution is not the tool resolution.
  • Using full stepping when the application needs finer moves. The steps are too large for the tolerance.
  • Not verifying with a physical scale. A correct setting does not guarantee a correct output.
  • Forgetting that microstepping reduces maximum torque. The effective holding torque drops as the ratio increases.

Final Verification

Run a closed-loop test if the application uses an encoder. Compare the encoder position to the commanded position. If the error is within the required tolerance, the setup is correct. If the error grows with speed, the drive is not keeping up.

Document the settings. Record the microstep ratio, the filter setting, and the measured step size. This baseline helps when troubleshooting later. If the machine loses steps during rapid jogs, you will know the resolution setting was not the cause.

How Microstepping Affects Torque and Ripple

Microstepping changes the current waveform. In full stepping, the current jumps between discrete values. In microstepping, the current varies continuously between phase windings. This smooths the torque. However, the maximum torque is lower.

The reduction is not linear. A 32x setting may lose a small percentage of peak torque. The holding torque loss is usually larger than the peak torque loss. If the application requires high holding torque at low speed, use a lower microstep ratio. If smoothness matters more, use a higher ratio.

Reference Table for Common Ratios

Microstep Ratio Effective Steps per Rev (1.8 deg motor) Effective Step Size (deg) Typical Use
1 200 1.8 Low resolution, high torque
2 400 0.9 Basic motion control
4 800 0.45 General positioning
8 1600 0.1125 Fine adjustment
16 3200 0.05625 Precision tasks
32 6400 0.028125 High resolution, lower torque

When to Use Closed-Loop Steppers

Open-loop stepper drives rely on the microstep setting for position. If a step is lost, the controller does not know. Closed-loop drives use an encoder to verify position. The encoder feedback corrects small errors caused by microstepping resolution.

If the application demands high precision and the microstep ratio is near the drive limit, consider a closed-loop setup. The encoder provides a finer resolution than the microstep setting. The microstep setting still matters for smooth current, but the position accuracy comes from the feedback loop.

Troubleshooting Resolution Issues

If the position is off, check the step pulse count. Use a logic analyzer or an oscilloscope to count the pulses per revolution. If the count matches the microstep ratio, the drive is working correctly. If the count is low, the controller is not sending enough pulses.

If the position is noisy, check the current ripple. A noisy step size often means the drive is struggling with the selected ratio. Reduce the ratio or increase the drive’s current capability.

Final Notes

Match the microstep ratio to the required resolution and the drive’s limits. Verify with a physical scale. Check torque and ripple. Document the settings. This process ensures the stepper motor delivers the position accuracy the application demands.

Frequently asked questions

Does increasing microstepping increase actual resolution?

It increases the number of electrical steps per revolution. It does not change the physical pitch of the rotor teeth. The actual position resolution is limited by the mechanical step angle.

What is the best microstep ratio for a stepper motor?

The best ratio is the smallest one that meets the required position resolution. Higher ratios reduce torque and increase current ripple.

Can I set a microstep ratio higher than the drive supports?

The drive will ignore the setting or default to the maximum supported ratio. Check the drive manual for the supported values.

How does microstepping affect holding torque?

Holding torque decreases as the microstep ratio increases. The reduction is usually more pronounced at low speeds than at high speeds.

Do I need an encoder to use microstepping?

No. Microstepping works in open-loop mode. An encoder is only needed for closed-loop feedback to correct position errors.