Dynamically control speed
finnBsch opened this issue · comments
Finn Busch commented
Is it possible to control the speed of a stepper motor with an a4988 driver dynamically? I would like to realize a control system on an arduino, using speed and not position control.
Thanks in advance!
Laurentiu Badea commented
I believe you can use NonBlocking example in constant speed mode and call setRPM() inside the loop to vary the speed.
It's not possible in the other modes because the library will not relinquish control until it's done.