Hello everyone.
I am currently trying to control three stepper motors with a CNC shield (with A4988 drivers) on top of the Arduino Uno. I got everything wired and already did some testing to make sure that everything works. My question is related to the code itself. Each driver (or stepper) is controlled via two pins on the Uno. One for "direction" and one for "step".
I am now wondering how I can adjust the rotational speed of the stepper motors. I know that you can do it with adjusting the time intervall between each step, but this seems quite circumstancial and iterative to me. Is there some kind of library or function which I can use to maybe set the steps per second or something like that?
Thanks in advance!
Kind regards