5,710
edits
Changes
→Potentiometer
=== Potentiometer ===
[[Image:Pot_in.png]]
* Q: What will the voltage at A_IN be? What are the upper and lower values?
<code>
val = analogRead(potPin); // read the value from the sensor
</code>
* Q: 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: How can you verify your guess? Try and verify your values, in some plausible manner. Anything goes!!
=== other loads ===