S29GL5528 photocell
Light LDR
Measures how bright it is.
Loading 3D
Drag to orbit · scroll to zoom · double-click to reset
Scan the back of the board to open this page.builtbytyler.com/S29
Try it
Cover it, then shine a light on it
AO=180 darkAO=1900 roomAO=3900 torchAO=1850 room
Brighter light = higher voltage on AO.
/*
BuiltByTyler Sensor Kit - S29 LIGHT LDR (GL5528 photocell)
Board: ESP32-WROOM-32 DevKit V1 (30-pin), Arduino-ESP32 core 3.x, "ESP32 Dev Module"
Reads the light level. Brighter light = higher AO.
Wiring (module pin -> ESP32 pin):
GND -> GND
VCC -> 3V3
AO -> GPIO 34
Library: none needed
Serial Monitor: 115200 baud
*/
#define AO_PIN 34
void setup() {
Serial.begin(115200);
}
void loop() {
int ao = analogRead(AO_PIN); // 0..4095
int mv = analogReadMilliVolts(AO_PIN); // same reading in millivolts
const char *label = ao < 500 ? "dark" : (ao < 2500 ? "room" : "bright");
Serial.printf("AO=%4d %4d mV %s\n", ao, mv, label); // dark/room/bright are rough guesses
delay(300);
}
Not for sale yet. Planned price $79, shipping included. Join the waitlist and we'll email you once when the kit is ready. Nothing else.