Open Source Robotics

A curated collection of high-quality open source robotics projects, tools, and software to propel the robotics community forward.

Microstepping

  • Also called: micro-stepping
  • Category: Actuation & drivetrain › Motors
  • Tags: stepper-motors, motor-drivers, actuation, embedded, motion-control

A stepper motor drive technique that sets intermediate current levels in the motor phases so the rotor stops between full steps, giving finer resolution, smoother motion and less noise.

Definition

Microstepping is a way of driving a stepper motor in which the driver divides each full step into smaller increments by controlling the ratio of currents in the motor windings. In full-step mode a two-phase stepper's windings are switched fully on or off, and the rotor jumps between a fixed set of positions, commonly 200 per revolution for a 1.8° motor. In microstepping the driver supplies currents that approximate a sine and a cosine across the two phases, so the magnetic field, and with it the rotor's equilibrium position, rotates in smaller increments. The motor itself is unchanged: microstepping is a property of the driver and its current control, not of the stepper motor's construction. Typical settings divide each full step into 2 to 256 microsteps; at 16 microsteps per full step, a 200-step motor has 3200 commanded positions per revolution.

The main practical benefit is smoothness rather than precision. Full-step and half-step drive produce torque ripple and abrupt motion that excite mechanical resonances, causing vibration, noise and in some cases lost steps at particular speeds. Sinusoidal phase currents reduce these effects, which is why microstepping is standard in 3D printers, camera sliders and quiet robotic mechanisms. Modern driver chips regulate each phase current with a chopper circuit and can interpolate coarse step inputs into much finer internal microsteps, and some use voltage-mode chopping schemes that run very quietly at low speeds.

The extra resolution has limits. Real motors do not respond linearly to the phase currents, so microstep positions are not evenly spaced, and the accuracy of each position is limited by the motor's construction. Under load the rotor lags the commanded field angle, and the incremental torque available for a single microstep is a small fraction of holding torque, so a load can absorb several microsteps before the rotor moves. Higher microstep settings also require proportionally higher step-pulse rates from the controller for the same speed. Microstepping is still open-loop control of the field angle: without an encoder the controller does not know if steps were lost.

Why it matters

Microstepping lets inexpensive stepper motors drive mechanisms smoothly and quietly, which is a large part of why steppers are common in hobby robots, 3D printers and desktop arms. Understanding what it does and does not improve helps engineers avoid mistaking commanded resolution for real positioning accuracy.

Key applications

  • 3D printers, CNC machines and laser cutters
  • Camera sliders, pan-tilt heads and telescope mounts
  • Low-noise mechanisms for robots in homes and public spaces
  • Desktop and hobby robot arms
  • Laboratory automation such as syringe pumps and stages

In practice

A designer builds a slow-moving, quiet kinetic robot for a living room using small stepper motors to bend and rotate its parts. In full-step mode the motors hum audibly and the motion looks jerky, so the designer configures the drivers for 16 microsteps per step with internal interpolation and a quiet chopping mode. The microcontroller now has to generate 16 times more step pulses for the same speed, so step generation is moved to a timer interrupt. Because the mechanism has noticeable friction, the designer checks real position with a reference switch at startup and adds a small gear reduction instead of relying on microsteps for fine positioning.

Common misconceptions

  • More microsteps mean proportionally better accuracy — microstepping increases commanded resolution and smoothness, but positions are unevenly spaced and the load can absorb several microsteps without moving the rotor
  • Microstepping makes a stepper a closed-loop actuator — it is still open loop; detecting missed steps requires an encoder or another position sensor
  • Microstepping greatly reduces torque — the peak torque is close to that of full stepping, but the incremental torque available for a single microstep is small

Who should know this

  • Hobbyists and makers building stepper-driven robots and printers
  • Mechatronics engineers selecting motors and drivers
  • Embedded engineers writing step-generation firmware
  • Designers of quiet robots for homes and public spaces

Related technologies

  • Stepper Motor Driver ICs
  • Chopper Current Control
  • Closed-Loop Steppers
  • Rotary Encoders
  • Step/Direction Interface

Related terms

  • Stepper Motor
  • Servo Motor
  • Encoder
  • Actuator
  • Gear Ratio
  • Backlash

Related projects

  • Microduck: Pollen Robotics' $399 walking duck robot: open-source software, closed hardware
  • Ruckig: Real-time jerk-constrained time-optimal trajectory generation for robots and machines
  • OpEn (Optimization Engine): Embedded nonconvex optimization solver in Rust for real-time MPC on robots
  • micro-ROS: ROS 2 for microcontrollers, enabling embedded devices in distributed robot systems
  • Carbon Aeronautics Quadcopter: From-scratch quadcopter build that teaches aeronautics, electronics and programming

Videos

  • Microstepping in bipolar stepper motors: Texas Instruments
  • Stepper Motor MicroStepping? Things to keep in mind when doing it…: Brainy-Bits

This website requires JavaScript to function properly. Please enable JavaScript to explore our collection of open source robotics projects.