I am here sharing this problem that is happening to me. I have a printer mounted with Arduino and RAMPS 1.4 shield with A4988 drivers.
I was trying to calibrate the printer when I came across a problem with the X-axis. When I put the axis to move 50 mm, it will move and stop midway. At first, I thought it was a problem with the stepper, however, I had the idea of testing the driver that is on the X-axis on another axis. I put the driver on the Z-axis and the error is now on the Z-axis. So I concluded that the problem is the stepper driver. How can I fix this? (Remember that the Z-axis I configured it to be used in the E1 slot on the RAMPS shield)
But I think this is not the problem, because the X-axis was having the same problem with the same driver and it is configured as standard on the RAMPS shield.
Below I put a video that I recorded, so you can have an idea of my problem.