I bought a 4th axis and have everything figured out except the wiring. The wire colors on my 4th axis stepper motor are red, blue, green, yellow. The wire colors on the Y1 which I’m splicing to are red, blue, green, black.
I connected red/red, blue/blue, green/green, yellow/black. I set all my Motor settings in configuration as per the directions in another post on here. They are correct.
When I discount Y1 and Y2, then connect the spliced cable the Y rotation does nothing. X and Z move correctly. So is the spliced wire connections wrong? Can’t figure it out.
Just a heads up. We do not support 4th axis. If this is done incorrectly, you may permanently damage your controller and void the warranty. Keep that in mind!
So you can’t go by colors you have to know what wire is the A+, A-, B+, and B- of the stepper motor you are using is and then wire those into the correct port on the motor connector in the controller.
I agree. I always find and print the data sheets from the controller and stepper motors I am using (Buildbotics and ? in your case), then confirm the colour connections from those.
you will always find them on the datasheet. If you get not datasheet with it, I would stay away from the item. However if the stepper has only four wires, it is possible to find out the wiring (see below).
A very good document for understanding how to wire stepper motors is
The trick is figuring out which wires make up the coil pairs. Here’s three ways to figure this out:
Find the documentation for the motor. Assuming you don’t already have it, read the model number off of the motor and then search for it on the Internet. With a little effort, it is usually possible to get a datasheet for the motor. The datasheet will usually specify the wires by A+, A-, B+, and B-, or at least show which wires by color attach to which coils.
If you can’t find the datasheet, but have an ohmmeter, measure the resistance between any two of the motor wires. If you measure a near short, then that pair makes up one coil, and the other two wires make up the other coil. If it is an open, then measure between the first wire and another wire and then to the fourth wire until you find a near short. Notice that I say near short because the coil is a long thin wire and has some resistance. Once the pairs are identified, then arbitrarily assign one pair as “A” and the other as “B” and arbitrarily assign one wire as “+” and the other as “-” within each pair. Then connect the wires as shown. There is a 50% chance that the motor will turn backwards when connecting this way. If it does turn the wrong way simply reverse one (not both) of the pairs and the motor will turn the other direction.
If you don’t have an ohmmeter, most people can identify the pairs by feel. Stepper motor shafts turn fairly easily when the motor coils are open, but are more difficult to turn when a coil is shorted. First, leave all four motor coils open and turn the motor shaft to get a feel for how hard it is to turn. Then twist any two wires together. If the motor is significantly harder to turn, then you have shorted one of the coils and identified a pair. If not, disconnect the two wires from each other and connect a third wire to the first wire. If the motor doesn’t get harder to turn, disconnect the third wire from the first wire and connect the fourth wire. One of the combinations should be harder to turn and that is one coil and the two wires make up the other coil. Once the pairs are identified, then arbitrarily assign one pair as “A” and the other as “B” and arbitrarily assign one wire as “+” and the other as “-” within each pair. Then connect the wires as shown. There is a 50% chance that the motor will turn backwards when connecting this way. If it does turn the wrong way simply reverse one (not both) of the pairs and the motor will turn the other direction.
If it’s not listed in the posting or in the Q/A of the item you could ask them or do the above. If that is the same one I bought and posted about then it is listed in the Q/A section. I think I also posted it in my write up.
From the Amazon link I found for this 4th axis, the wiring diagram shows red and green are one coil pair, and yellow and blue are the second coil pair. The Buildbotics website gives the connector positions for the motor A+/-, and B+/- (left side of molex is the B coil pair, right side is the A pair). As long as you don’t cross motor coil pairs you should avoid shorting your controller’s driver. Once you have one motor pair connected to one connector pair, then the second, you can test for direction. If direction is incorrect, reverse the wires, but only do this within one wire coil pair (not both and not between coil pairs).
Thank you all. TMTronto, that last comment may help but I think I have it set correctly. If you look At the picture I connected red/red, green/green, blue/blue and yellow/black. According to Nema 23 the wires are
Blue- B-
Red- B+
Green- A-
Black- A+
After testing with an Ohm Meter, this is what I found. Will try connection tonight or tomorrow. The Red/Green on the left and the Blue/Yellow on the right. If correct the rotation should move forward toward front? Correct? If opposite I should switch what? The two +s or a + and a -?
OK I’ve tried everything. Inserted is a picture of how it is supposed to be wired. After wiring it still didn’t do anything. I am completely stumped. I set my Configuration exactly as Roger said in his directions. Any ideas as what to try next? Oh, BTW, the stepper motor does work. I tested it. I’m trying to move it with the joy stick. Could that be it? Lost.