Sub topic 15
Troubleshooting Common Stepper Motor Faults
Assume you know basic Arduino programming, Ohm’s law, wiring diagrams, and how to use a multimeter. Troubleshoot one change at a time. Disconnect motor power before moving wires.
A useful troubleshooting sequence
Start with the simplest checks:
- Confirm that the motor supply voltage reaches the driver.
- Confirm that the Arduino and driver share a logic ground.
- Check that the motor wires form two correct coil pairs.
- Check the driver’s current limit.
- Test at a low speed with a simple program.
- Increase speed and load gradually.
A stepper motor normally makes a small holding sound when powered. It should resist being turned by hand, but it should not become too hot to touch quickly.
Common symptoms and causes
| Symptom | Likely causes | First check |
|---|---|---|
| Motor hums but does not turn | Coil wires are paired incorrectly, one coil is disconnected, or speed is too high | Test coil pairs and reduce speed |
| Motor vibrates in place | One phase is open, phases are wired incorrectly, or pulses are poorly timed | Check continuity and wiring |
| Motor turns in the wrong direction | Direction logic or mechanical orientation is reversed | Change the `DIR` level or reverse the target |
| Motor misses steps | Excessive speed, sudden starting, insufficient current, or too much load | Add acceleration and reduce load |
| Driver or motor overheats | Current limit is too high, supply wiring is poor, or cooling is inadequate | Measure the setting and inspect airflow |
| Motion stops randomly | Loose connector, driver reset, electrical noise, or weak power supply | Monitor supply voltage and tighten connections |
Checking coils and wiring
A bipolar motor has two separate coils. Set a multimeter to resistance mode and measure between wire pairs. A coil shows a low, stable resistance. Wires from different coils show an open circuit.
Connect one coil to outputs A1 and A2, and the other coil to B1 and B2. Swapping the two wires within one pair reverses that phase’s polarity. It changes direction or affects the stepping sequence, but it does not create a valid new coil pair.
Keep motor wires away from sensitive signal wires when possible. Do not connect or disconnect a motor while the driver is powered. The voltage generated by a changing motor coil can damage the driver.
Testing pulse timing
Use a low speed first. This example gives the motor time to respond before testing faster motion.
const int STEP_PIN = 3;
const int DIR_PIN = 4;
void setup() {
pinMode(STEP_PIN, OUTPUT);
pinMode(DIR_PIN, OUTPUT);
digitalWrite(DIR_PIN, HIGH);
}
void loop() {
for (int i = 0; i < 200; i++) {
digitalWrite(STEP_PIN, HIGH);
delayMicroseconds(3000);
digitalWrite(STEP_PIN, LOW);
delayMicroseconds(3000);
}
delay(1000);
digitalWrite(DIR_PIN, !digitalRead(DIR_PIN));
}If this works slowly but fails at higher speed, the wiring is probably correct. The motor may lack torque at the higher speed, or the driver may require a longer pulse. Add an acceleration ramp instead of starting immediately at the final speed.
Exercise
Exercise
A motor vibrates but does not rotate. The supply voltage is correct, and the driver is not overheating. What should you check first?
Show answer
Check that the four motor wires form two complete coil pairs and that each pair is connected to the correct driver output. Then test at a lower speed.