If you want to control a servo motor with a potentiometer, then you'll want to read this article.