Hello,
I'm looking to write some code to detect a varying light level using a photo resistor. I've tried using the pot command but it doesn't seem to be suitable for my application. I would like to be able to detect dawn (sun just beginning to rise) and dusk. Using the pot command works somewhat but not with any kind of repeatable accuracy.
I read in the archives about using the ADC to read a photo sensor but I'm not sure how to get started doing that. I won't have any problems to set up and get the ADC working but what I'm not sure about is how to wire the photo resistor to the adc input. Once I get the photo resistor wired properly and see what the photo resistor is inputting to the ADC then I shouldn't have any problems writing the code for that.
Could anyone here suggest a wiring scheme and possible considerations for accomplishing this? Or another method that would be suitable.
Thanks
jessey
Bookmarks