A photoresistor, also known as a light-dependent resistor (LDR), changes its electrical resistance based on the amount of light it receives. In darkness, its resistance can exceed 1 megohm; under bright light, it drops below 1 kilohm. This behavior makes it ideal for detecting ambient light levels in electronic systems.
Photoresistors operate through the photoconductivity effect. When photons strike the semiconductor material-typically cadmium sulfide (CdS)-they excite electrons, allowing more current to flow. The more light present, the lower the resistance. This inverse relationship between light intensity and resistance is central to its function.
Unlike photodiodes or phototransistors, which respond quickly and precisely to light, photoresistors are slow to react-taking tens to hundreds of milliseconds to adjust. They're also less accurate and sensitive, but they're inexpensive and easy to integrate into basic circuits. These trade-offs define their niche.
Inside a photoresistor, a thin layer of semiconductor material forms a resistive path between two electrodes. When light hits the surface, photons transfer energy to electrons in the valence band, promoting them to the conduction band. This increases the number of charge carriers available to conduct electricity.
The change in resistance is non-linear. For example, a typical CdS-based LDR may have a resistance of 1 MΩ in complete darkness and drop to 1 kΩ under direct sunlight. This wide changing range allows it to cover many lighting conditions, though not with precision.
Because resistance varies with light intensity, the device is often used in voltage divider circuits. One resistor is fixed; the other is the photoresistor. As light changes, the voltage at the junction shifts. A microcontroller or comparator can read this voltage to trigger actions like turning on lights or adjusting screen brightness.
Photoresistors are primarily categorized by their semiconductor materials, each tuned for different light spectra:
| Material | Spectral Response | Common Use Cases |
|---|---|---|
| Cadmium Sulfide (CdS) | Visible light (400-700 nm), peak sensitivity around 550 nm | General-purpose light sensing, automatic night lights, camera exposure control |
| Cadmium Selenide (CdSe) | Visible to near-infrared (600-1100 nm), faster response | Industrial automation, security systems, motion detectors |
| Lead Sulfide (PbS) | Infrared (1-3 μm), requires cooling for best performance | Scientific instruments, gas detection, thermal imaging |
CdS is the most common due to its cost-effectiveness and good response in visible light. CdSe offers faster reaction times but is more expensive and less stable over time. PbS devices are used in specialized applications requiring infrared detection, such as monitoring gas emissions.
Non-obvious fact: Many photoresistors are sensitive to infrared light, even if not designed for it. A remote control signal (which uses IR LEDs) can cause a CdS LDR to register a false light reading. This is why some designs include filters or use multiple sensors to avoid interference.
Photoresistors appear in everyday electronics where light detection is needed but high precision isn't required. Common applications include:
One real-world example: a solar-powered garden light uses a photoresistor to detect sunset. When ambient light drops below ~10 lux, the circuit activates a relay, switching on the LED. During daylight, the LDR keeps the circuit off, conserving battery power.
Another example: in a classroom project, students built a light-activated alarm using an Arduino. The photoresistor was wired into a voltage divider. When a flashlight beam hit it during class hours, the Arduino detected the resistance drop and triggered a buzzer. The system ignored ambient light during the day because the threshold was set above normal daylight levels.
Photoresistors are often mistaken for photodiodes or phototransistors. While all three detect light, they differ in speed, sensitivity, and output type. A photodiode generates a small current proportional to light intensity and responds in nanoseconds. A phototransistor amplifies this current and switches faster than an LDR. A photoresistor only changes resistance and takes seconds to stabilize.
Another confusion: people assume photoresistors measure light intensity in lux. They don't. They provide relative resistance values. To convert resistance to lux, you need a calibration curve specific to the model and environment. Without calibration, readings are qualitative, not quantitative.
I once tested a batch of CdS LDRs from a hobby kit. All showed similar resistance in daylight, but their responses varied widely under low light. One dropped to 100 kΩ at 1 lux, while another stayed above 500 kΩ. This inconsistency highlights why photoresistors aren't suitable for scientific measurements without individual calibration.
Also, photoresistors degrade over time. Prolonged exposure to UV light or high temperatures can permanently alter their sensitivity. Some manufacturers rate lifespan at 10,000 hours of continuous use before drift exceeds 10%. This is critical in long-term installations like outdoor lighting controls.
A photoresistor detects light by changing its resistance. It's simple, affordable, and effective for basic light-sensing tasks. While not precise or fast, it remains widely used in consumer electronics, education, and automation. Understanding its limitations-especially its non-linear response and lack of absolute measurement-helps avoid misuse in sensitive applications.
For those building circuits involving ambient light detection, a photoresistor provides a low-cost entry point. Just remember: it senses light, not color, not intensity in lux, and not rapid changes. Its strength lies in simplicity, not accuracy.