Stepper Motor Information

Figure 1 from Swedish patent 188863, Anordning för åstadkommande av stegvis matningsrörelse. Device to accomplish a stepwise feeding movement., G. E. W. Svensson, Halmstad [Public domain], via Wikimedia Commons

A lot of detailed information about stepper motors can be found online and doesn’t need to be repeated here, e.g.:

Motor Types

Unipolar Steppers

Unipolar Steppers have a center tap on both coils. This allows for a simple drive electronics. You can keep the center tap at GND / 0V and alternately switch both ends of the coil to the operating voltage. Opposed to bipolar types there is no need to reverse the polarity of the driving voltage. A simple full step stepping sequence is shown in the figure below:


Step Sequence

However, since only half of a coil is energized at a time this leads to a less efficient operation compared to the bipolar scheme below.

Bipolar Steppers

Most modern steppers are of the bipolar type. For bipolar steppers the current through the coils A and B needs to be reversed from step to step. A simple full step stepping sequence is shwon in the figure below:


Step Sequence

Wiring types

The following figure shows usual wiring configurations for unipolar and bipolar steppers.


Wiring


  • Motors intended for bipolar operation are usually assembled in a 4 wire configuration.
  • The 5 wire configuration can be operated in unipolar mode only. The cheap geared stepper 28BYJ-48 is a popular representative of this motor type. 28BYJ-48

    Please note that the omnipresent stepper drivers DRV8825, A4998, TB6600… are bipolar types and can not be used for this kind of steppers.

  • The 6 and 8 wire configurations can be driven by unipolar and bipolar drivers. If you want to drive such a stepper in bipolar mode you can either connect the coils in series (high torque, low speed) or in parallel (low torque, high speed).


    Wiring

Mechanical Paramters

The National Electrical Manufacturers Association (NEMA) standardized motor frame sizes for the global “inch” market (NEMA ICS 16). In that standard the well known NEMA number denotes the outer flange dimensions in units of 0.1 inch. E.g, a NEMA17 motor has a square flange size of 1.7 inch. The following table lists typical dimensions and typical torque ranges for various NEMA motor sizes. In case you want to do some mechanical design, you find links to free 3d models in the last column of the table. (Please note: motors with NEMA numbers in parentheses are not part of the official standard).

NEMAFlange
inch/mm
Register
mm
Mounting
mm
Thread/
hole
Shaft
mm
Torque (typ)
Nm
3d data
(08)0.8 / 20.015.0/16.016/15.4M24.00.018 - 0.0363d
(11)1.1 / 28.022.023.0M2.55.00.03 - 0.143d
(14)1.4 / 35.022.026.0M35.00.05 - 0.403d
171.7 / 42.022.031.0M35.00.15 - 1.003d
232.3 / 56.438.147.144.5 mm6.35/80.40 - 3.403d
343.4 / 86.073.069.586.5 mm14.02.50 - 14.03d
424.2 / 106.055.588.888.5 mm19.012.0 - 30.03d

The torque in the table is given in the SI unit Nm (Newton * meter). Interestingly, torque seems to be one of the last playgrounds for obscure imperial units. There is lb-ft (pound-foot), oz-in (ounce-inches) dyne-cm and much more… Fortunately, useful online conversion tools exist.

Electrical Parameters

Lets have a look at a typical datasheet, defining the properties of a series of stepper motors (XY42STHXX, NEMA17, click on the table to open the full datasheet).

datasheet

The main electrical parameter of a stepper is its rated current given in col. 2. Together with the coil inductance (col. 4) it generates the magnetic field and thus the force which moves the motor. In static conditions this current is only limited by the resistance of the coils (col. 3), so that the rated voltage U (col. 1) is given by ohms law U = R * I. (E.g, for the first line in the table we get U = 24 * 0.4A = 9.6V). The holding torque is the torque the motor generates at standstill when operated with its rated current. The detent torque is the amount of torque the motor produces when the windings are not energized. The effect of the detent torque can be felt when moving the motor shaft by hand. (see here for details)

What parameters do I need?

  • First, determine the required motor torque. For a first estimation, the following might help: A motor with a torque of 1kg-cm (~0.1Nm) can lift a mass of 1kg attached on a 1cm lever. Equivalently, it can lift a mass of 0.1kg attached on a 10cm lever or a 0.2kg mass on a 5cm lever.

    torque

  • If you need the stepper for a high speed application, choose one with an inductance as small as possible. However, the smaller the inductance the larger the current required to generate the needed torque. You usually drive such motors with a constant current driver (DRV8825, TB6600…). Make sure that your driver is capable of providing the large current. If not, you might need to choose a motor with a higher inductance at the price of a lower speed (or a larger driver).

  • If you want to drive the motor with a constant voltage, look for steppers with a rated voltage equal to your driving voltage. Those motors typically have a high inductivity and need not much current. However, the large inductivity does not allow those motors to run very fast.

Example:
We are looking for a high speed, 2kg-cm motor for a DRV8825 driver. The torque requirement leads us to lines 5 - 10 in the datasheet above. Due to the speed requirement we look for the motor with the lowest inductance available which is the XY42S1H34-1334A (line 5) with 2.5 mH. It needs a current of about 1.3A which is fine for our driver.