Starting Electronics Needs Your Help!
It is that time of the year when we need to pay for web hosting and buy new components and equipment for new tutorials. You can help by making a donation. Contribute to this website by clicking the Donate button. The total will be updated once daily. (You may need to clear your browser cache to see the updates.)
Target Amount: $2000
Amount Raised: $1339
Top Donor: C.C. $100
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 →