Hello everyone. I've designed an ambient light detector to dim and brighten an LED based on incoming light. Currently i am using the Parallax Propeller µController to operate the sensor and control the LED.
To make this work i have designed a quick RC filter using a Photoresistor and cap. When the light changes so does the resistance of the photoresistor and changes rise/fall times for the RC circuit. I then have a counter, detecting how many clock pulses have cycled while the RC circuit is a logic High. The amount of clock pulses depends on the incoming light and thus with a little bit of programming i dim/brighten the LED.
My question:
Are there any smaller and much cheaper µcontrollers that can do the same counting of clock pulses to determine incoming light? Also the power consumption of the Propeller (if powered by battery) is far too much to install in any practical application and i was wondering if anyone could recommend a few different CHEAP, POWER friendly controllers that will operate the same way.
Thank you in advanced.
D.M.
To make this work i have designed a quick RC filter using a Photoresistor and cap. When the light changes so does the resistance of the photoresistor and changes rise/fall times for the RC circuit. I then have a counter, detecting how many clock pulses have cycled while the RC circuit is a logic High. The amount of clock pulses depends on the incoming light and thus with a little bit of programming i dim/brighten the LED.
My question:
Are there any smaller and much cheaper µcontrollers that can do the same counting of clock pulses to determine incoming light? Also the power consumption of the Propeller (if powered by battery) is far too much to install in any practical application and i was wondering if anyone could recommend a few different CHEAP, POWER friendly controllers that will operate the same way.
Thank you in advanced.
D.M.