A foto resistor (technically a photoresistor or Light Dependent Resistor, LDR) is a passive, light-sensitive component whose electrical resistance decreases as incident light intensity increases. If you are building a basic light-sensing circuit, a standard 5mm Cadmium Sulfide (CdS) cell like the GL5528 will measure 10kΩ to 20kΩ at 10 lux (twilight) and drop to 2kΩ to 5kΩ at 100 lux (overcast day), while exceeding 1MΩ in total darkness. Unlike active semiconductor sensors, it requires no bias voltage to function and operates on pure photoconductivity, making it a staple in analog dusk-to-dawn controllers, solar trackers, and camera light meters.

Quick Spec Benchmark (GL5528): Peak Spectral Response: 540nm (Green) | Max Voltage: 150VDC | Dark Resistance: >1MΩ | 10 Lux Resistance: 10-20kΩ | Response Time: ~20ms

Material Types and Selection Criteria

Not all light-dependent resistors are created equal. The semiconductor material used in the serpentine trace dictates the spectral response, temperature stability, and environmental compliance. Choosing the wrong chemistry is the most common reason a DIY light sensor fails in the field.

Comparison of Common Foto Resistor Materials
Material Construction & Spectral Peak Tolerance & Tempco Typical Use Case
Cadmium Sulfide (CdS) Ceramic substrate, CdS trace. Peaks at 540nm (visible green/yellow). ±20% batch variance. Negative tempco (resistance drops as heat rises). Streetlights, nightlights, analog camera meters, hobbyist dusk-to-dawn relays.
Lead Sulfide (PbS) Epitaxial layer on glass. Peaks at 1.5µm - 3.0µm (Mid-Infrared). ±30% variance. Positive tempco. Requires thermoelectric cooling for precision. Flame detection, gas analysis, industrial IR thermal sensing.
Gallium Nitride (GaN) Silicon carbide or sapphire substrate. Peaks at 200nm - 400nm (Ultraviolet). ±10% variance. Highly stable across -40°C to +100°C. UV index monitoring, sterilization chamber dosimetry, arc welding sensors.

Which type for which job? For 95% of hobbyist and home-automation visible-light tasks, the CdS cell is the correct choice due to its low cost ($0.10 to $0.50) and high native resistance, which allows it to drive simple voltage dividers without an op-amp. However, if your application involves detecting heat signatures or flames, you must step up to a PbS cell. If you are measuring UV exposure for a reptile enclosure or a resin-curing station, CdS is entirely blind to UV; you must use a GaN sensor or a specialized silicon photodiode with a UV-pass filter.

Decoding Physical Markings and Spec Sheets

Unlike standard carbon film resistors that use color bands, a foto resistor rarely has complex alphanumeric codes. Instead, manufacturers rely on physical dimensions and a simplified numbering system to denote specifications. According to standard electronics component conventions, here is how to read the physical part:

  • The '55' Prefix (e.g., GL5528, GL5516, GL5539): The '55' indicates a standard 5mm diameter ceramic substrate. If you see a '75' or '125', it denotes 7mm or 12mm substrates, which offer higher wattage dissipation and faster response times due to larger surface areas.
  • The Suffix (e.g., '28' vs '16'): This number defines the specific resistance curve and dark resistance rating. A GL5516 has a lower dark resistance (~0.5MΩ) and lower 10-lux resistance (5-10kΩ), making it more sensitive in low-light conditions. A GL5528 has a higher dark resistance (>1MΩ) and 10-20kΩ at 10 lux, making it better for distinct day/night thresholding.
  • Color Dots: Some manufacturers (like Advanced Photonix or vintage Clairex cells) use a painted dot on the side. A red dot typically indicates a standard visible-light CdS cell, while a black or unpainted casing might indicate an IR-sensitive variant or a specialized high-voltage cell.
RoHS and Toxicity Warning: Cadmium Sulfide is a heavy metal and is restricted under RoHS directives for new commercial electronics in the EU and UK. While perfectly legal for hobbyist use and repair of legacy equipment, never sand, crush, or burn a CdS foto resistor. If the epoxy casing cracks, dispose of it according to local hazardous e-waste guidelines.

Real-World Scenario: The Dusk-to-Dawn Relay Failure

To understand how spectral mismatch and temperature coefficients ruin a theoretically sound circuit, let us walk through a bench failure I diagnosed on an outdoor 12V DC control board meant to trigger a 120V AC security light.

The Setup

The circuit used a classic voltage divider. A 10kΩ fixed resistor was tied to ground, and a GL5528 LDR was tied to the 12V supply. The midpoint fed the non-inverting input of an LM393 comparator, with a 6.0V reference on the inverting input. As ambient light dropped, the LDR resistance increased, raising the midpoint voltage until it crossed 6.0V, triggering the relay.

The Numbers

On paper, the math was flawless. At 100 lux (daylight), the LDR measured 5kΩ. The midpoint voltage was 12V * (5k / (10k + 5k)) = 4.0V. The relay stayed off. At 10 lux (dusk), the LDR rose to 15kΩ. The midpoint voltage became 12V * (15k / (10k + 15k)) = 7.2V. This easily crossed the 6.0V threshold, clicking the relay on.

The Outcome and What Went Wrong

In the field, the security light began chatter-failing (cycling on and off rapidly) every evening exactly when the municipal High Pressure Sodium (HPS) streetlamp three houses down turned on. Furthermore, on cold winter nights, the light would fail to turn on until it was pitch black.

The Diagnosis: Two compounding physics issues. First, HPS lamps emit heavily in the red and near-infrared spectrum (600nm+). While CdS cells peak at 540nm (green), they maintain high sensitivity out to 700nm. The streetlamp was artificially dropping the LDR's resistance, fooling the circuit into thinking the sun was still up. Second, CdS cells have a negative temperature coefficient. At 5°C, the dark resistance of the GL5528 shifted upward by nearly 30%, skewing the voltage divider curve and delaying the 6.0V trip point far past actual dusk.

The Fix: I placed a piece of Kodak Wratten 58 (green) gel filter over the LDR to block the red/IR streetlamp bleed. To solve the temperature drift, I swapped the 10kΩ ground resistor for a 15kΩ resistor and added a 1MΩ positive feedback resistor across the comparator pins to introduce 0.5V of hysteresis, eliminating the relay chatter. For a deeper look into how semiconductor photoconductivity behaves under thermal stress, consult standard optoelectronics textbooks.

Failure Modes and Visual Symptoms

When a foto resistor fails, it rarely just stops working; it usually degrades in specific, diagnosable ways. Inspect the component under a bright bench light and a 10x loupe to identify these failure modes:

  1. Moisture Ingress (Delamination):
    • Visual Symptom: A milky, cloudy haze visible just beneath the clear epoxy dome. The serpentine cadmium trace may look fractured.
    • Electrical Symptom: The sensor never reaches its rated dark resistance (stuck around 50kΩ instead of 1MΩ). Moisture creates a parallel leakage path across the ceramic substrate.
  2. Thermal Runaway / Overcurrent:
    • Visual Symptom: The epoxy top is scorched, yellowed, or blistered. The leads may show heat-discoloration (blue/brown) near the base.
    • Electrical Symptom: Permanently low resistance (acting like a 100Ω fixed resistor) or completely open-circuit. This happens when the LDR is placed in a circuit without a current-limiting series resistor, exceeding its 50mW to 100mW power dissipation rating.
  3. Cadmium Migration (Dendrite Growth):
    • Visual Symptom: Requires 20x magnification. You will see microscopic, fern-like dark tracks bridging the gaps between the zig-zag traces.
    • Electrical Symptom: Noisy, fluctuating resistance. The multimeter reading will jump erratically even in stable lighting. This is caused by prolonged exposure to high humidity combined with a DC bias voltage, causing cadmium ions to migrate across the substrate.

Safe Substitution: When the Exact Part is Missing

Suppose you are repairing a legacy commercial device, and the original CdS cell is dead. Because of RoHS restrictions, sourcing high-quality CdS cells is becoming harder, and you need a modern, RoHS-compliant substitute. The standard bench swap is replacing the passive LDR with an active NPN Phototransistor (like the Vishay BPW17N or the OSRAM SFH300).

However, you cannot simply desolder the LDR and solder in a phototransistor. An LDR is a variable resistor; a phototransistor is a light-controlled current source. You must reconfigure the bias network.

Step-by-Step Substitution Guide

  1. Remove the LDR and the original voltage divider resistors. Clear the pads on your PCB or breadboard.
  2. Identify the Phototransistor Pinout. For a standard 3mm or 5mm T-1 3/4 package (like the BPW17N), the shorter lead is the Emitter (connects to Ground) and the longer lead is the Collector (connects to the load/pull-up). The flat spot on the plastic lens rim also indicates the Emitter side.
  3. Install a Pull-Up Resistor. Because a phototransistor sinks current when illuminated, place a 100kΩ to 470kΩ resistor between your positive supply (e.g., 5V or 12V) and the Collector. (Use a higher value than you would with an LDR, as phototransistors only pass microamps to low milliamps).
  4. Wire the Output. The junction between the Collector and the pull-up resistor is now your analog output. In bright light, the phototransistor turns on, pulling the voltage near 0V (Ground). In darkness, it turns off, and the pull-up resistor pulls the voltage to VCC. Note: This logic is inverted compared to a top-mounted LDR.
  5. Adjust the Comparator Threshold. Recalculate your trip voltage. A BPW17N under 100 lux might sink 50µA. With a 220kΩ pull-up, the voltage drop is 50µA * 220kΩ = 11V. You will need to adjust your comparator's reference voltage to match this new, much lower current profile.

By understanding the underlying physics of the foto resistor and its modern semiconductor alternatives, you can move beyond copy-pasting basic schematics and actually engineer robust, environment-proof light-sensing circuits that survive the bench and the weather.