Wiring
Potentiometers have three pins. The outer two pins are connected to microcontroller’s supply voltage (usually +5V, but sometimes +3.3V) and GND respectively. The middle pin is connected to an analog input on the board.
Warning
On 3.3V microcontroller boards such as the Raspberry Pi Pico 1, connect the potentiometer pin that would normally go to +5V to +3.3V instead. This makes it possible to use the full range of the potentiometer and minimizes the risk of damage to the microcontroller.
Tip
See the boards page for pinout diagrams with the available analog pins on each supported board.