I am using Arduino program, Arduino Nano and driver DRV8825 to control the stepper motor (microstep mode). For one year, all of things were fine and motor was working for different steps (20,30,...100 steps) but now the stepper motor couldn't work fine. for example when I upload 10 steps it only moves for 6 steps. in fact sometimes it works but sometimes it can not work.
I am sure that the Arduino Nano and USB cable don't have a problem (because I am using LCD to show steps and it works fine).
Also I have checked the power supply it is fine.
and the wiring doen't have a problem becuse motor can move.
Do you have any suggestion to solve the problem? does driver have a problem?
Get your volt meter out and see if all the voltages are proper. Do you have screw terminals or soldered connections for all wires? Surely you are not still using a breadboard.
Paul
Solder or screw terminals as mentioned by @Paul_KD7HB. A breadboard isn't intended for the kind of current steppers require. It's quite likely that you have burned out some tracks on it.
actually, I have put Arduino, Driver, and capacitor on the breadboard. Now do I remove the the breadboard and connect all of them with soldering or screw terminal?
Ultimately, if this setup is intended to last, the breadboard should go. However, they're fine for logic level circuits, so for testing, you can leave the Arduino on it. The high current lines (power and stepper connections) should have better connections.
The CNC shield V4 will take a Nano and 3 driver modules (A4988 or DRV8825) and includes connections for 3 limit switches and other peripherals. It makes connecting steppers to the Nano easy and reliable. The shield is also Grbl compatible.