Sub topic 2
Motor types: permanent magnet, hybrid, unipolar, and bipolar
This chapter assumes you know how a stepper turns coil pulses into fixed steps, and that you can use Ohm's law and read a simple wiring diagram. It covers two separate ways to classify a stepper motor: by rotor construction (permanent magnet or hybrid) and by winding configuration (unipolar or bipolar). You need both to pick a motor and to wire it correctly to a driver.
Two independent questions
People often mix up these two classifications. They answer different questions.
- Rotor construction describes what the rotating part is made of. It decides the step angle, the torque, and how smooth the motion is.
- Winding configuration describes how the coils are connected and how many wires come out. It decides which driver you can use and how you wire it.
A hybrid motor can be wired as bipolar or unipolar. A permanent magnet motor can also come in either form. Knowing one tells you very little about the other.
Rotor construction
Permanent magnet motors
A permanent magnet (PM) stepper has a rotor made of a magnetized cylinder with alternating north and south poles around its edge. The stator coils attract and repel these poles as you energize them in sequence.
PM motors are cheap and simple. They are common in printers, small appliances, and the salvaged motors you find in old equipment. The drawbacks are coarse steps and low torque. Typical step angles are 7.5° to 15°, which gives only 24 to 48 steps per revolution.
Hybrid motors
A hybrid stepper combines a permanent magnet with toothed iron rotor caps. The rotor has two toothed sections, offset by half a tooth pitch, with a magnet between them. The stator also has teeth. Each coil step moves the rotor only a small fraction of a tooth pitch.
The result is a fine step angle, usually 1.8° (200 steps per revolution) or 0.9° (400 steps per revolution), with higher torque and better positioning accuracy than a PM motor. The NEMA 17 motors used in 3D printers and CNC machines are hybrid steppers. Hybrids cost more, but they are the default choice for most Arduino projects.
| Property | Permanent magnet | Hybrid |
|---|---|---|
| Typical step angle | 7.5° to 15° | 0.9° to 1.8° |
| Steps per revolution | 24 to 48 | 200 to 400 |
| Torque | Low | Medium to high |
| Cost | Low | Moderate |
| Typical use | Appliances, salvaged parts | 3D printers, CNC, robotics |
Steps per revolution is 360° divided by the step angle. A 1.8° motor gives 360 / 1.8 = 200 steps.
A third type, the variable reluctance motor, has an unmagnetized toothed iron rotor. It is rare in hobby work, so this tutorial does not cover it.
Winding configuration
Both PM and hybrid motors have two phases, called phase A and phase B. Each phase is one coil, or one coil with a center tap. How those coils are brought out to wires makes the motor unipolar or bipolar.
Bipolar motors
A bipolar motor has two independent coils and four wires: A+, A−, B+, and B−. To reverse the magnetic field in a coil, the driver must reverse the direction of current through it. That needs an H-bridge on each coil. An H-bridge is a set of four switches that lets current flow either way through a load.
Because the whole coil carries current at all times, a bipolar motor uses its copper fully. It produces more torque for a given frame size than the same motor wired as unipolar.
Unipolar motors
A unipolar motor has a center tap on each coil, which gives five or six wires. The center tap connects to the supply. The driver switches current through one half of the coil or the other, always in the same direction relative to the tap. This reverses the field without an H-bridge. A simple transistor array such as the ULN2003 can do the job.
The cost is torque. Only half of each coil carries current at any moment, so a unipolar motor produces roughly 70% of the torque of the same motor driven as bipolar. The 28BYJ-48, a common geared motor sold with ULN2003 boards, is a unipolar PM-type motor with 5 wires.
Comparing the two
| Property | Bipolar | Unipolar |
|---|---|---|
| Wires | 4 | 5, 6, or 8 |
| Center tap | No | Yes |
| Driver electronics | H-bridge per coil | Simple switches per half coil |
| Torque for the same frame | Higher | About 70% of bipolar |
| Typical driver | A4988, DRV8825, TMC2208 | ULN2003 |
Identifying the wires
The wire count tells you what you have, but the colors do not. Color codes vary between manufacturers, so check the datasheet first. If you have no datasheet, you can find the coil pairs with a multimeter.
4-wire motors
- Set the multimeter to measure resistance.
- Measure between two wires. If you read a low resistance, typically a few ohms, those two wires are one coil.
- If you read an open circuit, they belong to different coils. Try another pair.
- The remaining two wires form the other coil.
A second test needs no meter. Twist two wires together and turn the shaft by hand. If it feels noticeably harder to turn, those two wires are the same coil, because the shorted coil resists the voltage the moving magnet induces in it.
5- and 6-wire motors
A 6-wire motor has two coils, each with a center tap. Measure resistances between wires to find the groups. The two end wires of one coil show twice the resistance of an end wire to the center tap. A 5-wire motor has the two center taps joined inside the housing, so only one common wire comes out. You cannot split it, which limits how you can wire it.
Running a unipolar motor as bipolar
A 6-wire motor works with a bipolar driver in two ways.
- Leave the center taps unconnected. Use only the outer wire of each coil. The full coil is used, which gives the full bipolar torque. The driver current limit should follow the motor's rated current for the whole winding.
- Connect the end of each coil to the tap (half-coil). This uses half the winding. It has lower resistance and inductance, so it can reach higher speeds, at a lower current rating.
A 5-wire motor generally cannot be converted, because its two coils are joined inside the motor. An 8-wire motor can be wired in series (more torque at low speed) or in parallel (better high-speed performance), but this is outside the scope of this chapter.
Choosing a type
Use these decision rules.
- For a first project with a standard driver board, use a 4-wire hybrid bipolar motor, such as a NEMA 17 at 1.8°.
- For a very low-cost, low-torque project that uses a ULN2003 board, a 28BYJ-48 is acceptable.
- Avoid salvaged PM motors when you need accurate positioning or smooth motion.
- When the datasheet lists a unipolar motor, check that you can use it with the bipolar driver you own.
The next chapters build on this. The motor ratings determine the current limit, and the winding configuration determines how you wire the driver.
Exercise
A motor has six wires. A multimeter shows 3 ohms between wires 1 and 2, 1.5 ohms between wires 1 and 3, and 1.5 ohms between wires 2 and 3. Which wire is the center tap of this coil, and how would you connect this coil to an A4988 driver to get full bipolar torque?
Show answer
Wire 3 is the center tap, because it reads half the resistance of the full coil to each end (1.5 ohms to wire 1 and to wire 2, against 3 ohms across the ends). To get full bipolar torque, leave wire 3 unconnected and connect wires 1 and 2 to the driver's output pins for that phase. Repeat for the second coil, which makes up the other three wires.
Exercise
A hybrid motor has a step angle of 0.9°. How many steps does one revolution take, and how does that compare with a 1.8° motor at the same step rate?
Show answer
360 / 0.9 = 400 steps per revolution. At the same step rate, the 0.9° motor turns at half the speed in RPM of the 1.8° motor, because it needs twice as many steps for one revolution.