How turning a potentiometer's knob slides a wiper along a carbon track to pick an output voltage between 0 and 3 volts.
A potentiometer is a knob that picks a voltage. It has three pins. The orange wire brings in 3 volts from the battery. The blue wire goes to ground, which is 0 volts. The yellow wire in the middle carries the signal.
People often call it a "pot" for short.
Under the metal cover is a curved track made of carbon. Electricity can flow through carbon, but it slows down. One end of the track joins the orange pin. The other end joins the blue pin.
The orange end of the track has 3 volts. The blue end has 0 volts. In between, the voltage drops a little at a time, like a ball rolling down a slide. Halfway along, it is 1.5 volts.
A small metal arm called the wiper turns with the shaft. One tip presses on the carbon track. The other tip rubs on a middle ring that leads to the middle pin. So the yellow wire gets the voltage at the spot the wiper touches.
Turn the shaft and the wiper slides along the track. Near the orange end, the yellow wire gets almost 3 volts. Near the blue end, it gets almost 0. A chip reads this signal to set things like volume or brightness.
The shaft only turns about 300 degrees. Stops at each end keep the wiper on the track.