Hi all,
I have a issue where due to lack of i/o lines i need to double up on one i/o line. As an A/D to read light sensor and output to drive the LED.
The light sensor output should go from 0 to 2.7V. However, it is being clamped to around 2V (forward volt drop of LED) i think it may be due to the 220R and leakage current of the LED.
My possible solution was to use an Zener instead of the 220R or a diode instead of the 220R. I have no other i/o lines available.
Any help would be appreciated.
Thanks in advance.
I have a issue where due to lack of i/o lines i need to double up on one i/o line. As an A/D to read light sensor and output to drive the LED.
The light sensor output should go from 0 to 2.7V. However, it is being clamped to around 2V (forward volt drop of LED) i think it may be due to the 220R and leakage current of the LED.
My possible solution was to use an Zener instead of the 220R or a diode instead of the 220R. I have no other i/o lines available.
Any help would be appreciated.
Thanks in advance.