Potentiometer
Last updated
Last updated
A potentiometer acts as a variable resistor. By rotating the shaft on the potentiometer, you'll see how it takes effect. Here's a simple example:
Connect two ends of the potentiometer to 3.3V and GND of the LinkIt 7697 board.
Connect the output pin (the one in the middle of the pot) to P14 (A0) of the board.
Copy and paste the codes below into the Arduino IDE:
4. Click the Upload icon to compile and upload the sketch to the board.
Then open the serial monitor (with baud rate 9,600) and you'll see the voltage change as you rotate the shaft, for example: