Hello guys, I wanted to ask what is the order of the coil of this stepper motor? It is orange, yellow, pink then blue? I'm a little bit confuse @@.
I put your thread title into a Google search and found this page (first hit).
groundFungus:
I put your thread title into a Google search and found this page (first hit).
So confusing >.< I found something different on the website
The wire colors don't mean much, and they can be different even for the same motor type.
You need to activate the motor coils in the correct order so it will step, and in the right direction. There are several ways to connect the coils that will work and many that will not work.
You can try different wire arrangements (using the same program) until it works correctly, but make sure that the power is off when you are changing the wire connections.
It is pretty simple to find and sort out the right connections without a multimeter:
0. Power OFF !!!!!!, only then disconnect the stepper from shield if stepper was already connected to driver shield
- With no wires are touching each other - turn the shaft of the stepper manually, feel the resistance
- Grab any wire and connect with another wire
- Connect those two wires by squeezing them with your fingertips, hold them while turning the shaft again
4a. If the resistance feels a bit stronger - BINGO, you identified one of the coil pairs
4b. If resistance is equal to step 3, grab one of the remaining two wires and turn the shaft again - If you found the first pair - the left overs are the second pair of coil wires
- Re-Connect the two coil pairs with your driver and start the stepper test program
7a. If the stepper turns "right" - you are done and continue with the stepper application you have in mind
7b. If the stepper turns "left" (= not in the direction you want it to turn) there are two options to get it "right":
a) reverse the direction signal in your Arduino software by changing HIGH to LOW or vice versa OR
b) leave the direction signal as is, switch off power !!!! and just reverse ONE of the coil pairs
Example: the driver connections are A1 = red, A2 = blue, B1 = black, B2 = green
Then just connect A1 with blue and A2 with red (OR - not AND - reconnect the Bs to B1 = green, B2 = black)
With a multimeter you can find the pairs by measuring the resistance, just repeat steps 2 - 5 by measuring wire pairs. The wires which form a pair are those, where the Ohm meter shows a low Ohm value when measuring.
ATTENTION: it is extremely important to deal with wiring (connecting or disconnecting) stepper motors that Power is OFF. Otherwise you might shoot your driver into electronic heaven.