Stepper Example

Configure your Stepper Motor

In order for this example to work correctly you must make sure the number of steps per revolution is set for your stepper motor. This is the number of steps it takes for the motor to make one revolution. You can get this value from you motor's datasheet (if the number is not specified, divide the step angle by 360 degrees to get the number of steps per rev). This value usually ranges from 100 to 400 depending on the motor. The default value for this example is 200 stepsPerRev.

If you are using an EasyDriver and have configured it to use less than 8 micro steps (default), then you'll need to update the number of microsteps above.

Depending on your motor, you may not be able to drive the stepper at speeds higher than 31 rad/sec (300 RPM).

To remove acceleration and deceleration, move the acceleration and deceleration sliders all the way to the left. When using accel and decel you must set both values.