Sub topic 5
Potentiometer Terminals and How They Work
Assume you know Arduino setup() and loop(), can upload a sketch, and understand voltage, ground, breadboards, and pinMode(). This chapter focuses on the three terminals inside a potentiometer and why they produce a changing voltage.
A potentiometer is a variable voltage divider
A potentiometer, often called a pot, is a resistor with a movable contact. Most common small pots have three terminals:
- Outer terminal 1 connects to one end of the resistive track.
- Outer terminal 2 connects to the other end of the resistive track.
- Wiper terminal connects to the movable contact.
The resistive track has a fixed total resistance. A common value is 10 kΩ. Turning the knob moves the wiper along this track.
The resistance from the wiper to one outer terminal becomes smaller as the wiper moves toward that terminal. At the same time, the resistance from the wiper to the other outer terminal becomes larger. The two partial resistances always add up to approximately the pot's total resistance.
| Terminal pair | What you measure |
|---|---|
| Outer terminal to outer terminal | The fixed total resistance |
| Wiper to outer terminal 1 | A changing resistance |
| Wiper to outer terminal 2 | The opposite changing resistance |
Use a multimeter's resistance mode to identify the terminals. The two terminals that show a constant value, such as 10 kΩ, are the outer terminals. The remaining terminal is the wiper. Disconnect the pot from power before measuring resistance.
How the three terminals create a voltage
To use the pot as a voltage divider, connect the outer terminals across a supply:
- One outer terminal to 5 V.
- The other outer terminal to GND.
- The wiper to an Arduino analog input, such as A0.
The full resistance is between 5 V and GND. The wiper samples a point along that resistance. Its voltage can move from nearly 0 V to nearly 5 V as you turn the knob.
The ideal wiper voltage is:
Vout = V supply × R below / (R above + R below)
Here, “below” means the section between the wiper and GND. When the wiper is near GND, R below is small, so Vout is near 0 V. When it is near 5 V, R below is close to the total resistance, so Vout is near the supply voltage.
The two outer terminals are interchangeable electrically. Swapping them does not damage the circuit. It only reverses the direction of the control: turning clockwise may decrease the reading instead of increasing it.
Wiring details and common errors
Place the pot across the breadboard gap only if its pin spacing and body shape allow each terminal to occupy a separate row. Check the pin layout for your specific part. Physical order is not always the same between manufacturers.
The Arduino and the potentiometer must share the same ground. Without a common ground reference, the Arduino cannot interpret the wiper voltage reliably.
Do not leave the wiper disconnected from A0. An analog input with no stable connection can pick up electrical interference and produce changing readings. Also check that the 5 V and GND wires are not reversed. Reversing the outer terminals is harmless, but connecting 5 V directly to GND creates a short circuit.
The pot's total resistance also controls current through the track. A 10 kΩ pot connected across 5 V draws about 0.5 mA, calculated as 5 V ÷ 10,000 Ω. This is small enough for normal Arduino use.
Exercise
A pot has 10 kΩ total resistance. Its outer terminals connect to 5 V and GND, and the wiper is halfway along the track. What voltage should A0 measure approximately?
Show answer
About 2.5 V, because the wiper is at roughly half of the supply voltage.