Hello,
I use an Arduino Uno R3, a stepper motor and 2 different A4988 drivers. A Big Easy driver and a cheap driver that has GY-4988 written on it. The Big Easy works exactly how I want and the torque is very good.
My problem is with the GY-4988. It only works in full step resolution and the motor has almost no torque. If I wire the MS pins to the VDD, the motor stops and vibrates. It feels like it is going one step in one direction and the next one in the opposite direction. If I wire the MS pins to GND, nothing happens and the motor works at full step.
I would like to make the cheap driver work like the Big Easy. 1/16th with the torque the Big Easy has.
I am using this code for testing
void setup() {
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
digitalWrite(8, LOW);
digitalWrite(9, LOW);
}
void loop() {
digitalWrite(9, HIGH);
delay(1);
digitalWrite(9, LOW);
delay(1);
}
If I press the arduino reset button with the Big Easy, the motor stops and if I release the reset button it starts spinning normally. With the GY-4988, when I press the reset button the motor stutters a bit and when I release it, it spins in the opposite direction. Also, with the GY-4988 I can change the spinning direction by simply turning the motor shaft with my hand.
Another difference is when I power the driver but don't power the Arduino. The Big Easy holds the shaft in place and I can't spin it with my hand. The GY-4988 does not. It's like the motor is not connected to anything.
I wired the GY-4988 like this:
Also, it seems that the step and dir pins have to be reversed with the 2 drivers. Step on the GY-4988 is dir on the Big Easy and Dir on the Gy-4988 is Step on the Big Easy (this info I am not 100% sure about).