Changes

Jump to: navigation, search

Week 3 Lab

88 bytes added, 15:27, 14 April 2009
Potentiometer
[[Image:Pot_photo.JPG|400px]]
*Q: What will the voltage at A_IN be? What are the upper and lower values? (HINT: it is a voltage divider. How do you calculate the voltage in a voltage divider?)
*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?

Navigation menu