Nema 23 Stepper Motor with tb6600 driver not moving a full step

  1. The way I would do that:
 for (int i = 0; i < stepsToMove; i++) {
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(20);
    digitalWrite(stepPin, LOW);
    delayMicroseconds(stepDelay - 20);
  }