Hi All,
I've considered using LEDs as buttons, since reading how they can be used as photodetectors.
I'd like to have a LED illuminate once i touch it, basically a toggle on/off scenario.
I imagine the led will need to be driven with a chain of pulses to 'look' like it's always on (static), but when the LED is off (in between all the pulsing) would be when it's detecting a change in ambient light or a finger shadowing the LED.
Are there problems doing this? i imagine the light from the LED alters the ability to detect light in the off time between pulses, or are the leds so quick turning off that it won't effect the sensing operation???
Thanx in advance.
I've considered using LEDs as buttons, since reading how they can be used as photodetectors.
I'd like to have a LED illuminate once i touch it, basically a toggle on/off scenario.
I imagine the led will need to be driven with a chain of pulses to 'look' like it's always on (static), but when the LED is off (in between all the pulsing) would be when it's detecting a change in ambient light or a finger shadowing the LED.
Are there problems doing this? i imagine the light from the LED alters the ability to detect light in the off time between pulses, or are the leds so quick turning off that it won't effect the sensing operation???
Thanx in advance.