Parts · Sensors
Knob (potentiometer)
10 kΩ trimmer potentiometer
Turn it and the middle leg gives a voltage from 0 to the full voltage: read it as a number.
Parts · Sensors
10 kΩ trimmer potentiometer
Turn it and the middle leg gives a voltage from 0 to the full voltage: read it as a number.

| Pin or leg | What it is for |
|---|---|
| Outer legs | one to + (5V or 3V), one to GND |
| Middle leg (wiper) | to an analog pin: it reads 0 to 1023 |
The idea behind it, step by step: Knob (potentiometer)
| Value | 10 kΩ |
|---|---|
| Legs | 3: the middle one is the wiper |
| Rotary potentiometer | a bigger knob on a shaft |
|---|---|
| Slide potentiometer | a slider in place of a knob |