Wiring of stepper motors
-
Hello
I have a fairly question I would like to ask. Just so that I am in sync with reality.
Moons Stepper MS17HD6P4200 Color wiring:
1 = Black
3 = Green
4 = Red
6 = Blue
There are 2 pairs 1 and 3, 4 and 6.Duet3 board
A2 = Black
A1 = Green
B2 = Blue
B1 = Red
There are also 2 pairs A2 and A1, B2 and B1.I think I have problems with pairs maybe, or it could also be the coding. But I have to exclude the fail. I will start with the wiring.
On the board the wiring I have is like this.
A2 = Black
A1 = Green
B2 = Red
B1 = BlueThe wiring is twisted on the Blue and the Red because of the way the Moons are structured.
What will happen if that kind of wiring is wrong?
My poorly experience with this, tells me that if I would take the wires like this and chance the Blue with the Red - the coils will work against each other. Am I right or have I just misunderstand the whole thing.
A2 = Black
A1 = Green
B2 = Blue
B1 = Red -
@heide the order of the wires in the pair doesn't matter. you could have green then black or black then green and it would still work the same way
-
@jay_s_uk can you elaborate on that?
Are you saying that I can place them like I want, and the polarity won't change. As long as I keep the pairs together? -
@heide yes, the main thing is keeping the pairs together. the order of the cables within that pair doesn't matter.
-
@jay_s_uk Okey I am confused about that, but I will be focusing on the coding then.
-
@jay_s_uk by the way, thanks
-
@heide Do not, under any circumstances, connect or disconnect the motor cable or any of its wires while the driver is trying to spin the motor! It is safest for the driver to have the power off when doing anything with motor wire connections.
The relative phases of the windings matter. If you connect one backwards the motor will just vibrate and won't turn. If that happens, just reverse one coil's connections to the driver and the motor should turn. You can set forward/reverse in the config file.
-
@mrehorstdmd I will never do anything with the power on :).
In regards to the polarity. If I can't get it to work in regards of the coding, I will look at the wires. I think I have to revers the Red with the Blue. I recall it to vibrate, and that was also the thoughts I had. I will look into this when I get home from work
-
@heide, do you have a multimeter that can measure ohms? If so, you can ignore all the coloring stuff, which is often inconsistent, and just measure it. This should work with any stepper and driver.
A stepper motor have two coils with a wire on each end of each coil (total of 4 wires).
With an ohmmeter you can identify the two pairs of wires (having connectivity between them). Once you identify the two pairs, connect one pair to A1, A2 and the other to B1, B2. If the motor turns in the opposite direction you want it to turn, swap between A1, A2 (or between B1, B2) and it will reverse the direction, or you can tell the Duet firmware to reverse the direction.
If you want to twist the wires (I don't), twist each pair of wires independently.
-
@zapta Thanks I have now change them all, Blue on Red vice versa. And it seems to do the trick.
I'm using:
G91
G1 H2 Y10 F3000
G1 H2 X10 F3000
G1 H2 Z200 F3000
And it works.But know I have problems with Homing.
Anyway thanks
I have to start a new tread, for the Coding, but before I do that, I'll give it one more go