It is recommended that the value of \(R_2\) be set as the geometric mean of \(R_\text{dark}\) and \(R_\text{illuminated}\text{,}\) as at the right. Based on the values you measured, compute \(R_2\text{.}\)
Recall the equation for the voltage divider in Lab 8’s Figure 1, at the right. Using the values you measured, roughly what are the voltages that you would expect to see at \(V_1\) when the sensor is illuminated and when the sensor is dark, assuming \(V_{cc} = 3.3\) V?
Deliverable 4. It is recommended that the value of \(R_2\) be set as the geometric mean of \(R_\text{dark}\) and \(R_\text{illuminated}\text{,}\) i.e. \(R_2 = \sqrt{R_\text{dark} \times R_\text{illuminated}}\text{.}\) Based on the values you measured, compute \(R_2\text{.}\)
Deliverable 5. Recall that the equation for the voltage divider in Lab 8’s Figure 1 is \(V_1/V_{cc} = R_2/(R_1 + R_2)\text{.}\) Using the values you measured, roughly what are the voltages that you would expect to see at \(V_1\) when the sensor is illuminated and when the sensor is dark, assuming \(V_{cc} = 3.3\) V?
When you move on to the two-channel program, take the potentiometer off the breadboard first, with nothing powered: its channel, A0 (PA0), is where the first photocell’s divider goes, and A1 (PA1) is where the second photocell’s divider goes.
First, with nothing powered, take the potentiometer off the breadboard: its channel, A0 (PA0), is where the first photocell’s divider goes, and A1 (PA1) is where the second photocell’s divider goes.
Write a program to measure the two sensor voltages and print them on your screen. This should be an easy two-channel modification of the earlier A/D + potentiometer program. A one-second sampling period is fine.
Deliverable 7. Also wire the sensor voltages to analog channels 1 and 2 of the AD2, to display the voltages with Waveforms’ voltmeter function. Do your measured values for each channel fall within the expected range you calculated earlier?
Deliverable 8. Slowly sweep a flashlight beam (the one on your phone is fine) across the two sensors and observe how the voltages change. Note the maximum and minimum voltages. How do they compare to your theoretical maximum and minimum voltages?