Photocell (CdS light sensor)
Senses how bright it is, so a light can turn on at dusk.
Light-dependent resistor: about 1 kΩ in bright light, about 10 kΩ in the dark. Read it as a voltage divider: one leg to 3.3/5 V, the other to an analog pin with a 10 kΩ resistor from that pin to GND. Symmetric, no polarity.
Electrical
- Supply voltage
- 0 to 100 V
- Talks over
- analog
Needs alongside it
- Needs a fixed 10 kΩ resistor from the analog pin to GND to form a voltage divider.
Pins
| Pin | Can do | Max V | Max mA |
|---|---|---|---|
| 1 | 3.3 V, 5 VEither leg. This one goes to the supply. | ||
| 2 | analogTo an analog pin, with 10 kΩ from that pin to GND. |
Size and material
- Size
- 5 × 2 × 4 mm
- Weight
- 0.25 g
- Material
- plastic
- Sold by the
- piece
Works with
- Arduino Uno R3
- Arduino Nano
- Arduino Mega 2560 Rev3
- Arduino UNO R4 WiFi
- Arduino UNO R4 Minima
- Arduino Nano ESP32
- ESP32 DevKitC (ESP32-WROOM-32, 38-pin)
- ESP32-S3-DevKitC-1 (N8R8)
- Adafruit ESP32-S3 Feather (4 MB flash, 2 MB PSRAM)
- Seeed XIAO ESP32S3 Sense (camera + mic)
- Seeed XIAO ESP32C3
- Seeed XIAO ESP32C6
- Raspberry Pi Pico (RP2040)
- Raspberry Pi Pico W (RP2040, Wi-Fi)
- Raspberry Pi Pico 2 (RP2350)
- Raspberry Pi Pico 2 W (RP2350, Wi-Fi)
- Seeed XIAO RP2040
- Seeed XIAO nRF52840 (Bluetooth LE)
Projects using it
No public project uses it yet. Design one that does.