This project will show you how to use a potentiometer to change a servo's position.
Step 1 - connect potentiometer and servo with Arduino, see following graph:
Step 2 - Download pot-servo.ino Sketch file, load it into Arduino.
Step 3- Test Project
Turn potentiometer to different position, you will see servo will automatically turn different angle as per potentiometer resistor value.
Project Demo Video: