Skip to content
Free IDE

← Components

LDR (GL5528)

A resistor that changes with light: in the light its resistance drops, in the dark it rises a lot. Use it with a fixed resistor to make a voltage divider and read it with the ADC.

Pinout

12
PinConnect toNote
13V3no polarity
2GPIO with ADC + 10 kΩ resistor to GNDvoltage divider
FastTeacherFor teachers

From the syllabus to a planned semester

  • Teaching plan and calendar built automatically
  • Class diary ready to paste into SIGA
  • Slides and exercise lists with answer keys
Meet FastTeacher

Free Community edition · Windows

MicroPython example

from machine import ADC, Pin
import time

luz = ADC(Pin(35))  # 3V3 → LDR → GPIO35 → 10 kΩ → GND
luz.atten(ADC.ATTN_11DB)

while True:
    print(luz.read_u16())
    time.sleep(0.5)

Specifications

ItemValueSource
Resistance at 10 lux10–20 kΩDatasheet GL55xx (GL5528 series), Seeed / Senba — Under review: confirm the range in the original PDF
Resistance in the dark≥ 1 MΩDatasheet GL55xx (GL5528 series), Seeed / Senba
Gamma (10–100 lux)0.7: R ≈ R10 × (lux/10)^(−0.7)Datasheet GL55xx (GL5528 series), Seeed / Senba
Max. voltage / power150 V / 100 mWDatasheet GL55xx (GL5528 series), Seeed / Senba

Values marked "Under review" will still be checked against the parts in the lab.

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever

FastTeacherFor teachers

From the syllabus to a planned semester

  • Teaching plan and calendar built automatically
  • Class diary ready to paste into SIGA
  • Slides and exercise lists with answer keys
Meet FastTeacher

Free Community edition · Windows

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever