Positioning stepper motor spindle via potentiometer

so you need to translate the range of pot values into the # of steps for a complete revolution of the motor. see map()

but don't you also need a mechanism to set the stepper motor to a zero position when the pot is at its zero position? possibly a limit switch