Drafting a reliable light dependent resistor diagram starts long before you place the component on a breadboard. A photoresistor (LDR) is a passive, light-sensitive semiconductor whose bulk resistance drops as incident photons excite electrons across its bandgap. However, treating all LDRs as interchangeable variable resistors is a common bench mistake that leads to erratic switching, thermal drift, and burned-out transistor junctions.

The exact topology of your circuit—whether a simple analog voltage divider, a discrete transistor switch, or an op-amp comparator with hysteresis—must be matched to the specific semiconductor material (Cadmium Sulfide, Lead Sulfide, or Amorphous Silicon) and its dark/light resistance curve. Below is a deep-dive into the material specifications, physical markings, practical circuit diagrams, and failure modes you need to design robust optoelectronic systems.

LDR Specification & Material Comparison Matrix

Not all photoresistors react to the same light spectrum. A Cadmium Sulfide (CdS) cell mimics the human eye and is ideal for ambient room-lighting controls, while a Lead Sulfide (PbS) cell is blind to visible light and strictly used for infrared (IR) flame detection. Selecting the wrong material for your light dependent resistor diagram will result in a circuit that never triggers, or triggers constantly from invisible IR heat sources.

Material Peak Wavelength Dark Resistance (Typ) Light Resistance (10 lux) Tempco (Resistance) Typical Application
CdS (Cadmium Sulfide)
e.g., GL5528, VT935G
540 nm (Green) 1 MΩ to 10 MΩ 10 kΩ to 20 kΩ -0.5% / °C Streetlights, nightlights, camera exposure meters
CdSe (Cadmium Selenide)
e.g., PDV-P9203
720 nm (Red/Near-IR) 500 kΩ 1 kΩ to 5 kΩ -0.8% / °C Fast-response optical switches, laser tripwires
PbS (Lead Sulfide)
e.g., P9918
2000 nm (Mid-IR) 100 kΩ to 1 MΩ N/A (IR dependent) +0.2% / °C Flame detectors, IR spectroscopy, gas analysis
a-Si (Amorphous Silicon)
e.g., NSL-32
600 nm (Visible) 10 MΩ to 50 MΩ 50 kΩ to 100 kΩ -0.2% / °C LCD backlight dimming, RoHS-compliant consumer electronics

Note: The negative temperature coefficient (Tempco) for CdS and CdSe means their resistance drops as they heat up, which can cause thermal runaway in high-current circuits if not properly current-limited. For deeper semiconductor physics, refer to the All About Circuits semiconductor text.

Decoding Physical Markings and Safe Substitution Rules

Unlike standard 1/4W carbon film resistors, LDRs do not use EIA color bands. If you are scavenging parts or trying to replace a blown cell on a legacy PCB, you have to read the alphanumeric stamps and physical cues.

Reading the Markings

  • The '55' Series Prefix: The most common hobbyist LDR is the GL5528. The '55' designates the CdS material family and standard 5mm epoxy dome package. The trailing digits (e.g., 16, 28, 37, 49) indicate the specific light/dark resistance bin. A GL5516 has a light resistance of 5-10 kΩ, while a GL5549 sits at 45-120 kΩ at 10 lux.
  • Color Dots: Some manufacturers (like PerkinElmer/Excelitas) use a colored dot on the side of the epoxy. A green dot typically signifies a standard CdS cell, while a red dot indicates a CdSe cell with faster response times but higher dark-current noise.
  • Optocoupler Packages: If your LDR is housed in a 4-pin DIP package (like the NSL-32SR3), it is actually an opto-isolator containing an LED and an a-Si or CdS photoresistor. The marking will include a manufacturer prefix (e.g., 'NSL') and a suffix denoting the LED forward voltage and LDR sensitivity bin.

How to Substitute Safely

When the exact part is missing, never swap an LDR based solely on physical size. You must match the resistance at the specific lux level where your circuit is designed to trigger.

Substitution Math: If your original light dependent resistor diagram was designed around a GL5528 (10 kΩ at 10 lux) paired with a 10 kΩ fixed series resistor, the switching threshold is exactly 2.5V on a 5V rail. If you substitute it with a GL5516 (5 kΩ at 10 lux), your threshold drops to 1.66V, and the circuit will trigger in much darker conditions. To safely substitute the 5 kΩ cell and maintain the 2.5V threshold, you must halve the fixed series resistor to 5 kΩ.

Core Light Dependent Resistor Diagrams for Makers

Here are the three foundational topologies you will use in 95% of your builds, complete with the specific component values required to prevent common failure modes. For comprehensive passive component theory, Electronics Tutorials provides excellent baseline formulas.

1. The Analog Voltage Divider (Microcontroller Input)

This is the standard topology for feeding an LDR into an Arduino or ESP32 ADC pin. The LDR and a fixed resistor form a divider.

  • Wiring: VCC (5V) → LDR → ADC Pin → Fixed Resistor → GND.
  • Component Selection: Use a fixed resistor equal to the LDR's resistance at the exact light level you want to measure. For general room light (approx 50 lux) using a GL5528, the LDR resistance is roughly 4 kΩ. Use a 4.7 kΩ fixed resistor.
  • Gotcha: The output impedance of this divider changes with light. In bright sun (LDR = 50Ω), the output impedance is ~50Ω. In pitch black (LDR = 1MΩ), the output impedance is ~4.7kΩ. This is well within the <10kΩ source impedance requirement for the ATmega328P ADC, but if you use a 100kΩ fixed resistor for ultra-low power, you must add a 100nF ceramic capacitor between the ADC pin and GND to stabilize the sample-and-hold circuit.

2. The Discrete Transistor Switch (Relay/Motor Driver)

Used when you need a hard digital ON/OFF state without a microcontroller, such as a direct-drive dusk-to-dawn garden light.

  • Wiring: VCC (12V) → LDR → Base of NPN Transistor (2N2222). Emitter to GND. Collector drives the relay coil.
  • The Crucial Base Resistor: Never wire the LDR directly to the transistor base. In direct sunlight, a CdS cell can drop to 20Ω. With a 12V supply, that pushes 600mA into the base-emitter junction, instantly vaporizing the silicon. Always place a 1 kΩ to 4.7 kΩ series resistor between the LDR and the base to limit maximum base current to <20mA.

3. Op-Amp Comparator with Hysteresis (Chatter Prevention)

A simple transistor switch will cause a relay to rapidly click on and off (chatter) as clouds pass over the sensor at dusk. An LM393 comparator with positive feedback solves this.

  • Wiring: LDR voltage divider feeds the Inverting Input (-). A potentiometer sets the reference voltage on the Non-Inverting Input (+).
  • Hysteresis Loop: Wire a 1 MΩ feedback resistor from the LM393 Output back to the Non-Inverting Input (+). This creates a Schmitt trigger effect. The circuit might turn ON at 15 lux, but won't turn OFF until the light rises back to 25 lux, entirely eliminating relay chatter.

Failure Modes and Visual Diagnostics

Photoresistors are notoriously fragile compared to modern silicon photodiodes. When your light dependent resistor diagram stops working, inspect the component for these specific failure modes:

Failure Mode Visual Symptom Root Cause Bench Fix / Prevention
Dendrite Growth Dark, fuzzy metallic whiskers bridging the zig-zag trace under the epoxy dome. High humidity combined with high DC voltage causes cadmium ions to migrate across the substrate. Scrap the part. Prevent by conformal coating the LDR or keeping the voltage across the cell below 50V DC.
Photo-Fatigue (Memory) No visual change, but the 'dark resistance' permanently drops from 1MΩ to 50kΩ. Prolonged exposure to intense UV or bright sunlight creates persistent electron traps in the CdS crystal lattice. Store LDRs in dark bags. If fatigued, 'anneal' the part by baking it in a 60°C oven in total darkness for 24 hours.
UV Encapsulation Degradation The clear or tinted epoxy dome turns opaque yellow or develops micro-cracks. Continuous outdoor UV exposure breaks down the cheap epoxy used in hobby-grade (GL-series) cells. Use UV-stabilized glass-packaged LDRs (like the VT93 series) for permanent outdoor installations.
Lead Oxidation Green or white crust on the wire leads exactly where they enter the epoxy body. Galvanic corrosion from dissimilar metals in humid environments, causing high contact resistance. Snip the leads above the corrosion and re-solder. Seal the lead entry point with silicone RTV.

By matching the semiconductor material to your optical environment, calculating the exact voltage divider thresholds, and protecting the cell from dendrite growth and UV degradation, your LDR circuits will operate reliably for years. Always verify your specific component's datasheet for the exact lux-resistance curve before finalizing your PCB layout.