

A Light Dependent Resistor (LDR), also known as a photoresistor, is a passive electronic component whose resistance decreases as the intensity of incident light increases. This property makes it an ideal choice for light sensing and detection applications. LDRs are widely used in devices such as automatic streetlights, light meters, and alarm systems.








Below are the key technical details for a typical LDR:
| Parameter | Value |
|---|---|
| Manufacturer | ARDUINO |
| Manufacturer Part ID | UNO |
| Resistance in Darkness | 1 MΩ (typical) |
| Resistance in Bright Light | 1 kΩ to 10 kΩ (typical) |
| Maximum Voltage | 150 V |
| Power Dissipation | 100 mW |
| Response Time | Rise: 20 ms, Fall: 30 ms |
| Operating Temperature | -30°C to +70°C |
An LDR does not have a specific pin configuration as it is a two-terminal device. The terminals are interchangeable and can be connected in either orientation. Below is a table summarizing the connections:
| Pin | Description |
|---|---|
| Pin 1 | Connects to one side of the circuit (e.g., VCC or GND) |
| Pin 2 | Connects to the other side of the circuit (e.g., input pin or resistor) |
Basic Circuit Setup:
Interfacing with Arduino UNO:
analogRead() function to measure the voltage and determine the light intensity.Below is an example of how to use an LDR with an Arduino UNO to measure light intensity:
// Define the analog pin connected to the LDR
const int ldrPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int ldrValue = analogRead(ldrPin); // Read the analog value from the LDR
float voltage = ldrValue * (5.0 / 1023.0); // Convert to voltage (5V reference)
// Print the LDR value and voltage to the Serial Monitor
Serial.print("LDR Value: ");
Serial.print(ldrValue);
Serial.print(" | Voltage: ");
Serial.println(voltage);
delay(500); // Wait for 500 ms before the next reading
}
No Change in Output Voltage:
Inconsistent Readings:
Arduino Reads Constant Values:
Q1: Can I use an LDR to detect very low light levels?
A1: Yes, but the sensitivity depends on the LDR's specifications. For very low light levels, consider using an amplifier circuit to boost the signal.
Q2: What is the lifespan of an LDR?
A2: LDRs are durable and can last for many years under normal operating conditions. However, prolonged exposure to high-intensity light or extreme temperatures may degrade their performance.
Q3: Can I use an LDR for digital input?
A3: Yes, but you will need to use a comparator circuit or the Arduino's ADC to convert the analog signal to a digital one.
Q4: How do I protect the LDR from environmental damage?
A4: Use a transparent enclosure or coating to shield the LDR from dust, moisture, and physical damage while allowing light to pass through.