Positioning stepper motor spindle via potentiometer

As far as the software goes, the size of stepper motor really does not matter since it's the A4988 driver that the program communicates with.

It can be NEMA 6 or NEMA 42 does not matter.