laurb9 / StepperDriver

Arduino library for A4988, DRV8825, DRV8834, DRV8880 and generic two-pin (DIR/STEP) stepper motor drivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamically control speed

finnBsch opened this issue · comments

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!

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.