I've been stuck on this for a few days now and I can't seem to get my stepper to work.
Last week, I bought a stepper motor (nema 17 size, 1.5A) and an A4988 driver to play around with. I hooked it all up and was working great. The other day I decided to remove the pins from the driver and solder wires to it instead, which I don't think damaged it. When I hook everything up, the motor just vibrates and doesn't turn (It looks like it's moving a step forwared then one back constantly).
I've seen lots of similar questions on this site and none of the answers written there work for me. I have tried: switching the polarity of one of the coils, tested for continuity on the coils, tried a different power supply and grounded the MS pins (so that the driver is in full step mode).
I've got the driver configured to deliver about 1A to the motor and I'm using an arduino to control the step pin.
Below is my circuit digagram (Please Note, the switch is actually a toggle switch which either connects reset to ground or 5v, and the step pin of A4988 is actually connected to pin 9 on arduino):
And here is my code for arduino:
void setup() {
pinMode(9, OUTPUT);
digitalWrite(9, LOW);
}
void loop() {
digitalWrite(9, HIGH);
delay(10);
digitalWrite(9, LOW);
delay(10);
}
Thanks for any help.
EDIT: Here is the link to some photos of my setup as requested by @Jakob Halskov http://imgur.com/a/QDqxh7W
EDIT 2: So after re-soldering alot of the connections on the driver (I also switched coil a and b around) and changing the 5v input pin on arduino (as suggested by @Jakob Halskov), the motor is now running, albeit with an extremely small amount of torque (It only takes a light touch to stop it). Later on I will test the motor at different speeds but I can't verify it works at the moment. The current delay is 10ms.
EDIT 3: Motor decided to stop working and vibrate again