Skip to content
Free IDE

← Components

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

123
PinConnect toNote
1GNDend
2 (wiper)GPIO with ADC (e.g. 34)middle
33V3end
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
Meet FastTeacher

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

ItemValueSource
Resistance10 kΩ, linearTypical datasheet values
Wiper output0 V to 3.3 V (voltage divider)Typical datasheet values

Values marked "Under review" will still be checked against the parts in the lab.

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever

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
Meet FastTeacher

Free Community edition · Windows

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever