Acceleration by using a potmeter

I have a school project. I want to use a potmeter to change the speed on a stepper motor. I also want to use a LCD display to show a imaginary accleration and speed.

Have anybody done this before? Any tips?

Greetings Eirik

You can determine the speed from the current setting of the pot, and the acceleration from the pot value changes.

Hi, You need to look at the examples given in the Accelstepper library.

http://www.airspayce.com/mikem/arduino/AccelStepper/

It has some code that will help your project.

Tom... :)

How do I determine the speed from the current setting of the pot?

Greetings Eirik

You can use the maximum analogRead() value (1023) for full speed.