Use LEDs as photodiodes

Texas Instruments CD4011B

The simple circuit in Figure 1, which can be powered with a 3.6 V nickel-cadmium rechargeable battery, lets you use an LED to detect light. The circuit consumes practically no quiescent power. Two LEDs act as photodiodes to detect and respond to ambient light. When ambient light is present, the upper LED, a small, red, transparent device covered with a black pipe, has a higher effective resistance than the lower, large, green LED. The voltage drop across the input of the NAND gate is less than its threshold voltage for logic 1, making the output of the NAND gate low. When the ambient light goes off, the voltage drop across the reverse-biased green LED increases, forcing the NAND gate’s output high.

An LED's resistance changes with ambient light, which changes a voltage that drives a logic gate.
Figure 1. An LED’s resistance changes with ambient light, which changes
a voltage that drives a logic gate.

This type of light detector is highly power-efficient and is ideal for battery applications. You can use the NAND gate’s logic output to drive an LED driver or a relay driver, or you can connect it to a microcontroller.

Place the circuit so that sufficient light falls on the green sensor LED. Doing so avoids any voltage buildup near the junction that could be close to the NAND gate’s threshold voltage. The NAND gate’s power consumption rises sharply at the threshold voltage. When the gate’s input voltage is within the defined limits for the logic state, its power consumption is extremely small.

Materials on the topic

  1. Datasheet Texas Instruments CD4011B

EDN

EMS supplier