Hello everyone, I'am new with stepper motors and I'am having some trouble.
When I run the program, plug the power supply of the motor, motor just makes buzzing sound, sometimes turns a little, but practically not working.
I use NEMA 17 jk42HM48-1206, with 1.2A Current/Phase
For power supply I use 12V and 1A adapter which i checked with multimeter and it actually shows 17V and 0.5A Output.
Also I'am using a4988 driver module, to which I set Vref to 0.32 as I calculated (well i calculated for 0.6A current/phase) but its now irrelevant sence changing Vref only changes the volume of the sound that stepper motor is making.
I'am worried that i damaged the motor or the driver. Or maybe I'am just missing something and someone could help me.
Post your test code. One problem that we have seen is trying to spin the motor too fast from rest with no acceleration. Send a step every 100ms (10Hz) to test.
Tadelis:
Also I'am using a4988 driver module, to which I set Vref to 0.32 as I calculated (well i calculated for 0.6A current/phase)
Why are you setting it for 0.6amps when you have a 1.2amp motor?
If a power supply is supposed to be 12v and is actually 17v then I suggest it goes in the trash and you get one that works - who knows what is coming out of it? It could be AC.
That does NOT mean that there is anything wrong with using a 17v (or more) power supply. The A4988 can work with up to 35v IIRC.
Be VERY CAREFUL never to disconnect the wires between the motor and the stepper driver while the driver is powered up. The driver will be instantly destroyed.
MarkT:
Is that power supply regulated? It must be regulated to work with any electronics. A 12V regulated supply always measures 12V.
It's just AC to DC Power adapter, which should output 12V, instead it gives 17V. I'am new to this, so don't really know if it's specifies as regulated.
Okay, its really hard to admit it but I'am really dumb. As there are 4 pins (1B 1A 2A 2B) on A4988 for motor coil wires, I thought that I need to put coil wires respectively according to the letter (in my case black and green wire was on the same coil, so I put black and green to 1B and 2B, and blue with red to 2A and 2A). So as it turns out you have to look at number, not the letter, just changed those wires and works fine. I was reading some guys tutorial on stepper motors and there i had the wrong idea or just didn't understand it right. So anyway. Sorry for your wasted time, maybe someone will find this unfortunate situation useful, as I've read some people have the same problem.
Tadelis:
It's just AC to DC Power adapter, which should output 12V, instead it gives 17V. I'am new to this, so don't really know if it's specifies as regulated.
Look again at your power adapter. It has a voltage specification, as you quoted. It also has a current rating. The voltage should be 12 volts when something connected is drawing the rated current, and your project is not drawing that much current. You can't separate the two specifications.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.