Nubie question
I am using a SX 28 and the circuit below along with RC Time to monitor light. This circuit works with direct sunlight only.· How could I make it more sensitive to dimmer light.
·
Main:
· HIGH RC_Pin································· ······················ ·' center sensor
· PAUSEUS 250································· ····················· ·' charge the capacitorfor 250 us
· RCTIME Rc_Pin, 1, CT_Sensor, 5·············· ··········· ·' measure in·10 us (2 x 5) units
· PAUSE 100
GOTO Main
Post Edited (Mike W) : 7/19/2007 8:18:53 PM GMT
·
Main:
· HIGH RC_Pin································· ······················ ·' center sensor
· PAUSEUS 250································· ····················· ·' charge the capacitorfor 250 us
· RCTIME Rc_Pin, 1, CT_Sensor, 5·············· ··········· ·' measure in·10 us (2 x 5) units
· PAUSE 100
GOTO Main
Post Edited (Mike W) : 7/19/2007 8:18:53 PM GMT
Comments
Basically, in low light levels, the sensor's resistance is relatively high and the processor has a fixed voltage threshold.· The capacitor charges and discharges slowly so the RCTIME counts are high and probably overflow at times.· The trick is to use a smaller capacitor.· It won't work though when the light levels are high again.
On the SX, you can use larger time units with the same value capacitor at the lower light levels.· The Stamps don't allow you to adjust that.
If you like to challenge yourself, figure out how to have your software detect when it has not obtained a valid reading (probably when CT_Sensor = 0), then adjust one or more of the values and repeat the process. This would be a great learning exercise and should allow your program to adjust to a much wider range of light levels.
Let us know how it goes.
- Sparks
peace newbie
-Henry
·
But to get back to my post. After experimenting a while I have come to the conclusion that a phototransistor will not suit my needs. I can change it’s sensitivity but only to make it less sensitive. It became saturated with light well before it reached full sunlight. But it did work well on cloudy days.
·
Thanks to everyone for their input.
·
Mike