Please see our Potentiometers lesson as part of our Intro to Input series.

Are Potentiometers even sensors? Well, they are a type of variable resistor and often used to sense human input, so I would say yes! :)

A video demonstration of a trimpot hooked up to analog input A0 on the Arduino and its value graphed on an OLED display in real-time. The code is available here.


This website was developed by Professor Jon E. Froehlich and the Makeability Lab using Just the Docs. If you found the website useful or use it in your teaching, we'd love to hear from you: jonf@cs.uw.edu. This website and all code is open source (website GitHub, Arduino GitHub, p5js GitHub). You can find the MakeabilityLab_Arduino_Library here. Found an error? File a GitHub Issue.