Usually, when you want a servo ... The motor control uses a PID algorithm. Potentiometers set the end range and sensitivity. A push button allows resetting the center position.