I have a TI cc2540 to which I would like to attach a variety of photoresistors.
The cells resistance decreases with light intensity. I would like to trigger a specific action when the resistance decreases past a certain threshold.
I am already using the analog inputs on the device for other purposes. Yet it occurs to me that it might be possible to use the pwm digital inputs as all I am trying to accomplish is a simple on/off type activity.
(Yes, I know I could use an ADC for this purpose, however I am trying to minimize chip count and cost. )
The range on the photo resistor is 135 Ohms to 350 ohms.
The circuit runs off 3.2 V, the digital inputs are pwm. Is this possible? How might it be accomplished?
The cells resistance decreases with light intensity. I would like to trigger a specific action when the resistance decreases past a certain threshold.
I am already using the analog inputs on the device for other purposes. Yet it occurs to me that it might be possible to use the pwm digital inputs as all I am trying to accomplish is a simple on/off type activity.
(Yes, I know I could use an ADC for this purpose, however I am trying to minimize chip count and cost. )
The range on the photo resistor is 135 Ohms to 350 ohms.
The circuit runs off 3.2 V, the digital inputs are pwm. Is this possible? How might it be accomplished?