Changes

Week 3 Lab

No change in size, 07:10, 13 April 2009
Potentiometer
=== Potentiometer ===
[[Image:Pot_in.png]]
 
A_IN can be any of the Analog pins (0-5) on your Freeduino.
* Q: What will the voltage at A_IN be? What are the upper and lower values?
The important part of this sketch is the line where the microprocessor reads the analog input:
 
<code>
val = analogRead(potPin); // read the value from the sensor
</code>