Using LED As A Light Sensor

6,076

Circuit Image

This circuit demonstrates the use of a standard LED as a light sensor by utilizing the photovoltaic voltage generated across the LED when it is exposed to light. LEDs are cost-effective alternatives to photodiodes and include a built-in filter that is advantageous for applications requiring color discrimination. The photo-voltage of a red LED, which corresponds to its bandgap voltage, is typically around 2V. The source impedance of this voltage measures approximately 800MΩ in daylight and increases to infinity in darkness. A TL071 JFET input operational amplifier (op-amp) is employed to amplify and buffer this extremely high impedance signal. Resistor R1 ensures that the op-amp registers a 0V input when the LED is in total darkness. To prevent excessive loading of the signal, R1 ideally should be a 100MΩ resistor or greater; however, due to the scarcity and cost of such high-value resistors, a smaller value is used, and the gain of the op-amp is increased to compensate for the voltage drop. R1 must be sufficiently large so that the reduced voltage across the LED overshadows the op-amp's input offset voltage, which is a maximum of 13mV for the TL071. With a 30MΩ resistor for R1, the voltage at the op-amp input when the LED is exposed to bright light is approximately 60mV, exceeding the op-amp's input offset. R1 can be constructed using three 10MΩ resistors in series. Alternatively, a reverse-biased 1N4148 diode can be utilized, which has an impedance of about 30MΩ (with the anode connected to ground). The circuit output remains around 0V when the LED is in darkness. The variable resistor VR1 adjusts the gain of the op-amp and should be calibrated to achieve the desired output voltage when the LED is illuminated by bright light.

The circuit utilizes a red LED configured to operate as a photovoltaic device, generating a voltage in response to light exposure. The generated voltage is then fed into a TL071 JFET input op-amp, which is characterized by its high input impedance, making it suitable for amplifying the low-level signals produced by the LED. The choice of a TL071 op-amp is appropriate due to its low input offset voltage and high input impedance, which is crucial for accurately processing the small voltages from the LED.

Resistor R1 plays a critical role in establishing a baseline for the op-amp's input voltage, ensuring that it registers 0V in the absence of light. The selection of R1's value is a compromise between minimizing loading effects and ensuring that the op-amp can effectively amplify the signal without introducing significant error from its input offset. This careful balancing act is vital for maintaining the integrity of the light-sensing functionality.

The variable resistor VR1 allows for fine-tuning of the op-amp's gain, enabling the user to adjust the output voltage to match specific requirements based on the application's light conditions. This adjustability is particularly important in scenarios where varying light levels may be encountered, ensuring that the circuit remains responsive and accurate across a range of environmental conditions.

In summary, this circuit effectively transforms a common LED into a functional light sensor by leveraging its photovoltaic properties and amplifying the resulting signal with a high-performance op-amp, making it an economical and practical solution for light detection applications.This circuit shows how to use an ordinary LED as a light sensor. It makes use of the photovoltaic voltage developed across the LED when it is exposed to light. LEDs are cheaper than photodiodes and come with a built-in filter, which is useful when the application involves colour discrimination. The photo-voltage of a red LED (its bandgap voltage) is typically about 2V. The source impedance of this voltage is about 800M © in daylight, rising to infinity in darkness. A TL071 JFET input op amp is used to amplify and buffer this extremely high impedance signal. Resistor R1 ensures that the op amp "sees" a 0V input when the LED is in total darkness. To avoid undue loading of the signal, R1 would ideally be a 100M © or larger resistor but since such high values are rare and expensive I used a smaller value and increased the gain of the op amp to compensate for the voltage loss. To avoid the need for a second variable resistor to set the op amp`s input offset to zero, R1 must be large enough for the reduced voltage across the LED to swamp the op amp`s input offset voltage.

With a 30M © resistor for R1, the voltage at the op amp input when the LED is exposed to bright light is reduced to about 60mV. This is just over four times the 13mV maximum input offset of the TL071 op amp. R1 can be three 10M © resistors in series. Alternatively, I have found that a reverse-biased 1N4148 diode has an impedance of about 30M © (connect it in the circuit with the anode to ground).

The output of the circuit is about 0V when the LED is in darkness. VR1 sets the gain of the op amp and it should be adjusted to give the required output voltage when the LED is exposed to bright light. 🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713