|
Here are all the components needed to drive the 3 Nema 17 stepper motors with the TB 6560 Driver Card.
-Nema 17 Stepper motors (3);
-Stepper motor wiring harness (3);
-12V Power Supply;
-Printer Cable (25 pin DB male to male);
-TB 6560 Driver Card;
|
TB 6560 Driver Card
|
12V Power Supply
|
|
Printer Cable (25 pin DB male to male)
|
Nema 17 stepper motor with wiring harness
|
You will also need a soldering iron
|
|
Some tools needed are a voltmeter, wire strippers/cutters, and a small screwdriver
|
First, go ahead and plug the wiring harnesses into each of the stepper motors.
|
In order to determine which wires are grouped together, we can manually touch them together. Wires that when touched together make the motor difficult to turn, are in the same group. For example start with the red wire and touch it to the other wires one at a time.
|
|
Here I am trying red and brown together. The motor still spins freely. These two wires are not in the same group.
|
Red and white seems to make the motor difficult to turn. These two belong in the same group.
|
After trial and error with all the wires we have determined the two groups.
“Red - Yellow - White”
|
|
And “Black - Brown - Pink”
|
Because our driver board only uses a 4 wire connection, we will not be using the two “common” wires on the stepper motors. Taking a look at the Nema 17 motor documentation on the wiki, you can see that wires 2 and 5 are “common” wires. In this harness, that correlates to white and black.
|
Since we will not be using the “common” wires, we want to cut them to ensure they are not exposed. Shown here cutting the white wire.
|
|
Shown here cutting the black wire.
|
Now we need to strip a bit of insulation from the tips of all the other wires.
|
About ¼” should be plenty.
|
|
So the two groups now consist of:
“Pink - Brown” and “Yellow - Red”
|
Follow the same procedure for each harness.
|
We will now begin preparing the TB6560 driver card for the wires. Start by loosening the set screws of the terminals with a screwdriver.
|
|
It may be necessary to manually open the terminal with the screwdriver after loosening the set screw. Just insert the screwdriver into the terminal opening and give it a little twist.
|
We will now begin connecting the wires to the terminals. Pay attention to the groups that we determined earlier. As long as the wires are grouped together correctly, the order does not matter. (It can be dealt with in your software later). We began by attaching yellow to A+. Insert the wire all the way and tighten the set screw.
|
Give the wire a little tug to make sure you have a secure connection.
|
|
Since yellow and red are grouped together, we will attach the red wire to A-. Connect it the same way as before.
|
Now you can go ahead and attach the pink and brown wires to the “B” terminals.
|
The other two motors should be connected the same way as the first. Here they are all connected and ready to go.
|
|
Next we will prepare our 12V power supply.
|
We begin by cutting the 12V connector off the end.
|
Then strip off about 1” - 1.5” of insulation.
|
|
Under the insulation, we find two wires, a red and a black.
Red = Positive (+);
Black = Negative/Ground (-);
|
Then strip off about ¼” of insulation from the ends of each wire.
|
Next we will need to find a jumper wire of about the same size, and preferably red. A piece about 2”-3” should be plenty. Strip insulation from both ends.
|
|
Now, twist one end of the jumper wire with the red wire of the power supply.
|
Solder the two together as shown. Also twist and add some solder to the other 2 connections.
|
To connect the power supply to the driver board, we will start with the black(ground) wire. Connect the black wire of the power supply to the ground(-) connection of the power terminal on the driver board. There are two ground connections on the board. We only need to use one since they are both connected on the board. Insert the wire and tighten the set screw. Make sure you create a secure connection.
|
|
Next, connect one of the red wires from the power supply to the positive (+7) terminal on the driver board. Connect it the same as before.
|
Lastly, connect the other red wire from the power supply to the remaining (+12) terminal on the driver board.
|
Be sure all the motors are connected to their wiring harnesses.
|
|
This is what the completed set up should look like. While powered up, NEVER unplug any wire connections. This can cause a surge and harm some of the components. Always be sure to disconnect the power supply before altering any wiring.
|
Each pair of dip switches should be set the same. The switches can be arranged in whichever orientation you need. They control motor torque, motor step increment, and decay. Use the arrangement that works best for your situation. Shown is a common setup.
|
Plug the printer cable into your computer, as well as the driver board.
|
|
Start up Mach3 by clicking the “Mach3 Loader” icon.
|
Select the “zen6560-3x-1.25” profile and hit “OK”.
|
The Mach3 user interface should now be displayed.
|
|
Go to “cofig” in the toolbar and select “Ports and Pins”
|
Be sure the “Step Pin#” and “Dir Pin#” on your screen are the same as the one shown here. If so hit “OK”. If the motor is ever spinning the opposite direction of what you need, you can reverse it by “unchecking” “Dir LowActive” for the axis in question.
|
Mach3 should be now ready to go.If Mach3 is loaded up, and the “Reset” button has been clicked, the motors should be all locked up to hold their current position.
|
|
Be sure the power supply is set to 12V.
|
Next we will connect the power supply to a wall outlet.
|
A power strip can make it easy to quickly switch the power off if needed.
|
|
Go ahead and switch the power to “ON”.
|
Hitting the “tab” button on your keyboard will bring up the manual jog controls.
|
All the motors should now be working.
|