Motor control

Hi. I am new to the Arduino platform. I would very much appreciate a Sketch to perform the following function: I have a nema 17 stepper motor with which I want to drive a vacuum variable capacitor. The speed and direction of the motor needs to be controlled by a potentiometer. Additionally, as the capacitor has no end stops indication, I would also like to be able to stop the drive when it reaches its limits.

The idea is that you write the code and we provide advice.

If you are prepared to pay someone to write the code please ask in the Gigs and Collaborations section of the Forum.

If you want advice please post links to the datasheets for your stepper motor and for your stepper motor driver.

You may get some useful stuff in stepper motor basics and in this simple stepper program.

...R

I have a nema 17 stepper motor with which I want to drive a vacuum variable capacitor.

Have you considered using a servo instead of a stepper motor?