作宇:Dhananjay V Gadre,Sheetal Vashist,ECE Division, Netaji Subhas Institute of Technology, New Delhi
In addition to their traditional roles as indicators and illumination, modern LEDs can also act as photovoltaic detectors (References 1 and 2). Simply connecting a red LED to a multimeter and shining a bright light source, such as a similar red LED, on it will produce a reading greater than 1.4V (Figure 1). A model of a reverse-biased LED is equivalent to a charged capacitor in parallel with a light-dependent current source (Reference 1). If the incident light is increased, the current source is enhanced and can quickly discharge the equivalent capacitor to the supply voltage.
Figure 2 shows one way to use an LED as a photovoltaic detector. If the output pin 2 of the microcontroller is connected to the cathode of the LED, it will be reverse biased, charging the internal capacitance of the LED to the supply voltage. If the cathode of the LED is connected to the input pin 3, a high impedance load is connected to the LED. When light shines on the LED, a photocurrent is generated. The internal capacitance of the LED is initially charged to the supply voltage, discharged through the photocurrent source, and when the voltage on the capacitor drops below the lower logic threshold voltage of the microcontroller, pin 3 detects a logic 0. Increasing the incident light intensity discharges the capacitor more quickly, and lower light levels cause the discharge rate to decrease. The microcontroller, an Atmel AVR ATtiny15, measures the time it takes for the voltage at pin 3 to reach a logic 0 and calculates the intensity of ambient light incident on the LED. In addition, the microcontroller flashes the LED at a rate proportional to the intensity of the incident light.
Figure 3 shows an Everlight Electronics Ltd. 3mm ultra-bright red LED, D1 , encapsulated in a clear, colorless encapsulant, acting as an ambient light sensor. The circuit has only four components and operates from any DC power supply between 3V and 5.5V. The circuit uses only three of the six I/O pins of the AVR ATtiny15, leaving the remaining pins available to control or communicate with external devices. The sensor LED is connected to port pins PB0 and PB3 of the AVR microcontroller . Another port pin, PB3, generates a square wave with a frequency proportional to the intensity of the incident light. The circuit works by first applying a forward bias to the LED for a fixed time, then changing the bit sequence applied to PB0 and PB1 , thereby applying a reverse bias to the LED. Next, the microcontroller reconfigures PB0 as an input pin. An internal timing loop measures the time interval T for the voltage applied to PB0 to drop from logic 1 to logic 0.
Reconfiguring pins PB 0 and PB 1 to apply a forward bias to the LED completes the cycle. The time interval T is inversely proportional to the intensity of the ambient light incident on the LED. For weaker light, the LED flashes at a lower frequency, and as the incident light intensity increases, the LED flashes more frequently to provide a visual indication of the incident light intensity. The
LED light output intensity exhibits good linearity for lower forward current values (Reference 2). To test the circuit, the light output of a second identical LED can be coupled to the sensor LED, D 1 in Figure 3. These LEDs should be mounted in a sealed tube covered with opaque black tape to ensure that external light does not illuminate the sensor LED. Changing the forward current of the illumination LED from 0.33 mA to 2.8 mA produces a more linear sensor flicker frequency plot (Figure 4).
The efficiency of an LED as a sensor depends on its reverse bias internal current source and capacitance. To estimate the reverse photocurrent, place a 1MΩ resistor in parallel with the sensor LED and measure the voltage across the resistor while applying a constant illumination level from an external light source. Repeat the measurement with 500kΩ and 100kΩ resistors in place of the 1MΩ resistor.
For a representative LED under constant illumination and shielded from stray ambient light, we measured a photocurrent of approximately 25nA for all three resistor values. For the same illumination level applied to the sensor LED, measure the frequency generated at pin PB 3.
To calculate the reverse bias capacitance of the LED, substitute the delay loop time, the LED’s photocurrent, and the microcontroller’s logic 1 and logic 0 threshold voltages into the equation and solve for C, the LED’s effective reverse bias junction capacitance: (dV/dt)=(I/C), where dV is the measured logic 1 voltage minus the logic 0 voltage, dt is the measured discharge time of the LED’s internal capacitance, and I is the calculated value of the LED’s photocurrent source. The calculated values for the selected LEDs range from 25pF to 60pF. This range is comparable to the data in References 3 and 4, although Reference 3 only reports the current source values. The assembly language firmware for the AVR microcontroller can be downloaded from this design example, Table 1.
参考文献
1.Dietz, Paul, William Yerazunis, and Darren Leigh, "Very Low-Cost Sensing and Communication Using Bi-directional LEDs," Mitsubishi Research Laboratories, July 2003.
2.Petrie, Garry, "The Perfect LED Light," Resurgent Software, 2001.
3.Miyazaki, Eiichi, Shin Itami, and Tsutomu Araki, "Using a Light-Emitting Diode as a High Speed, Wavelength Selective Photodetector," Review of Scientific Instruments, Volume 69, No11, November 1998, pg 3751, http://rsi.aip.org.
4."Optocoupler Input Drive Circuits," Application Note AN-3001, Fairchild Semiconductor, 2002
Previous article:Discussion on LED Programming in Single Chip Microcomputer
Next article:LED BLU driver IC
Recommended ReadingLatest update time:2024-11-16 20:50
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- AD 20.2.5.213
- Use Solve
- [Raspberry Pi 4B Review] + Building a file server
- Capacitor connected between GS
- Based on LNA design
- Processor system architecture classification
- What is the relationship between PCB line width and via pad size?
- RS485 MODBUS RTU Communication Protocol
- [Online Live Broadcast] E-sports veterans say | As preparations for the e-sports competitions are underway, RIGOL will meet you in the air
- PPT materials