Speed control for High-Power Stepper Motor Driver 36v4

Within Arduino, is it possible to change the rotational speed of the stepper motor?


Yes, the Arduino program has direct control over the speed of the stepper motor. For reference, you can look at one of the examples from our High-Power Stepper Motor Driver library for Arduino (they both essentially function the same, except one of them is controlling the driver through SPI and one is using the STEP and DIR pins). The speed is controlled by how quickly you call the step() function.

In those example programs you will see:


The delay length (StepPeriodUs) is controlling how much time passes between each step, which controls the step rate, or speed, of the stepper motor. A longer delay will slow the stepper motor down, while a shorter delay will speed it up.