Ongoing donations help keep the site running. Contribute to this website by clicking the Donate button. Many thanks to all who have donated.
Recent Donors:
Donations Received
X
Created on: 2 August 2012
The analog value on the Arduino analog pin A0 is changed using a potentiometer. The value read on this pin by the Arduino is used to change the rate at which the on-board LED flashes.
1 × 10k potentiometer
Amazon.com
Amazon.co.uk
File → Examples → 3.Analog → AnalogInput
Connect the potentiometer as shown on the Arduino website AnalogInput page.
Open the sketch in the Arduino IDE (File → Examples → 3.Analog → AnalogInput) and then upload it to the Arduino board.
As the shaft of the potentiometer is rotated, the rate at which the Arduino on board "L" LED flashes will change.
Can't see the video? View on YouTube →