PDA

View Full Version : Stepper Motor Wiring



ravihotwok
14-07-2017, 01:50 PM
Hello,

I am having to rewire my stepper motors, the motors themselves have 4 wires:

red
yellow
blue
green


Are these all the same on each motor? Im just not sure which pins to wire them too on the control box you see

Zeeflyboy
14-07-2017, 02:51 PM
not always the same I'm afraid. I've had to switch single pairs of wires around before.

Do you have a model number on the stepper so you could google search a manual?

ravihotwok
14-07-2017, 02:55 PM
Manual? christ chance would be a fine think lol.

Motors have this labelled on them:

Anchuan
57HD0401-15SB
1.8 2OA N1606

Will it do any damage to the circuitry in the control box or the stepper motor if I just try trial and error ? or would it be impossible to work out?

Cheers

Zeeflyboy
14-07-2017, 03:00 PM
Do you own a multimeter?

You just need to match your pairs really then polarity can be trial and error... see this guide here if you need help with how to do it:

http://42bots.com/tutorials/stepper-motor-wiring-how-to/

ravihotwok
14-07-2017, 03:04 PM
Mate that is very very helpful. Im just trying to sort some 4 core cable out from somewhere then I will get investigating.

Cheers pal

Zeeflyboy
14-07-2017, 03:08 PM
No problem.

Just actually found this which is perhaps a slightly clearer explanation (especially regarding direction) and gives some other techniques if you lack a multimeter... though I'm not sure I would trust the complete trial and error one with expensive drivers/motors, but that's just my paranoia probably!

http://reprap.org/wiki/Stepper_wiring

john swift
14-07-2017, 10:33 PM
you need to use a multimeter ( or a simple battery & bulb continuity tester )to confirm which two wires goes to each motor winding

if you find you have 3 ohms or so between the red & yellow wires connect them to A+ and A- on your driver

you should then find you that you have 3 ohms or so between the
blue & green wires which you should connect them to B+ and B- on the stepper driver

not all stepper drivers have the required fault protection to survive any connection between the A & B terminals

if you find the motor runs the wrong way you can either change it in the controllers software - eg mach 3 changing the direction pin from active high to active low
or
reversing the wires on one winding
eg
changing from
red to A+ and yellow to A-
to
red to A- and yellow to A+

John

Desertboy
15-07-2017, 10:32 AM
Take any 2 wires from the 4 and cross them together and try and turn the motor shaft. When you feel resistance you have a matched pair. (The stepper's are working as a generator)

Then wire 2 pairs next to each other in the 4 pin connector.

Try it if the motor's run the wrong way either swap the wires around or change the setting in the firmware to invert axis.

ravihotwok
17-07-2017, 08:54 AM
thanks very much, very helpful, also is this cable ok to use for my wiring:
http://uk.rs-online.com/web/p/multicore-industrial-cable/6604037/

Clive S
17-07-2017, 09:58 AM
thanks very much, very helpful, also is this cable ok to use for my wiring:
http://uk.rs-online.com/web/p/multicore-industrial-cable/6604037/I would go for a screened cable like 4 core CY. https://quickbit.co.uk/Cable/CY-Cable/CY-Cable-4-core/CY-Cable-0-75mm-4-core

ravihotwok
17-07-2017, 10:00 AM
hello Clive mate,
yes now that I have been doing a bit of readying screened seems to be the preferred cable to reduce interference or something. Im trying to also find a cable with the same colours as my existing cable (red, blue, green and yellow)

Clive S
17-07-2017, 10:04 AM
hello Clive mate,
yes now that I have been doing a bit of readying screened seems to be the preferred cable to reduce interference or something. Im trying to also find a cable with the same colours as my existing cable (red, blue, green and yellow)

I doubt you will find one the cy cable has 3 black cores and a green/yellow one but the black one's are numbered about every 50mm

Desertboy
17-07-2017, 10:19 AM
Don't worry about the colours of the wire, as long as you connect the wires correctly colour is irrelevant to the home builder.

If this was a commerical product you were reselling you might have issues with colour.

ravihotwok
26-07-2017, 10:41 AM
Cheers mate :-)