unsigned int stepDelay = 3; // Controls Velocity of Motorfor(i=1; i<pulseControlCount; i++)
{
digitalWrite(stepPin, HIGH);
delayMicroseconds(stepDelay);
digitalWrite(stepPin, LOW);
delayMicroseconds(stepDelay);
}
166667 steps per second? Which Arduino?