4th axis wiring

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!

There are people using the Y axis as a 4th axis A successfully. I realize your comment but am moving forward.

Here is the guy I got my info from.

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.

1 Like

So where do I find the wiring codes on this one?

Hey DaBooBear,

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

If your stepper has four wires, it says:

The trick is figuring out which wires make up the coil pairs. Here’s three ways to figure this out:

  1. 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.
  2. 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.
  3. 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.

– Source: Wiring Stepper Motors - buildbotics

Further Information

Good video: (Disassembles stepper motor and explains its use very well):
GreatScott!: Stepper Motors and how to use them

Very good video (not to be missed):
Stepper Motors Advantages and Disadvantages

Very good page:
Stepper motor - Wikipedia

Further Video watching:

Precision motion control: ODrive Servo? Trinamic Stepper? Chinese Hybrid?

1 Like

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.

1 Like

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).

1 Like

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+

I’m spicing spare wire from Onefinity. The picture it appears the wires should be
Blue to blue
Red to yellow
Green to green
Black to red
?

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 -?

From what I have learned, only switch the +/- of one coil pair, not between coil pairs.

Thanks TM. I’ll try it out and let y’all know. Probably this thread would help others if they aren’t sure.
1F ROCKS…

1 Like

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.

Do you have a multimeter by chance?

Yes. An old one but it works.

Perhaps see what voltage the driver is sending to the motor across the A and B pairs, measured at the M1 female moles at the controller.

1 Like