Now that we have introduced the concept and function of the potentiometer, let's put it to use and control something in real life.
As you recall, the Arduino has an onboard LED that is connected to Digital Pin 13. We controlled it using a program in Project 1D.
Let's use this LED as an output device controlled by our potentiometer. We don't have to change any wiring whatsoever from our last project; we just need to send a new program to our Arduino--that is, reflash the Arduino.
When we do, you will be able to control the rate at which the onboard LED flashes using the potentiometer.
What you will learn:
Experiment with the potentiometer by turning the dial up and down.
Think of other things you could control with the potentiometer.