If you have an unknown stepper motor, the first question is usually simple:

Which wire goes where?

Do not trust wire colors alone. Confirm coil pairs with a multimeter.

Unfortunately, the answer is not always printed on the motor. Some stepper motors have clear labels or part numbers, but many surplus, salvaged, kit, or loose motors do not. Wire colors can help, but they are not reliable enough to use by themselves.

This guide shows a safer way to identify a stepper motor before connecting it to a driver.

Start With the Wire Count

The easiest first clue is the number of wires coming out of the motor.

Common stepper motors have:

  • 4 wires
  • 5 wires
  • 6 wires
  • 8 wires

Each wire count usually points to a different internal coil arrangement.

Use these guides once you know how many wires your motor has:

  • [Identify a 4-wire stepper motor → /components/stepper-motors/identify/4-wire/]
  • [Identify a 5-wire stepper motor → /components/stepper-motors/identify/5-wire/]
  • [Identify a 6-wire stepper motor → /components/stepper-motors/identify/6-wire/]
  • [Identify an 8-wire stepper motor → /components/stepper-motors/identify/8-wire/]

If you are not sure whether all the wires belong to the motor, look closely at where they enter the motor body. Some motors may also have extra wires for brakes, encoders, thermal sensors, or other features.

Important: Do Not Trust Wire Colors Alone

Wire colors are useful clues, but they are not a wiring diagram.

Two stepper motors can have the same wire colors and still be wired differently internally. Some manufacturers use common color patterns, but there is no universal color standard that applies to every stepper motor.

This is especially important for 6-wire and 8-wire motors. These motors may support more than one wiring method, and using the wrong wires can cause the motor to vibrate, move unpredictably, overheat, or fail to turn.

Before connecting an unknown stepper motor to a driver, confirm the coil wiring with a multimeter.

[View common stepper motor wire color patterns → /components/stepper-motors/wire-colors/]

What You Need

To identify most stepper motors, you will need:

  • A multimeter with resistance or continuity mode
  • A few pieces of tape or small labels
  • A pen or marker
  • The number of motor wires
  • A safe stepper motor driver for testing
  • A suitable external power supply for the motor

Do not test an unknown stepper motor by randomly connecting wires to a driver.

Step 1: Count the Wires

Start by counting the motor wires.

4 wires

A 4-wire stepper motor is usually a bipolar stepper motor with two separate coils.

You need to identify the two coil pairs.

[Identify a 4-wire stepper motor → /components/stepper-motors/identify/4-wire/]

5 wires

A 5-wire stepper motor is usually a unipolar stepper motor with a shared common wire.

Small beginner stepper motors, such as many 28BYJ-48 style motors, often have 5 wires and are commonly used with ULN2003 driver boards.

[Identify a 5-wire stepper motor → /components/stepper-motors/identify/5-wire/]

6 wires

A 6-wire stepper motor usually has two coils, and each coil has a center tap.

These motors are often designed for unipolar operation, but many can also be used with bipolar drivers by ignoring the center tap wires.

[Identify a 6-wire stepper motor → /components/stepper-motors/identify/6-wire/]

8 wires

An 8-wire stepper motor usually has four separate coil windings.

This gives the motor more wiring options, including bipolar series, bipolar parallel, and sometimes unipolar wiring. It also means there are more ways to wire it incorrectly.

[Identify an 8-wire stepper motor → /components/stepper-motors/identify/8-wire/]

Step 2: Find the Coils With a Multimeter

Stepper motors work by energizing coils inside the motor. To identify the motor, you need to figure out which wires are connected to each coil.

Set your multimeter to resistance mode or continuity mode.

Touch the meter probes to two motor wires at a time.

If the meter shows continuity or a low resistance value, those two wires are connected through a coil or part of a coil.

If the meter shows no connection, those wires are probably from different coils.

As you find connected wires, label them.

For example, on a 4-wire motor, you might find:

  • Coil A: red and blue
  • Coil B: green and black

The colors are just examples. Your motor may be different.

Step 3: Label the Wires

Once you identify the coil groups, label the wires before moving on.

Use temporary labels such as:

  • A1
  • A2
  • B1
  • B2

For 6-wire or 8-wire motors, you may need additional labels such as:

  • Center tap
  • Coil A center
  • Coil B center
  • Coil C
  • Coil D

Do not worry if your first labels are not perfect. The goal is to keep track of what you have measured so you do not have to rediscover the same information repeatedly.

Step 4: Choose the Wiring Method

Some stepper motors have only one practical wiring method. Others can be wired in more than one way.

A 4-wire motor is usually connected as a bipolar stepper motor.

A 5-wire motor is usually connected as a unipolar stepper motor.

A 6-wire motor may be used as unipolar, or it may be used as bipolar by ignoring the center tap wires.

An 8-wire motor may be wired as bipolar series, bipolar parallel, or unipolar, depending on the motor and driver.

This is why identification comes before driver selection.

[Compare stepper motor drivers → /components/stepper-motors/drivers/]

Step 5: Choose the Correct Driver

A stepper motor driver sits between the microcontroller and the motor. The microcontroller sends control signals, and the driver handles the motor current and coil switching.

Common beginner and hobby drivers include:

  • ULN2003 driver boards
  • A4988 stepper drivers
  • DRV8825 stepper drivers
  • TB6600 stepper drivers

The correct driver depends on the motor wiring, motor current, motor voltage, and project requirements.

A small 5-wire stepper may use a ULN2003 board.

A 4-wire bipolar stepper often uses an A4988, DRV8825, or similar driver.

A larger motor may need a higher-current driver such as a TB6600.

Do not assume that a driver is safe just because the motor connector fits.

[Stepper motor driver guide → /components/stepper-motors/drivers/]

Step 6: Test Slowly and Safely

Once you have identified the wires and selected a driver, test the motor slowly.

Use a simple test program first. Do not start with a complex project.

A safe first test should:

  • Move slowly
  • Move only a small number of steps
  • Use a conservative current setting
  • Use the correct motor power supply
  • Keep the microcontroller and driver ground connected
  • Let you stop quickly if the motor or driver gets hot

If the motor vibrates but does not turn, the coil pairs may be wired incorrectly.

If the motor turns the wrong direction, you may only need to reverse one coil pair or change the direction setting in software.

If the motor gets hot quickly, stop and check the driver current setting, wiring, and motor rating.

[Stepper motor troubleshooting guide → /components/stepper-motors/troubleshooting/]

Quick Identification Guide

Wire CountCommon TypeWhat to IdentifyCommon Driver Types
4 wiresBipolarTwo coil pairsA4988, DRV8825, TB6600
5 wiresUnipolarCommon wire and coil wiresULN2003
6 wiresUnipolar or bipolar-compatibleCenter taps and full coil endsULN2003, A4988, DRV8825, TB6600
8 wiresFlexible multi-coil wiringFour separate coilsA4988, DRV8825, TB6600, other drivers

This table is only a starting point. Always confirm the motor wiring with a multimeter.

Common Symptoms of Incorrect Wiring

If the motor is not wired correctly, you may see one or more of these symptoms:

  • The motor vibrates but does not rotate
  • The motor only moves in one direction
  • The motor skips steps
  • The motor moves randomly
  • The motor makes noise but does not move
  • The driver gets hot quickly
  • The motor gets hot quickly
  • The microcontroller resets when the motor starts
  • The power supply voltage drops

These symptoms do not always mean the motor is bad. Many stepper motor problems come from wiring, driver settings, or power supply issues.

[Stepper motor troubleshooting guide → /components/stepper-motors/troubleshooting/]

Identification Before Connection

A good rule is:

Measure first. Connect second. Power last.

For an unknown stepper motor:

  1. Count the wires.
  2. Find the coil groups with a multimeter.
  3. Label the wires.
  4. Choose the wiring method.
  5. Choose the driver.
  6. Connect the driver.
  7. Apply power.
  8. Test slowly.

This approach prevents most beginner mistakes and makes it easier to debug problems when something does not work.

Next Steps

Choose the guide that matches your motor:

  • [Identify a 4-wire stepper motor → /components/stepper-motors/identify/4-wire/]
  • [Identify a 5-wire stepper motor → /components/stepper-motors/identify/5-wire/]
  • [Identify a 6-wire stepper motor → /components/stepper-motors/identify/6-wire/]
  • [Identify an 8-wire stepper motor → /components/stepper-motors/identify/8-wire/]

Or continue with one of these related guides:

  • [How stepper motors work → /components/stepper-motors/how-they-work/]
  • [Stepper motor wire color guide → /components/stepper-motors/wire-colors/]
  • [Stepper motor driver guide → /components/stepper-motors/drivers/]
  • [Stepper motor troubleshooting guide → /components/stepper-motors/troubleshooting/]