Potentiometer Example
The potentiometer sends a voltage of between 0 and 5VDC to the Arduino analog input A0. The Arduino sketch monitors input A0 and turns on Arduino outputs 10, 11 and 12 as the A0 input increases from 0 - 5VDC
Hardware Required
- 1 x Arduino Uno R3 or compatible
- 3 x LED
- 3 x 220 Ohm Resistor
- 1 x Potentiometer
- 1 x Solderless breadboard
Schematic
After you build the circuit plug your Arduino board into your computer, start the Arduino IDE, and enter the code below.