
Figure 1. LDR From Light to Circuit Output
A light dependent resistor is also called a photoresistor, photoconductive cell, or photocell. It is a two-terminal, normally nonpolar device whose resistance changes with illumination. The LDR does not independently produce a calibrated voltage or lux reading. A voltage divider, bridge, comparator, or ADC interface converts its resistance into a usable electrical signal.
LDRs fit low-cost relative-light detection, gradual brightness control, and light-versus-dark switching. A photodiode, phototransistor, or ambient-light IC is usually preferable when the application requires calibrated illuminance, fast pulse detection, infrared sensing, low sample variation, or a digital interface without analog calibration.
An LDR operates through photoconductivity. Photons absorbed by the photosensitive semiconductor increase the number of mobile charge carriers, which raises conductivity and lowers resistance. This mechanism differs from photovoltaic conversion. An LDR does not act as a solar cell or generate a useful output voltage by itself, so the surrounding circuit must provide electrical bias.

Figure 2. LDR Construction and Photoconductivity
A common cadmium-sulfide LDR uses a serpentine photosensitive track on an insulating substrate. Metal electrodes connect the track to two leads, and a light-transmitting coating protects the sensing surface. The long serpentine path provides a useful resistance range within a compact area, but material composition, track geometry, package construction, and manufacturing processes differ among products.
Resistance does not fall in direct proportion to illuminance. Over a limited range, many LDRs approximately follow a power-law relationship, so equal increases in lux do not create equal changes in resistance or divider voltage. Divider calculations must use the resistance range around the intended threshold or measurement range rather than assuming a linear lux conversion. Interpolation is only defensible within documented or measured conditions and does not turn an uncalibrated LDR into a lux meter.
LDR specifications are meaningful only with their stated illuminance, source spectrum or color temperature, delay, temperature, and bias conditions. The table compares the current Advanced Photonix PDV-P8103 Rev. B and PDV-P9203 Rev. A datasheets and explains how each item affects design.
|
Specification |
PDV-P8103
Rev. B |
PDV-P9203
Rev. A |
Condition
and Design Meaning |
|
Material and output |
CdS variable resistance |
CdS variable resistance |
Passive resistance output; requires
an external circuit |
|
Light resistance |
16 to 33 kΩ |
10 to 30 kΩ |
10 lux, 2856 K; product tolerance
directly affects divider voltage |
|
Minimum dark resistance |
0.5 MΩ |
5 MΩ |
Measured after the datasheet's
stated 10-second dark-recovery condition |
|
Sensitivity S |
0.75 typical |
0.90 typical |
S = [log(R10) - log(R100)] /
[log(E100) - log(E10)]. S is dimensionless. The Ω/lux unit printed in the
datasheets is inconsistent with this logarithmic ratio and should not be
treated as resistance per lux. |
|
Spectral response |
400 to 700 nm; peak not listed |
400 to 700 nm; 570 nm peak typical |
Different lamp and LED spectra can
produce different resistance at the same lux reading |
|
Response time |
60 ms rise; 25 ms fall typical |
60 ms rise; 25 ms fall typical |
10 lux, 2856 K; rise and fall are
separate and product-specific |
|
Voltage and power |
150 V peak; 90 mW |
150 V; 90 mW |
Absolute maximum ratings, not
preferred operating points |
|
Temperature |
-30°C to +75°C operating |
-30°C to +75°C operating |
Temperature and previous
illumination can shift resistance and recovery |
|
Package and assembly |
2-pin ceramic |
2-pin ceramic |
Manufacturer guidance excludes
vapor-phase and reflow soldering for these CdS parts |
The LDR position determines the output direction. With the LDR connected to the positive supply and a fixed resistor connected to ground, increasing light raises the output voltage. Reversing the two components makes increasing light lower the output voltage.

Figure 3. Bright-Rising and Dark-Rising Dividers
For the bright-rising configuration:
VOUT = VS × RF / (RLDR + RF)
For the dark-rising configuration:
VOUT = VS × RLDR / (RF + RLDR)
where VS is the divider supply in volts, VOUT is the output in volts, RF is the fixed resistance in ohms, and RLDR is the LDR resistance at the evaluated condition. These equations assume an unloaded divider. ADC input leakage, sampling capacitance, and external loading can change the result.
A fixed 10 kΩ resistor is common in tutorials, but it is not universal. The resistor should place the expected output range inside the ADC or comparator range near the intended operating point. One log-centered heuristic uses:
RF ≈ sqrt(Rmin × Rmax)
Here, Rmin and Rmax describe the LDR range at the target illuminance, not the full bright-to-dark range. A threshold at 10 lux and a threshold at 100 lux may require different resistor values.
This calculated example uses the PDV-P8103, a 3.3 V supply, and the datasheet's 16 kΩ to 33 kΩ range at 10 lux.
Rtarget = sqrt(16 kΩ × 33 kΩ) = 22.98 kΩ
The selected standard value is RF = 22 kΩ.
|
Evaluated
Condition |
LDR
Resistance |
Calculated
Output |
|
10 lux, low resistance limit |
16 kΩ |
1.91 V |
|
10 lux, high resistance limit |
33 kΩ |
1.32 V |
|
Minimum dark resistance |
500 kΩ |
No more than 0.139 V |
At the same specified 10-lux condition, unit tolerance produces a calculated output range of 1.32 V to 1.91 V. A fixed firmware threshold inside that range could classify two conforming devices differently.
Maximum LDR dissipation in this divider occurs when RLDR = RF:
PLDR,max = VS2 / (4RF) = (3.3 V)2 / (4 × 22 kΩ) = 0.124 mW
The calculated dissipation is far below the 90 mW absolute maximum rating, but it does not replace temperature and fault-condition checks.
The divider's Thevenin resistance is:
RTH = (RLDR × RF) / (RLDR + RF)
For this example, RTH ranges from approximately 9.3 kΩ at RLDR = 16 kΩ to 21.1 kΩ at RLDR = 500 kΩ. The selected ADC datasheet must allow enough acquisition time for its sampling capacitor to settle at that source impedance.
An added capacitor can reduce noise, but it also slows response:
τ = RTHC
The capacitance should follow the allowed response delay rather than an arbitrary filter value.

Figure 4. Complete LDR Comparator and Relay Driver
|
Method |
Main
Benefit |
Main
Limitation |
|
Comparator |
Direct threshold switching without
firmware |
Reference, hysteresis, and output
stage require hardware design |
|
Microcontroller ADC |
Calibration, averaging, delay, and
programmable thresholds |
Requires ADC-range, timing, and
firmware validation |
A comparator suits a fixed light-versus-dark decision. An ADC provides more control when the circuit must classify several light bands, compensate each assembled unit, or apply a timed switching rule.
A single switching threshold can cause rapid toggling when the sensed voltage sits near the boundary. Separate turn-on and turn-off thresholds create hysteresis. The threshold gap must exceed expected noise, ripple, optical variation, and component spread. Firmware can implement the same behavior with different ADC limits for entering and leaving a state.
Figure 4 shows a complete dark-activated example. LDR1 and R1 produce SENSE, while R2 and R3 establish VREF. R4 feeds back the output to create hysteresis. The TLV7041 has an open-drain output, so R5 provides the required pull-up. C1 is a 100 nF bypass capacitor connected across the comparator supply and placed close to U1.
R6 limits gate charging current and R7 holds the N-channel MOSFET off when the comparator output is not driven. K1 connects to its load supply, and D1 clamps the relay-coil voltage when Q1 turns off. The diode cathode connects to +VLOAD, and its anode connects to the MOSFET drain. The MOSFET, diode, relay, and supply must be selected for the actual coil current, voltage, switching rate, and temperature.
Dusk-to-Dawn Lighting Controller. The required response is normally slow enough to reject headlights, moving shadows, and brief weather changes. Calibrate day and night thresholds with the final window and installation geometry. The main failure risks are lamp feedback, dirt, condensation, replacement variation, and false switching from local light sources. A digital ambient-light sensor is preferable when the controller needs calibrated lux thresholds or repeatable behavior through a specified optical window.

Figure 5. Outdoor Dusk-Sensor Placement
Microcontroller Room-Light Classifier. The response should follow normal room-light changes without reacting to every brief shadow. Calibrate dark, dim, normal, and bright bands on each assembled design or on representative production samples. The main failure risk is placing fixed ADC thresholds inside the device-tolerance range. An ambient-light IC is preferable when units must report comparable lux values without individual analog calibration.
Automatic Display-Brightness Control. The response should be deliberately filtered so the display changes smoothly. Calibration must use the final product window while the display and indicator LEDs operate. The main failure risk is optical feedback from the display, internal reflections, or different source spectra. A human-eye-matched ambient-light IC is preferable when consistent response under daylight, fluorescent, and LED lighting is required.
Beam-Interruption Detector. The sensor response must settle within the minimum beam-interruption interval with margin. Calibrate using the final emitter wavelength, distance, alignment, aperture, and receiver threshold. The main failure risks are LDR latency, ambient-light interference, and mechanical misalignment. A wavelength-matched photodiode or phototransistor is preferable for short pulses, encoded light, infrared beams, or high repetition rates.
Response and accuracy terms are not directly interchangeable across sensor classes. An ambient-light IC integration time, for example, is not the same specification as an LDR rise or fall time.
|
Sensor |
Output |
Interface |
Response
Characteristics |
Suitable
Applications |
|
LDR |
Variable resistance |
Divider with ADC or comparator |
Nonlinear, spectrum-dependent, and
comparatively slow; wide product and sample variation |
Dusk control, relative visible-light
sensing, slow brightness control |
|
Photodiode |
Photocurrent |
Load resistor or transimpedance
amplifier |
Fast response and selectable
spectral range; signal current may require amplification |
Optical measurement, pulse
detection, communication, IR sensing |
|
Phototransistor |
Amplified photocurrent |
Load resistor or switching stage |
More gain than a photodiode but
greater gain and temperature variation |
Beam interruption, object detection,
simple light switching |
|
Ambient-light IC |
Analog or digital illuminance result |
ADC, I²C, or SMBus depending on
device |
Defined range, integration time, and
optical response; product-specific accuracy |
Display control, measured ambient
light, repeatable thresholds, data logging |
Marinho and colleagues calibrated a 0.4 × 0.5 cm2 LDR using a 6 W red LED lamp and a commercial lux meter positioned near the sensor. They varied the source distance and fitted the measurements with ln(R) = a + b ln(I), obtaining a = 3.95 ± 0.02 and b = -0.727 ± 0.005 for that sensor. The authors reported a working range of 10 to 103 lux and approximately 5% precision from calibration uncertainty for the red source. Their other sensor sizes produced different fit coefficients, which shows why a calibration should remain tied to the selected LDR, spectrum, geometry, and illuminance range.
Source:Marinho, F., Carvalho, C. M., Apolinário, F. R., and Paulucci, L., Measuring Light with Light-Dependent Resistors: An Easy Approach for Optics Experiments, European Journal of Physics, 40, 035801, 2019, doi:10.1088/1361-6404/ab11f1.
Dadi and Peravali developed a CdS-LDR sun-pointing sensor for a dual-axis photovoltaic tracker. Their fitted relationship between solar intensity and photoresistance had R2 = 0.99, and the complete tracking system produced a reported 50.63% power gain relative to the fixed panel in their experiment. Data were collected every 2 to 3 seconds from 06:32:00 to 17:38:33, including periods affected by cloud shading. The result supports calibrated differential LDR sensing for slow solar tracking, but the reported system gain also depends on the panel, mechanics, control algorithm, weather, and reference configuration and should not be treated as a universal LDR efficiency value.
Source: Dadi, V., and Peravali, S., Optimization of Light-Dependent Resistor Sensor for the Application of Solar Energy Tracking System, SN Applied Sciences, 2, 1499, 2020, doi:10.1007/s42452-020-03293-x.
Check the divider orientation, fixed resistor, supply, ADC reference, and wiring. Calculate the expected voltage from the measured LDR resistance before changing firmware. Excessive source impedance may require a longer ADC acquisition time or a buffer.
The circuit is normally functional if the voltage changes in the opposite direction. Swap the LDR and fixed-resistor positions or reverse the firmware interpretation. Do not reverse probe polarity because the LDR itself is nonpolar.
Log the raw divider voltage while the output toggles. Add hardware or firmware hysteresis, then check moving shadows, supply noise, lamp feedback, and reflective surfaces. Averaging alone may delay the fault without creating a stable threshold gap.
Compare the observed transition with the selected part's timing conditions. Previous illumination, temperature, test delay, and the chosen threshold can change the apparent recovery time. Replace the sensor technology if the required response remains outside the validated range.
Confirm the part number, light source, temperature, sensor position, meter, and delay. Component tolerance may explain the difference even when both parts comply with their datasheet. Unit calibration or wider thresholds may be required.
Compare the emitter wavelength with the LDR spectral-response data. A visible-light CdS part may respond differently to various LED spectra and is not a general infrared receiver. Use a wavelength-matched photodiode or phototransistor for IR detection.
An LDR works well for low-cost relative-light detection when its resistance range, spectral response, timing, and tolerance fit the circuit. Divider calculations must cover product spread, while thresholds require margin, hysteresis, and realistic optical placement. Calibrated lux measurement, short light pulses, infrared sensing, or low replacement variation may justify another sensor technology, and final approval should follow tests on representative hardware under the actual source, temperature, window, and enclosure conditions.
Technical References:
• Advanced Photonix, PDV-P8103 Rev. B Datasheet.
• Advanced Photonix, PDV-P9203 Rev. A Datasheet.
• Texas Instruments, TLV703x and TLV704x Low-Voltage Comparators Datasheet.
• Texas Instruments, Non-Inverting Comparator with Hysteresis Circuit, Rev. A.
• Texas Instruments, Using Motor Drivers to Drive Solenoids.
No. An exposed LDR divider and its control electronics should not connect directly to mains without a properly isolated and safety-rated design. Mains switching requires approved isolation, insulation, spacing, protection, and load-control components.
A phone application may support rough comparison, but it is not a traceable calibration reference. Phone sensors differ in spectrum, placement, optical filtering, and software processing. A calibrated lux meter is preferable when numerical illuminance accuracy matters.
Long leads add series resistance, insulation leakage, and coupled electrical noise. Series resistance has more influence when the illuminated LDR resistance is low, while leakage can dominate high-resistance dark measurements. Use clean connectors, twisted conductors, a receiving-end filter when allowed by the response target, and validation with the final cable length and environment.
In a bright-rising divider with the LDR on the supply side, an open LDR lets the fixed resistor pull the output near ground, while a shorted LDR drives the output near the supply. A reversed divider reverses those symptoms. Disconnect power before measuring the LDR directly with an ohmmeter.
Yes. Series connection raises the combined resistance, while parallel connection lowers it. The result follows the individual resistance values and illumination, so tolerance and unequal light exposure can produce a wide spread. A two-sensor directional detector normally needs a defined bridge or differential circuit and calibration rather than an assumed series or parallel response.
August 28th, 2024
July 29th, 2024
October 6th, 2024
July 4th, 2024
September 20th, 2025
September 15th, 2025
July 15th, 2024
April 22th, 2024
July 10th, 2024
November 15th, 2024









