Dear all,
Thank you in advance for your kind help.
I am trying to drive this stepper motor (model GA12BY15, that is a BY15 motor with a gearbox) using an Arduino Nano. According to its specifications, this is a 5V, 2 phase stepper motor with 300 mA/phase current. I would like to power the entire device via the USB and avoid a second power supply for the stepper motor. This is the reason why I chose a 5V motor.
I am trying to drive it with an A4988 stepper driver, according to the scheme attached below. That is an adaptation from a tutorial I found (link for completeness https://www.lombardoandrea.com/pilotare-un-motore-passo-passo-con-arduino-e-il-driver-a4988/). The code I am trying to run as a test is super-simple, as it only changes the status of pin 3 every 4 seconds to let me check if the motor works:
void setup(){
pinMode(3, OUTPUT);
}
int status = LOW;
void loop(){
digitalWrite(3,status);
delay(4000);
status= !status;
}
I checked this with an LED and it is working.
Of course, instead, the motor does not and I have no idea where to start fixing it. Once connected and powered, the motor does not even mode a single step. The two coils seem to be fine, and I measured a resistance of 30 ohms each. Checking the voltage output of the motor wire pairs (A1-2 and B1-2 in the scheme below) I see that one stays still at around 4V, while the other is at 0. I tested more that one A4988 module and all behave the same, therefore I exclude this is due to a malfunction.
I have little to no previous experience with Arduino or electronics projects, therefore finding information and understanding what is wrong is very challenging for me. I would be grateful if someone could help me through this, and possibly also teach me something in the process.
Many thanks in advance!