LDR (Light Dependent Resistor): Working Principle, Formulas, Types, and Applications

Share:
Electronic Sensors
LDR (Light Dependent Resistor): Working Principle, Formulas, Types, and Applications

A component with no polarity, no active circuitry, and only two legs can still tell a streetlight when to turn on. A light dependent resistor does that by changing something as basic as its own resistance, and the physics behind that change is worth understanding properly.

Photoconductivity Resistance vs Illuminance Voltage Divider Design

A light dependent resistor turns a physical quantity, light intensity, directly into an electrical one, resistance, without any amplifier, power supply, or active circuitry of its own.

An LDR, also called a light dependent resistor, photoresistor, or photoconductive cell, is a passive resistor whose resistance falls as the light falling on it increases. It works entirely on photoconductivity, a semiconductor effect where absorbed light photons free up charge carriers and make the material conduct better.

light dependent resistor

Light dependent resistors come in standard sizes, commonly 5 mm, 8 mm, 12 mm, and 25 mm, and show up anywhere a circuit needs to sense whether it is light or dark rather than measure light with scientific precision.

This guide covers how an LDR is built, the physics behind its working principle, the actual formula connecting resistance to light intensity, its response time behavior, how it compares to a photodiode, the two LDR types, how to wire and test one, and where LDRs get used in real designs.

How Light Dependent Resistors Are Made

A light dependent resistor starts with a photosensitive semiconductor material, most commonly cadmium sulfide (CdS), though lead sulfide, lead selenide, indium antimonide, and cadmium selenide are also used depending on the wavelength range needed.

That material is deposited in a zig zag, snake like pattern rather than a simple straight strip. The zig zag shape exists purely to maximize the effective surface area exposed to light within a small physical footprint, directly improving sensitivity.

Two metal contacts sit at either end of the zig zag track, providing the electrical connection to the rest of the circuit. A transparent protective coating is then applied over the whole assembly, shielding the photosensitive material from dust and moisture while still letting light reach it.

Advertisement
Advertisement

Light Dependent Resistor Working Principle

An LDR works on photoconductivity. When light strikes the photoconductive material, photons transfer their energy to electrons sitting in the valence band. If that energy is large enough, the electrons jump up into the conduction band, where they are free to move and carry current.

For this to happen at all, the incoming photon energy has to exceed the material's bandgap energy. That relationship follows directly from basic photon physics.

E = h × c / λ
  • E is the energy of an incoming photon
  • h is Planck's constant
  • c is the speed of light
  • λ is the wavelength of the incident light

Only photons with energy E at or above the semiconductor's bandgap energy can excite an electron into the conduction band. This is exactly why a light dependent resistor's sensitivity depends so heavily on the wavelength of light hitting it, not just its intensity.

More free electrons means more current flow for a given voltage, which is the same as saying the material's resistance has dropped. In complete darkness, a typical light dependent resistor sits at its highest resistance, often quoted around 10¹² ohms in the underlying semiconductor and commonly hundreds of kilohms to several megohms in a packaged device. That resistance falls steadily as light intensity increases.

The Resistance vs Illuminance Relationship

The relationship between a light dependent resistor's resistance and the light falling on it is not linear. It follows a power law, which is exactly what you see plotted as a straight line on the log log resistance versus illuminance graph in most photoresistor datasheets.

R = A × E−γ
  • R is the LDR resistance
  • A is a constant specific to the individual device
  • E is illuminance, typically in lux
  • γ (gamma) is the slope of the log log curve, commonly around 0.7 to 0.9 for CdS cells

A higher gamma means resistance drops more sharply for a given increase in light, which is why datasheets always specify gamma alongside the dark and bright resistance figures for any light dependent resistor rather than expecting users to calculate it from two data points alone.

Two light dependent resistors from the same production batch can still show a meaningful spread in resistance at identical light levels. Treat any single LDR reading as an estimate of light level, not a calibrated measurement, unless the specific unit has been individually characterized.

Key Insight
25mm light dependent resistor
A 25 mm light dependent resistor, showing the zig zag photoconductive track between its two metal contacts. Photo by Suyash.dwivedi, licensed CC BY SA 4.0, via Wikimedia Commons.
Advertisement
Advertisement

Response Time and Latency in Light Dependent Resistor Circuits

Latency shows up as the delay between a change in light level and the moment the LDR's resistance settles at its new stable value. This delay is not symmetric.

Going from dark to light, a light dependent resistor typically responds within tens of milliseconds. Going from light back to dark, the resistance can take up to roughly a second to fully stabilize, since carrier recombination is inherently slower than carrier generation.

Datasheets usually capture this by specifying dark resistance at fixed intervals after the light is removed, commonly at one second and five seconds, giving designers a concrete picture of how the device settles rather than a single averaged number.

This slow, asymmetric response rules LDRs out for applications needing fast light detection, such as optical communication. It is exactly the opposite in applications like audio compressors, where a gradual, smoothed response to changing signal levels is the whole point of choosing an LDR over a faster photodiode.

LDR vs Photodiode

LDR (Photoresistor)

A passive resistor with no PN junction. Slower response, larger resistance swing, and no polarity, so it can be wired either way around.

Passive, slow, forgiving

Photodiode

A semiconductor device built around a PN junction that converts light energy directly into electrical current. Fast response and polarity sensitive, suited to optical communication and precise light detection.

Junction based, fast, precise

Types of LDR: Intrinsic vs Extrinsic Photoresistors

Intrinsic Photoresistor

Made from pure, undoped semiconductor material such as silicon or germanium. Incident light with enough energy excites electrons directly from the valence band into the conduction band.

Pure semiconductor

Extrinsic Photoresistor

Made from a doped semiconductor, with impurities like phosphorus added deliberately. Extrinsic LDRs are generally designed for longer wavelengths, with a tendency toward infrared sensitivity.

Doped, longer wavelength

Wiring an LDR: The Voltage Divider Circuit

The most common way to use an LDR in a circuit is inside a voltage divider, pairing it with a fixed resistor so a changing resistance becomes a changing voltage that a microcontroller ADC or comparator can read.

Vout = Vin × R_fixed / (R_LDR + R_fixed)
  • Vin is the supply voltage
  • R_LDR is the LDR's current resistance
  • R_fixed is the chosen fixed resistor

Worked example: With a 5V supply, a 10 kΩ fixed resistor on top, and the LDR to ground, if the LDR sits at 1 kΩ in bright light, Vout equals 5V times 10kΩ divided by 11kΩ, which comes to about 4.5V. In darkness, if the LDR rises to 1 MΩ, Vout drops to roughly 0.05V. Swapping the LDR and fixed resistor positions inverts this relationship, which is exactly how designers choose whether a circuit should trigger on darkness or on brightness.

Watch: LDR Working Principle

This video walks through the same photoconductive behavior with a simple demonstration circuit.

Video: "Light Dependent Resistors (LDR): Working Principle", via YouTube.

How to Test an LDR

1

Set the multimeter to resistance mode

Select the ohms setting on a digital or analog multimeter before connecting anything.

2

Connect the probes

Since an LDR has no polarity, connect either probe to either leg of the component.

3

Shine light on the surface

Point a torch or bright light source directly at the LDR's face and note the reading.

4

Cover it or place it in darkness

Shade the LDR with your hand or move it into a dark space and note the new reading.

5

Compare the two readings

A working LDR shows a low resistance under light, sometimes as low as 100 ohms, and a high resistance in darkness, often into the megaohm range.

LDR Applications

💡

Automatic Street Lights

Switch on at dusk and off at dawn based purely on ambient light.

🔥

Smoke Detectors

Sense light scattering caused by smoke particles in the detection chamber.

📷

Camera Light Meters

Estimate ambient light to guide exposure settings.

🔒

Laser Security Systems

Detect an interruption in a laser beam when someone crosses it.

🎚️

Audio Dynamic Compressors

Use an LDR and LED pair to create smooth, gradual gain changes.

Clock Radios

Dim the display automatically as room light falls.

Advantages and Disadvantages of LDRs

✔ Advantages

  • Very low cost compared to photodiodes and phototransistors
  • No polarity, simplifying wiring and reducing installation errors
  • Large resistance swing makes light versus dark detection simple
  • Naturally smooths rapid light fluctuations without extra filtering

✘ Disadvantages

  • Slow, asymmetric response time unsuited to fast light detection
  • Significant unit to unit variation limits precise measurement
  • Sensitivity of a light dependent resistor is temperature dependent, adding drift in hot environments
  • CdS types contain cadmium, a restricted substance in many regions

Choosing the Right Light Dependent Resistor for a Project

1

Resistance Range

Match the dark and light resistance range to what the rest of the circuit, especially the fixed resistor in the divider, actually needs.

2

Spectral Response

Confirm the LDR's peak sensitivity, commonly around 550 nm for CdS types, lines up with the light source the application depends on.

3

Physical Size

Larger LDRs tend to offer more stable readings, while smaller ones respond faster and fit tighter enclosures.

4

Response Time

If the application genuinely needs fast detection, an LDR is the wrong component regardless of everything else, and a photodiode belongs there instead.

FAQs on Light Dependent Resistors

Why does a light dependent resistor's resistance decrease when light intensity increases?
More photons free more charge carriers in the semiconductor material, increasing conductivity, and conductivity is simply the reciprocal of resistance.
Can an LDR detect infrared light?
Standard CdS LDRs are tuned to visible light, roughly 400 to 700 nm, and respond poorly to infrared. Extrinsic photoresistors or dedicated IR photodiodes are used when infrared detection is the goal.
How does temperature affect an LDR?
Higher temperature increases electron activity in the photoconductive material, which lowers resistance somewhat independently of light level, introducing measurement drift in hot environments.
Why is a light dependent resistor made in a zig zag shape?
The zig zag pattern maximizes the effective surface area of photoconductive material exposed to light within a small physical footprint, directly improving sensitivity.
What is the typical dark resistance of a light dependent resistor?
Commonly hundreds of kilohms to several megohms, depending on the specific device, representing the maximum resistance in complete darkness.
Can a light dependent resistor be used for color sensing?
No. An LDR only responds to overall light intensity, not specific wavelengths or colors. Color sensing needs RGB photodiodes or a dedicated color sensor instead.
Is it safe to solder an LDR directly?
Use a low soldering iron temperature and keep contact time short, since excessive heat can alter the photoconductive material's characteristics. A heat sink clip on the lead helps protect the device.
Can bright light or a laser damage an LDR?
Yes. Prolonged exposure to extremely bright light, such as direct sunlight or a laser beam, can degrade the photoconductive material and permanently lower its resistance or cause outright failure.
What component pairs with an LDR in a voltage divider?
A fixed resistor, chosen so the divider's output voltage swings usefully across the range of light conditions the application needs to detect.
Are LDRs safe to handle given they contain cadmium?
CdS LDRs contain cadmium, a toxic heavy metal, so intact devices in normal use are not hazardous, but broken units should be handled carefully and disposed of according to local electronic waste regulations.

You May Also Like

Electrical Conductivity Explained: Definition, Formula, Unit, and Real Examples

Photoconductivity is really just electrical conductivity triggered by light instead of a fixed material property. This guide covers the conductivity formula, the SI unit, and how conductivity relates to resistivity, the same underlying physics an LDR relies on.

Read Full Article →

External References

These sources go deeper into photoresistor theory and specifications.

Advertisement
Advertisement

What we learn today

  • A light dependent resistor is a passive photoconductive resistor whose resistance falls as light intensity rises, governed by the power law R equals A times E to the negative gamma.
  • Photon energy must exceed the semiconductor's bandgap energy for photoconductivity to occur at all, linking LDR sensitivity directly to light wavelength.
  • Response time is slow and asymmetric, useful in applications wanting a smoothed response, unsuitable wherever fast light detection matters.
  • Intrinsic LDRs use pure semiconductors, while extrinsic LDRs use doped materials tuned toward longer, infrared leaning wavelengths.
  • A simple voltage divider with a fixed resistor turns an LDR's resistance swing into a usable analog voltage for any microcontroller or comparator circuit.
"I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!"

Leave a Reply

Your email address will not be published. Required fields are marked *