has a question about the basic stamp program
boblai2010
Posts: 18
Photoresistor how to use this resistor to measure LUX
i only find the measure RC time program in parallax.com
what is the program
i only find the measure RC time program in parallax.com
what is the program
Comments
The Stamp is measuring only the effect of the resistor and the capaitor on the time it takes to charge/discharge.
You will have to give the Stamp a formula to convert from the RCTIME result to LUX. This can be done easily by borrowing a lightmeter and calibrating your Stamp circuit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Y= MX + B
You'd need two data readings, hopefully at the low end and one at the high end. Enter the numbers and find M and find B (if there is one, although in a perfect world B would be zero.)
If all the data points match up, or are close in between the two readings, then it's a linear relationship. If not, and you want more accuracy you'd proceed to other algebraic formula.
You might also find that at the extremes (Low and high end) the data is non-linear.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.