To wire up a potentiometer as a voltage divider:
Connect one outside pin to ground
Connect the other outside pin to voltage in
(e.g. 3.3V)
Connect the middle pin to an analog pin
(e.g. A0)
Hardware
In addition to your microcontroller board, you will need the following hardware to
follow along with this example.
Potentiometer
©Adafruit Industries Page 133 of 263