Hi I am Adarsh Anshuman and i have encountered a problem while making the arduino cnc https://youtu.be/S8YVlR_1hlo and i don't know where the problem is pls help me. The stepper motor (Nema 17) is vibrating whereas rotating pls help.
Welcome to the forum.
I don't understand the word 'whereas' in this sentence. Should this be 'instead' or 'whilst"?
Which motor - data sheet?
How do you power the motor?
While you are at it post the code following forum guidelines.
It means instead
Your problem has two common causes: trying to step too fast is one, insufficient power is the other.
Stepping too fast may be simply that, or a failure to start slow and accelerate.
For informed help, please read and follow the instructions in the "How to get the best out of this forum" post, linked at the head of every forum category.
OK thanks, now I can tell you what is wrong.
This happens because the phase coils are not wired correctly. It is hard to wire them up right first time because there is no standard colour for the wires. Fortunately the solution is simple.
Just swap over the connections to one of the coils, and you will find that it moves.
Of course you must take heed of what the others said about the speed you are trying to step at. Start off slow and then gradually increase the speed until you find out what it takes to get the motor moving. Once moving you can increase the speed even more. Sort of ramp up to a higher speed. There are some libraries that help you do this. When it comes to stopping if you are going very fast you need to ramp down the speed.
Surely swapping connections to one coil would just reverse the motor? Need to swap one set of connections to both coils?
No.
It puts it out of phase with the other coil.
To see how these motors work see my page:-
http://www.thebox.myzen.co.uk/Workshop/Motors_4.html
When ever I have had a motor that just vibrates swapping only one coil gets it moving. In fact it is always the first thing I do when wiring up a new motor whose coil connections I don't know.
Then you are back to the same phase miss match.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.