Positioning stepper motor spindle via potentiometer

The library you choose will have example sketches, so scour a bit more.