A potentiometer can be used as a voltage divider to continuously change the output voltage of a voltage supply. As shown in the below figure, potential difference V is set up between points A and B of a potentiometer wire. One end of a device is connected to positive point A and the other other end is connected to a slider that can move along wire AB. The voltage V divides in proportion of lengths l1 and l2 as shown in figure.
Use of a potentiometer as a voltage divider
By using the slider we can change the output voltage from 0 to V.