Hello, thanks for your help. I've tried your code and here's is the problem which I encountered:
-
I'm using your default speed and max speed which is 5000 and 500, when I'm changing the direction from low to high, I need to recalibrate the current by turning the potentiometer on the A4899 driver, is it common for a stepper motors to have different current different direction?
-
When changing the high to low for the direction, I need to upload it twice in order for the motor to change the rotation. Do you think my driver is broken?
Thanks