Stepper Motor Wiring

Stepper Motor Wiring: Diagrams for 4-, 6- and 8-Wire Motors

Find the coils with a multimeter, wire 4-, 6- and 8-wire motors, and connect a driver safely.

Key Takeaways

  • A stepper motor has two coils. Wiring is about finding which wires belong to which coil.

  • A 4-wire motor has no choices. A 6-wire motor has center taps. An 8-wire motor can be wired in series or in parallel.

  • Use a multimeter. Two wires of the same coil read a low resistance. Wires of different coils read open.

  • Mixing up the coils makes the motor buzz and shake instead of turn.

  • Switch the power off before you connect or disconnect a motor.

How to Identify the Coils (with a Multimeter)

Wire colors change from maker to maker. So do not trust colors alone. Check the datasheet first. If you have no datasheet, a multimeter will find the coils in a few minutes.

  1. Power off. Unplug the motor from the driver.

    A motor that is still connected can give false readings.

  2. Set the meter to resistance (ohms).

    Continuity mode also works. It beeps when two wires are connected.

  3. Touch two wires at a time.

    Try every pair. Write down which pairs show a reading.

  4. Group the wires.

    Two wires with a low reading are the ends of one coil. Wires with no reading belong to different coils.

What you seeWhat it means
A low reading, often a few ohmsThe two wires are ends of the same coil.
No reading (open circuit)The two wires are on different coils.
Half the reading of the full coilOne wire is the center tap of a 6-wire motor.

Engineer's tip: the shaft test

Twist the bare ends of two wires together. Turn the shaft by hand. If it feels stiffer and notchy, those two wires are ends of one coil.

This works because the turning magnet makes a current in the shorted coil. That current fights the motion.

Watch out: keep the readings honest

Do not measure with the driver powered. Do not touch the bare metal ends with your fingers while you read small values. Your skin changes the result.

4-Wire Stepper Motor Wiring

A 4-wire motor is the simplest. It has two coils and four wires. It is always a bipolar motor. That means the driver reverses the current in each coil to move the rotor, the spinning part of the motor.

Stepper motor wiring cover with coil diagrams for 4-wire, 6-wire and 8-wire motors
A 4-wire motor. Find the two coil pairs, then connect each pair to one driver output.
  1. Find the two pairs with the multimeter.

  2. Connect one pair to driver output A.

  3. Connect the other pair to driver output B.

  4. Power up and check that the shaft turns.

To reverse the direction, swap the two wires of one coil. You can also flip the DIR signal on the controller. Both work.

Engineer's tip

If the motor only buzzes and shakes, you probably put one wire from each coil on the same driver output. Re-check the pairs.

6-Wire Stepper Motor Wiring

A 6-wire motor has three wires per coil. The middle wire is the center tap. It connects to the middle of the coil.

Stepper motor wiring cover with coil diagrams for 4-wire, 6-wire and 8-wire motors
A 6-wire motor can run in bipolar mode or in unipolar mode.
  • Bipolar use. Use the two outer wires of each coil. Leave the center taps unconnected. Tape the bare ends so they cannot touch anything. This gives the most torque, because the whole coil is used.

  • Unipolar use. Connect both center taps to the positive supply. A unipolar driver then switches each outer wire to ground. Only half of a coil works at a time.

  • Half-coil use. Use one center tap and one outer wire. This gives lower inductance, which can help at higher speed. It also gives less torque. The current limit changes too, so check the datasheet.

Most modern drivers are bipolar. So the bipolar connection is the usual choice. Read more in unipolar vs. bipolar stepper motors.

Engineer's tip

Measure from each end to the center tap. You should see about half of the end-to-end reading. If you do not, you have not found a real center tap.

8-Wire Stepper Motor Wiring

An 8-wire motor has four half-windings. Each coil is made of two halves. You choose how to join them. This gives you more control over speed and torque.

Stepper motor wiring cover with coil diagrams for 4-wire, 6-wire and 8-wire motors
An 8-wire motor: two halves in series, or two halves in parallel.

SeriesParallel
How the halves joinOne after the otherSide by side
InductanceHigherLower
Current neededLowerAbout double that of series
Torque at low speedGoodSimilar
Torque at higher speedFalls soonerHolds up better
Best forLower current driversHigher speed, strong drivers

Pick the wiring that matches your driver. A driver with a small current limit works with series wiring. A stronger driver and a higher speed point to parallel wiring.

Watch out: join the right ends

The halves must help each other. If you join them the wrong way round, the two fields cancel. The motor feels weak or does not turn. Swap the two wires of one half, and try again.

Set the driver current for the wiring you chose. The datasheet lists a rated current for series and another for parallel.

Connecting a Motor to a Driver

The motor side is easy once you know the coils. The driver side needs a little care. Terminal names and pin order differ from driver to driver, so follow the driver label and the motor drawing.

Driver terminalMotor wire
Output A (A+ and A−)The two ends of coil A
Output B (B+ and B−)The two ends of coil B
Motor power (V+ and GND)Supply from your DC power supply, not from the motor
  1. Switch the power off.

    Do this before you plug or unplug the motor.

  2. Wire the coils.

    Coil A pair to output A. Coil B pair to output B.

  3. Set the current limit.

    Use the rated current from the datasheet. Read how to set the driver if you are not sure.

  4. Power up and test.

    Send a few slow steps first. Check that the shaft turns and that the direction is right.

Watch out: never hot-plug a motor

Do not connect or disconnect a motor while the driver is powered. The coils can create voltage spikes. Those spikes can destroy the driver.

Common Wiring Mistakes

MistakeWhat you seeFix
Wires from two coils on one outputMotor buzzes and shakes. It does not turn.Re-measure the pairs and rewire.
Hot-plugging the motorDriver fault or a dead driverAlways power off first.
Center tap wired in bipolar useDriver fault or a hot driverLeave the center taps open, and tape them.
Wrong current for series or parallel wiringOverheating or low torqueUse the datasheet current for your wiring.
Halves joined the wrong way (8-wire)Very weak motorSwap the two wires of one half.
Loose or poor connectorMissed steps or random noiseRe-crimp or replace the connector.

Take two minutes to check the list below before you power up.

  • I know which wires belong to coil A and which to coil B.

  • I chose bipolar, unipolar, series or parallel on purpose.

  • The driver current matches the datasheet for that wiring.

  • Unused center taps are taped and not touching anything.

  • All connectors are tight.

  • The power is off while I connect the motor.

How Apexwell Motor Can Help

A wiring problem is easy to fix once you know the coils. Not sure about a motor? Send us the model number or the wire colors. Our engineers can help you confirm the pairs.

Apexwell Motor makes hybrid stepper motors and matching drivers. We can check a motor and driver pair against both datasheets before you order.

Common pairs start here. Most NEMA 17 motors, such as the AW42HS series, work with the DM422 driver. NEMA 23 motors, such as the AW57HS series, and NEMA 34 motors, such as the AW86HS series, need more current. Look at the DM556 or the DM860H.

A closed-loop motor pairs with a closed-loop driver, such as the HS57. It also has an encoder cable, so follow the motor drawing for that cable. We add new drivers over time. Check the driver guide for the current list. Not sure of the motor size? Browse NEMA stepper motors by size.

Need a different connector, wire length or winding? Talk to an engineer.

Frequently Asked Questions

Can I use a 6-wire motor with a bipolar driver?

Yes. Use the two outer wires of each coil. Leave the center taps unconnected and tape the bare ends.

Should I wire an 8-wire motor in series or in parallel?

Use series for lower current and good low-speed torque. Use parallel for higher speed if your driver can supply about double the current.

Why does my motor vibrate but not turn?

Most often the coils are crossed. A wire from coil A sits on output B, or the other way round. Measure the pairs again. A low supply voltage or a current setting that is too low can also cause it.

How do I reverse the direction?

Swap the two wires of one coil. Or change the DIR signal in your controller.

Sources and Further Reading

  • Stepper motor (encyclopedia article); en.wikipedia.org/wiki/Stepper_motor

  • Stepper Motor Drive Circuit Basics, Texas Instruments; ti.com

  • Stepper Motor Basics, Pololu

  • Apexwell Motor datasheets and engineering practice

Quick Inquiry