Photoelectric sensors: photodiodes, phototransistors, LDRs
Photoemissive, photoconductive and photovoltaic sensors: photodiode modes and responsivity, transimpedance amplifiers, phototransistor gain, LDR gamma law and cut-off wavelength, with worked numericals.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Light sensors count bottles on a conveyor, read optical encoders, detect smoke, measure blood oxygen, receive fibre-optic data and switch street lights at dusk. Choosing between a photodiode, a phototransistor and an LDR is a trade-off between speed, sensitivity, linearity and cost, and the photodiode's responsivity calculation is a standard numerical.
Key ideas
Photoelectric effects — light delivers energy in photons of E = h·f = h·c/λ. A photon can do useful work in a detector only if its energy exceeds a threshold: the work function (photoemission) or the semiconductor band gap Eg. This sets a cut-off wavelength λc = h·c/Eg (≈ 1.24/Eg µm with Eg in eV): about 1.1 µm for silicon, 1.8 µm for germanium.
Three families:
- Photoemissive: photons eject electrons from a cathode into vacuum (phototube, photomultiplier tube). PMTs have enormous gain and are used for very weak light.
- Photoconductive: photons create carriers that raise the conductivity of a semiconductor — the LDR (light-dependent resistor, usually CdS or CdSe). Its resistance falls from megaohms in darkness to hundreds of ohms in bright light, approximately as
R = R1·(L/L1)^(−γ)with γ typically 0.7–0.9 (from the datasheet). CdS has a spectral response close to the human eye (peak around 550 nm). Response is slow (tens to hundreds of ms) because of long carrier lifetimes and trapping, with a "memory" of previous light levels. - Photovoltaic: photons create electron–hole pairs in a p–n junction's depletion region, and the built-in field separates them — the photodiode and solar cell.
Photodiode.
- Photoconductive mode (reverse biased): the photocurrent is linear in optical power over many decades, the depletion layer is wide and its capacitance small, so it is fast (PIN diodes reach GHz). Dark current (leakage) adds noise and an offset that doubles roughly every 10 °C.
- Photovoltaic mode (zero bias): no dark current, lowest noise, used for precision light meters; the open-circuit voltage is logarithmic in light, so it is read with a short-circuit current (transimpedance) amplifier.
- Responsivity R = I_p/P (A/W) = η·q·λ/(h·c), where η is quantum efficiency. Silicon peaks at about 0.5–0.6 A/W in the near IR.
- Transimpedance amplifier: the photodiode drives an op-amp inverting input with feedback resistor Rf, so
Vo = −I_p·Rf, holding the diode at zero (or fixed) bias. - Avalanche photodiodes add internal multiplication at high reverse bias.
Phototransistor. A bipolar transistor whose collector–base junction acts as a photodiode. The photocurrent becomes base current and is multiplied by the current gain: I_C ≈ (β + 1)·I_p. Hence 100–1000 times the photodiode current, but the large collector–base capacitance is multiplied too (Miller effect), so response is slower (µs) and less linear, and gain varies with temperature and from device to device. Photodarlingtons give even more gain and are slower still.
Optical switching sensors pair an LED (often IR, modulated to reject ambient light) with a detector in through-beam, retro-reflective or diffuse configurations; optocouplers use the same pair for galvanic isolation.
Formulas
E = h·f = h·c/λ
E = photon energy (J); h = 6.626 × 10⁻³⁴ J·s; c = 2.998 × 10⁸ m/s; λ = wavelength (m).
λc = h·c/Eg ≈ 1.24/Eg (λc in µm, Eg in eV)
I_p = η·q·P/(h·f) = R·P, R = η·q·λ/(h·c)
I_p = photocurrent (A); η = quantum efficiency; q = 1.602 × 10⁻¹⁹ C; P = optical power (W); R = responsivity (A/W).
Vo = −I_p·Rf (transimpedance amplifier)
Rf = feedback resistance (Ω).
I_C ≈ (β + 1)·I_p (phototransistor)
β = current gain.
R = R1·(L/L1)^(−γ) (LDR)
L = illuminance (lux); R1 = resistance at L1; γ = datasheet exponent.
Worked examples
Example 1 — photodiode responsivity and TIA. A silicon photodiode with η = 0.8 receives 100 µW at 850 nm. (a) Find responsivity and photocurrent. (b) It feeds a transimpedance amplifier with Rf = 10 kΩ. Find Vo. (c) Can it detect 1.3 µm light?
R = η·q·λ/(h·c) = 0.8 × 1.602 × 10⁻¹⁹ × 850 × 10⁻⁹ / (6.626 × 10⁻³⁴ × 2.998 × 10⁸) = 0.548 A/W.I_p = R·P = 0.548 × 100 × 10⁻⁶ = 54.8 µA.Vo = −I_p·Rf = −54.8 × 10⁻⁶ × 10⁴ = −0.548 V.- Silicon:
λc = 1.24/1.12 = 1.11 µm< 1.3 µm, so no — use Ge or InGaAs.
Answer: R = 0.548 A/W, I_p = 54.8 µA, Vo = −0.548 V; 1.3 µm is beyond silicon's cut-off.
Example 2 — LDR divider and phototransistor (GATE level). (a) An LDR is 10 kΩ at 100 lux with γ = 0.7. It is the upper arm of a divider with a 10 kΩ lower resistor on 5 V; the output is taken across the 10 kΩ. Find the LDR resistance and output at 500 lux. (b) A phototransistor's collector–base junction produces 2 µA of photocurrent and β = 100. Find I_C.
R = 10 × (500/100)^(−0.7) = 10 × 5^(−0.7) = 10 × 0.3241 = 3.24 kΩ.Vo = 5 × 10/(10 + 3.24) = 3.78 V(it was 2.50 V at 100 lux).I_C = (β + 1)·I_p = 101 × 2 µA = 202 µA ≈ 0.2 mA.
Answer: (a) 3.24 kΩ, 3.78 V; (b) about 0.20 mA.
Common mistakes
- Forgetting the electron charge: I = η·q·P/(hf), not η·P/(hf) (that is photons per second).
- Using frequency and wavelength inconsistently; convert nm to m.
- Assuming an LDR is linear or exactly inversely proportional to light; use the γ law from the datasheet.
- Claiming phototransistors are faster than photodiodes — gain costs bandwidth.
- Forward-biasing a photodiode; it must be reverse or zero biased.
- Ignoring the cut-off wavelength when choosing a detector material.
For GATE IN
NAT questions: photon energy, photocurrent from power and quantum efficiency, responsivity, cut-off wavelength from band gap, transimpedance output, phototransistor collector current, LDR divider outputs. MCQs: compare photoemissive/photoconductive/photovoltaic devices, modes of photodiode operation, speed and linearity rankings. Keep hc/q = 1.24 µm·eV in mind.
Quick check
- What is the cut-off wavelength of a material with Eg = 1.42 eV?
- Responsivity 0.5 A/W, power 20 µW, Rf = 100 kΩ. Output magnitude?
- Rank photodiode, phototransistor and LDR by speed.
- Which photodiode mode gives no dark current? Answers: 1. 1.24/1.42 = 0.873 µm; 2. 10 µA × 100 kΩ = 1 V; 3. photodiode fastest, then phototransistor, then LDR; 4. photovoltaic (zero-bias) mode.
Interview questions
All Sensors and Transducers interview questionsTry answering each one aloud before you open it.
1.What is a photoelectric sensor and how does it work?Concept
A photoelectric sensor is a device that detects the presence or absence of an object using a light transmitter, often infrared, and a photoelectric receiver. It works by emitting a light beam from the transmitter, which is then detected by the receiver. If an object interrupts the light beam, the sensor detects this change and triggers an output signal.
2.Explain the working principle of a photodiode.Concept
A photodiode is a semiconductor device that converts light into an electrical current. It operates in reverse bias, where the current is generated when photons are absorbed in the photodiode's depletion region, creating electron-hole pairs. The current is proportional to the intensity of the incident light, making photodiodes useful for light detection applications.
3.What are the differences between a photodiode and a phototransistor?Concept
A photodiode is a semiconductor device that generates a current when exposed to light, while a phototransistor is essentially a photodiode with amplification capabilities. Phototransistors have higher sensitivity and can produce a larger output current compared to photodiodes. However, photodiodes have faster response times and are more suitable for high-speed applications.
4.Describe how a Light Dependent Resistor (LDR) functions.Concept
An LDR, or Light Dependent Resistor, is a resistor whose resistance decreases with increasing incident light intensity. It is made of a high-resistance semiconductor material. When light falls on the LDR, photons are absorbed, and the energy is used to free electrons, reducing the resistance and allowing more current to pass through.
5.Why are photodiodes preferred over LDRs in high-speed applications?Application
A reverse-biased photodiode collects carriers generated in its depletion region by drift in a strong field, so it responds in nanoseconds to microseconds (PIN diodes reach GHz). An LDR depends on photoconductivity in a bulk material with long carrier lifetimes and trapping, so its resistance takes tens to hundreds of milliseconds to settle and shows memory of previous light levels. Photodiodes are also linear in optical power, which LDRs are not.
6.What happens if a phototransistor is used in a circuit designed for a photodiode?Application
If a phototransistor is used in a circuit designed for a photodiode, the circuit may experience higher sensitivity and a larger output current than expected. This could lead to saturation or incorrect operation if the circuit is not designed to handle the increased current. Additionally, the slower response time of the phototransistor compared to the photodiode might affect the performance in high-speed applications.
7.In what applications would you use an LDR instead of a photodiode or phototransistor?Application
LDRs are suitable for applications where cost is a concern and high-speed response is not critical. They are commonly used in light-sensing circuits for street lighting, night lights, and other applications where the light level changes slowly. LDRs are also used in devices where the exact light level is not critical, but a general indication of light presence is sufficient.
8.An LDR has a resistance of 10 kΩ at 100 lux. Estimate its resistance at 500 lux.Numerical
LDR resistance follows approximately R = R1·(L/L1)^(−γ), with γ typically 0.7–0.9 from the datasheet. With γ = 0.7, R = 10 × 5^(−0.7) ≈ 3.2 kΩ; only if γ = 1 (exact inverse proportionality) would it be 2 kΩ. So the estimate depends on the device's gamma, and an interviewer will expect you to say so rather than assume linearity.
9.A photodiode generates a current of 2 µA when exposed to a light intensity of 1000 lux. What current would it generate at 2000 lux, assuming linearity?Numerical
Assuming a linear relationship between light intensity and current, the current generated at 2000 lux can be calculated by doubling the current at 1000 lux. Therefore, the current at 2000 lux would be 2 µA × (2000 / 1000) = 4 µA.
10.Explain why phototransistors are not ideal for detecting rapid changes in light intensity.Application
In a phototransistor the large-area collector–base junction acts as the photodiode, and its capacitance is effectively multiplied by the transistor's gain (Miller effect), so it charges slowly through the photocurrent. Rise and fall times are typically microseconds, against nanoseconds for a photodiode, and photodarlingtons are slower still. The gain also varies with temperature and current, so linearity is poorer; phototransistors suit on/off sensing where sensitivity matters more than speed.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?