This lesson will show you how to read a voltage from one of the analog inputs (A0..A5) on the Arduino.
Move the mouse over a dotted box for more information.
Now you try. Read voltages from the outside world!
Type your code here:
See your results here:
This experiment only requires the Arduino and a single wire. Insert one end of the wire into the pin labeled "A0," as shown
here. Insert the free end of the wire into the 5V pin and run the code above. What do you see displayed on the screen?
Next, remove the end from the 5V pin and insert it into the 0V pin and run the code again. Do you agree that the Arduino is
reading in voltage? Try the 3.3V pin as well.