A Photoresistor (LDR) is a light-controlled variable resistor. Its resistance decreases as light intensity increases, making it perfect for detecting brightness levels with an Arduino.
How it Works
In Darkness: Resistance is very high (millions of ohms).
In Light: Resistance drops significantly (hundreds of ohms).
Circuit: Since Arduino reads voltage, not resistance, you must use a Voltage Divider circuit with a fixed resistor (usually 10k ohm).
Quick Setup
Step 1: Connect one end of the LDR to 5V.
Step 2: Connect the other end to an Analog Pin (A0).
Step 3: Connect that same pin (A0) to GND through a 10k resistor.
Common Uses:
Automatic night lights (turning on an LED when it gets dark).
Solar trackers.
Laser tripwire alarms.
#education #isromissions #followmeplease #getreadywithme #strangerthings #kedivideoları