If your stepper motor isn't moving smoothly, it could be that you haven't wired it up properly. Not all motors are the same, make sure you check the data sheets to see how it should be wired to the controller.
If you can't find a datasheet, then you can measure the resistance across different leads to find the coils. On all the Nema 17s I have seen, there are 6 leads, and the 2nd and 5th leads are left generally left open. Then you can measure the resistance between the other leads to find the coils. If the leads you are testing show an open loop, then those are not on the same coil.
Once you have found the coil, it doesn't matter which lead goes to where; ie A and A' can be swapped without any adverse effects.
Let me know if you have any questions. I'm happy to help.
#shorts
![](https://i.ytimg.com/vi/tOx4nRg1OKM/maxresdefault.jpg)