Changing stepper Motor speed

I have stepper motor, that I want to control his speed. How is it possible?

I am using an Arduino UNO.

for (i = 0; i<400; i++)       // Iterate for 4000 microsteps
    digitalWrite(StepPinB, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(StepPinB, HIGH); // "Rising Edge" so the easydriver knows to    when to step.


There are two ways you can control the speed of your stepper motor. You can either decrease the delay time between each step or you can adjust the size of the step the motor takes.

Decreasing the delay time is straightforward, just lower the delayMicroseconds and the stepper motor will have an increased step rate. However, there is a limit to how small the delay can be.

Adjusting the size of the step(i.e. full step, half step) requires altering your circuitry for the motor driver and depends of what kind of driver you're using. Just google your motor driver model and try finding a wiring diagram to help you out.

1>> Decrease the stepping time.(will work upto 1 millisecond as far as i remember).

2>> YOU can change the ovarall speed with half stepping, full stepping or microstepping(the more smaller is the step slower it will be.) do special care with types of stepping as it can also affect your torque.

Need Your Help

Weird IndexOutofBoundsException?

java string exception indexoutofboundsexception

why is there an IndexOutofBoundsException? It seems as if there is no variable that index may be out of bounds. This program is supposed to convert patterns. Could this have something to do with ho...

How to access the default connection 'xe' in oracle 11g to create a user?

java jdbc oracle11g

I want to make Java 1.6 - Oracle Express 11g - JDBC(OJDBC6) code to create a user with all privileges. Now, one of the connections i have is "xe" (I see it in SQL Developer). I want to make my java...