I have a photoresistor with a range of about 200Ω-20+MΩ. So the photoresistor is basically 'open' in darkness and a 'short' in full light (ideally).
So im writing a program that duties an LED. the duty is based the amount of clock pulses during the RC decay time in which the photoresistor is connected. I have a working model of what im trying to achieve, however, im never completely satisfied so i wanna refine it.
I want to ask anyone here if they know of a way of linearizing the photoresistor so the response to my system is a little more gradual as light changes. Im not sure if the photoresistors resistance as a function of Luminosity is exponential so i dont want to assume i can run it through a log amp or some other technique.
I've searched and heard about lookup tables. Ill have to research this myself, but i was looking for some other advice.
Im rushing out the door right now and wanted to get a post out so i bet this is a little unclear, but any help would be cool.
So im writing a program that duties an LED. the duty is based the amount of clock pulses during the RC decay time in which the photoresistor is connected. I have a working model of what im trying to achieve, however, im never completely satisfied so i wanna refine it.
I want to ask anyone here if they know of a way of linearizing the photoresistor so the response to my system is a little more gradual as light changes. Im not sure if the photoresistors resistance as a function of Luminosity is exponential so i dont want to assume i can run it through a log amp or some other technique.
I've searched and heard about lookup tables. Ill have to research this myself, but i was looking for some other advice.
Im rushing out the door right now and wanted to get a post out so i bet this is a little unclear, but any help would be cool.