CdS cells are little light sensors. As the squiggly face is exposed to more light, the resistance goes down. When its light, the resistance is about 5-10KΩ, when dark it goes up to 200KΩ.
To use, connect one side of the photo cell (either one, its symmetric) to power (for example 5V) and the other side to your microcontroller's analog input pin. Then connect a 10K pull-down resistor from that analog pin to ground. The voltage on the pin will be 2.5V or higher when its light out and near ground when its dark.
CdS photocells are not RoHS compliant, so if you need something equivalent but RoHS compiant, check out the photo transistor.
For a full tutorial with wiring diagrams, code examples and project ideas, please read the photocell tutorial page!
- Length: 4.46mm/0.18in
- Width: 5mm/0.20in
- Height: 2.09mm/0.08in
- Weight: 0.25g/0.01oz
- read the photocell tutorial page
- Electronic Animated Eyes using Teensy 3.1/3.2
- Mailbox Notification Service
- Create an Internet of Things Dashboard with Adafruit IO
- Madison's NeoClock - A PIC + KiCAD + NeoPixel adventure
- Collin's Lab: MIDI
- Cloud-Connected Weather Station with the Arduino Yun & Temboo
- Light-Activated Pixel Heart
- Adafruit Trinket-Modded Stuffed Animal
- Trinket / Gemma Blinky Eyes
- Trinket / Gemma Mini-Theramin
- Measuring Light with a BeagleBone Black
- Adafruit Data Logger Shield
- Arduino Lesson 12. LCD Displays - Part 2
- Arduino Lesson 10. Making Sounds
- Arduino Lesson 9. Sensing Light
- Basic Resistor Sensor Reading on Raspberry Pi