Thanks for the inputs you guys.
Do you mean to say something like this?
if (input == 'f' || 'F')
{
digitalWrite(enb, LOW);
delayMicroseconds(2);
for (int i = 0; i < nMoveSteps; i++)
{
stepMotor(HIGH, 1, dPin, sPin);
delay(delayTime); // For Delay between each step
}
digitalWrite(enb, HIGH);
}
I will repeat the tests and report back
But one thing I noticed is that even if delayTime = 0, it was not missing any steps. Is that common among stepper motors? I would assume that there needs to be some delay.
Also, a general question, once a driver is disabled, how does it know which is the next sequence to be followed for a proper stepping of the motor among all its movement sequences when the next step input comes? How does it have a so called "memory"? (Or does it?)