Learning Examples | Foundations | Hacking | Links
Examples > Analog I/O
Demonstrates one techinque for calibrating sensor input. The sensor readings during the first five seconds of the sketch execution define the minimum and maximum of expected values.
Analog sensor (e.g. potentiometer, light sensor) on analog input 2. LED on digital pin 9.
click the image to enlarge
image developed using Fritzing. For more circuit examples, see the Fritzing project page
Schematic:
click the image to enlarge