In this tutorial, we will use a servo and a potentiometer to make the servo motor change its position according to the given value given by the potentiometer.

Components used in this project:

Name Quantity Component
U1 1 Arduino Uno R3
Rpot1 1 10 kΩ, Potentiometer
M1 1 Servo


Arduino Sketch: