5,710
edits
Changes
→Activities
Open the example ''File->Sketchbook->Analog->AnalogInput''. In this example, the value of the analog input changes the timing of the light: the lower the input voltage the more quickly the light blinks, the higher the input voltage the slow the light blinks.
==== Potentiometer ====First we will use a potentiometer as our input.
[[Image:Pot_in.png]] [[Image:Pot_photo.JPG|400px]]
QUESTION: What will the voltage at the analog input be? What are the upper ____ and lower ____ values as you turn the knob? (HINT: this is a voltage divider. How do you calculate the voltage in a voltage divider?)
*Q2.1: With the same R2 resistor (10k) from above, replacing R1 with the photoresistor, what range of voltages (and corresponding data values) would you expect to see at your A_IN pin?