LM393 Photosensitive LDR Light-Dependent Control Sensor Module
🧠 What Is It?
A light detection module that uses an LDR (Light Dependent Resistor) to sense light intensity.
Built around an LM393 comparator IC to provide both analog and digital outputs.
Used for automatic light control and brightness detection.
🔍 Key Features
Dual Output:
• Analog Output (AO) → continuous light intensity
• Digital Output (DO) → HIGH/LOW based on thresholdAdjustable Sensitivity: Onboard potentiometer to set light threshold
Fast Response to Light Changes
Low Power Consumption
Simple Interface with Arduino/ESP32
📊 Technical Specifications
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3 V – 5 V |
| Sensor Type | LDR (photoresistor) |
| Comparator IC | LM393 |
| Output Types | Analog + Digital |
| Response Time | Fast |
| Detection Range | Depends on ambient light |
⚙️ Pin Configuration
VCC → 3.3V / 5V
GND → Ground
AO → Analog output
DO → Digital output
🧠 How It Works
The LDR changes resistance based on light intensity:
Bright light → Low resistance
Dark → High resistance
This change creates a varying voltage (analog signal).
The LM393 comparator compares this voltage with a preset threshold.
If light crosses the threshold → Digital output switches (HIGH/LOW).
📐 Output Behavior
Bright Light:
• AO → Higher/Lower voltage (depends on circuit)
• DO → Triggered based on thresholdDarkness:
• AO changes accordingly
• DO switches state
📌 Use potentiometer to adjust trigger sensitivity.
📌 Applications
Automatic street lights
Light/dark detection systems
Solar garden lights
Security systems (day/night switching)
Brightness monitoring in IoT projects
Line-following and light tracking robots
⚠️ Important Notes
Not Lux Accurate: Gives relative light level, not precise lux value.
Sensitive to Ambient Conditions: External light sources affect readings.
Calibration Needed for consistent threshold behavior.
Analog Output Preferred for detailed light measurement.
🛠 Summary
Type: LDR + comparator module
Output: Analog + Digital
Control: Adjustable threshold
Use Case: Light detection and automatic switching
