Jan 02, 2024

Deducing Stepper Motor Wiring

There are a lot of fun projects you can do with stepper motors salvaged from old printers or disk drives. However, it isn't always clear how to connect to some strange motor with no markings or schematics. [Corvetteguy50] has a video showing his trick for working out the connections easily, and you can see it below.

The basic idea is simple. Using a special jig, he connects an LED across two random pins and spins the motor. If the LED lights, you’ve found a coil. You just don't know which coil, yet. You can also short two wires and note when you feel resistance when you spin the shaft.

This gets a little trickier with some motor types, for example those that have encoder outputs which won't do anything to drive the motor. Others have a case ground wire. Steppers have either 4, 5, 6, or 8 drive wires so if you have one more than any of those numbers it is likely a ground wire.

There are other ways to identify the pinout, especially if the motor has 4 or 6 wires. For a 4 wire motor, you can measure resistance until you find a pair that read a relatively low resistance. Then you simply have to guess which one is A and which is B. If you guess wrong, the motor will spin backward, as these are bipolar motors.

For a 6 wire device, the extra two wires are center taps and a 5 wire motor will have both center taps tied together. Measuring resistance between two wires should give you one of three readings. If you read an open circuit, you are on two different coils. If you read a resistance, you can record it and measure some more pairs. The resistance readings will cluster around two different values. The pairs with higher values are the coil ends. The remaining two wires are the center taps and you can tell which is which by which end they are connected to. Of course, in a 5 wire motor you’ll only have one wire left. Those motors can only be used in a unipolar configuration, but a 6 or 8 wire motor can be either.

If you want more information on these kinds of motors, we’ve covered them a lot over the years. Manually controlling one is pretty informative, too. There's also the classic Jones on Stepper Motors.