Robotics & Arduino
Lesson 2 · Refinement

How does a potentiometer work?

A potentiometer is an adjustable voltage divider.

Imagine a horseshoe made of resistive material.
5V on one end; GND on the other.

The track limits current, and the full 5V drops across it.
Current still flows through the track.

A movable contact — the wiper — samples the voltage along the arc.

  • Close to the 5V end → about 5V
  • Close to the GND end → about 0V
  • In the middle → about 2.5V on a linear potentiometer

Move the wiper

A horseshoe-shaped potentiometer trackThe left end is GND, the right end is 5V, and the moving wiper samples the voltage between them. GND · 0V5V Middle of a linear track: 2.5V A0 · 2.50V 2.50V

Ideal linear potentiometer, 5V supply, and a high-impedance analog input.

With the LDR, light changes the divided voltage.
With a pot, WE change it.