Changes

Jump to: navigation, search

Week 3 Lab

74 bytes added, 00:20, 14 April 2009
Potentiometer
A_IN can be any of the Analog In pins (0-5) on your Freeduino.
* Q: What will the voltage at A_IN be? What are the upper and lower values?
* Q: The important part of this sketch is the line where the microprocessor reads the analog input:<code> val = analogRead(potPin);</code> Looking at the Arduino help for that function (<code>analogRead()</code>), what do you think the value <code>val</code> will be for those highest and lowest voltages at your A_IN pin? * Q: Come up with some way to verify your guess. How can you verify your guess? Try determine what value the A/D is measuring internally. Come up with a plausible method, and verify your values, in some plausible mannertry it out. Anything goes!!
=== other loads ===

Navigation menu