10 kΩ potentiometer
A resistor with a wiper: turning the shaft changes the voltage on the middle pin between 0 V and 3.3 V. Connected to an ADC pin, it becomes a number the program reads.
Pinout
| Pin | Connect to | Note |
|---|---|---|
| 1 | GND | end |
| 2 (wiper) | GPIO with ADC (e.g. 34) | middle |
| 3 | 3V3 | end |
FastTeacherFor teachers
From the syllabus to a planned semester
- Teaching plan and calendar built automatically
- Class diary ready to paste into SIGA
- Slides and exercise lists with answer keys
Free Community edition · Windows
MicroPython example
from machine import ADC, Pin
import time
pot = ADC(Pin(34))
pot.atten(ADC.ATTN_11DB) # range up to ~3.3 V
while True:
print(pot.read_u16()) # 0 to 65535
time.sleep(0.2)
Specifications
| Item | Value | Source |
|---|---|---|
| Resistance | 10 kΩ, linear | Typical datasheet values |
| Wiper output | 0 V to 3.3 V (voltage divider) | Typical datasheet values |
Values marked "Under review" will still be checked against the parts in the lab.