http://cdn.sparkfun.com/datasheets/Sens ... -09088.pdf (Links to an external site.) For the second part of this assignment, you are to write an Arduino sketch that will a. Take analog input and convert it to a voltage (Vout) b. Find the Rp value for that voltage c. Using the data in the included Excel file create an equation that related resistance to lux d. Use that equation in your sketch to find the lux
Resistance Lux 1000000 60000 5000 100 0.1 10 100 10000
10. With other sensors, there may not be a direct relationship between the voltage and desired output. One simple example of this is the photo resistor we used in an earlier experiment. The circuit was a simple voltage divider, where the output voltage is defined by the equation: Vout - R2 Rp-R₂ -Vi in Where R₂ is the resistor we wired in series with the photo resistor (Rp). The spec sheets for the photo resistor will actually relate resistance to light levels (lux). You can see the specification for the photo resistor in your kit at: 10. With other sensors, there may not be a direct relationship between the voltage and desired output. One simple exampl
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am