dev.nlited.com

>>

Stepper Motor Wiring

<<<< prev
next >>>>

2016-04-26 23:29:13 chip Page 1676 📢 PUBLIC

The JumpMtr project paid off today as I used it to verify the stepper motor wiring connections and to figure out why the motor performance is so poor.

First, this is the definitive stepper motor wiring table. With these connections the motor will turn clockwise when DIR is 1 and microstepping works.

PinA3967CoilNEMAWire
1OUT2A+BBRED
2OUT2B-BDBLUE
3OUT1A+AABLACK
4OUT1B-ACGREEN
JumpMtr motor wiring diagram.  A3967 block diagram  NEMA stepper motor coil wiring. 

April 26 2016

Testing out the possible wiring combinations. Just to make sure, I tested every possible wiring configuration using my JumpMtr board. The A3967 is running in full step mode (MS1/MS2= 0/0).

Testing the stepper wiring possibilities.

The normal wiring also works for half-step mode (MS=01) but quarter and eighth step modes (MS=10,11) stall. I tried all four wiring combinations with no effect. After much anguish I found that the MTR_DIR pin was defaulting to an input, which for unknown reasons causes the quarter and eighth step modes to fail. Setting MTR_DIR as an output brought these microstepping modes to life.

This experiment also confirmed that my motor wiring is correct.

While investigating the microstepping modes, I put the scope on the motor output pins. I expected some motor noise, but the signal is absolutely FUGLY.

JumpMtr motor output JumpMtr motor output noise

Aha! The MTR power line is fugly because I forgot the big 47uF cap on the motor supply line to smooth out the motor noise! With all the voltage reflections from the motor bouncing straight back into the controllers, its a wonder the signal ever rises above the noise. This explains a lot, including why the motor motion is so glitchy and why it won't run faster than one step every few milliseconds.



WebV7 (C)2018 nlited | Rendered by tikope in 71.394ms | 3.142.12.186