Warning to KiCad Users: Avoid all links to kicad - pcb.org – Use kicad.org
Starting Electronics needs your help! Please make a donation to help cover our hosting and other costs. Click the donate button to send a donation of any amount.
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
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 →