LDR Module 4 Pin | Digital & Analog Light Sensor for Arduino
₹60.00 Original price was: ₹60.00.₹39.00Current price is: ₹39.00.
Features: LDR Module LM393 4 Pin
✅ 4-Pin Output: Provides both digital (D0) and analog (A0) outputs for flexibility in projects.
✅ LM393 Comparator: Fast, reliable switching for accurate light detection.
✅ Adjustable Sensitivity: Onboard potentiometer lets you set the light threshold easily.
✅ Wide Voltage Range: Operates on 3.3V–5V, compatible with Arduino, ESP32, Raspberry Pi, and microcontrollers.
✅ High Stability: Stable performance with precise light sensing in varying conditions.
✅ Indicator LED: Shows digital output state for quick testing and debugging.
✅ Compact Design: Easy to integrate into DIY and IoT projects.
Out of stock
How to Use the LDR Module LM393 4 Pin with Arduino for Light Sensing Projects
Introduction
Light sensing is essential for automating lights, saving energy, and creating interactive projects. The LDR Module LM393 4 Pin offers both digital and analog outputs, making it perfect for beginners and advanced makers using Arduino, ESP32, or Raspberry Pi.
In this guide, we’ll explore how this module works, its features, and how to use it in your projects.
What is the LDR Module LM393 4 Pin?
The module combines:
✅ An LDR (Light Dependent Resistor) to detect light.
✅ An LM393 comparator to provide a digital output when light crosses a threshold.
✅ An analog output (A0) to measure exact light levels.
This makes it more versatile than a 3-pin module, allowing both light detection and intensity measurement in your projects.
Key Features
- Digital and Analog Outputs (D0, A0)
- Adjustable Sensitivity via potentiometer
- Compatible with Arduino and ESP32
- Compact and easy to integrate
- Low power consumption
Applications: LDR Module LM393 4 Pin
✅ Automatic Street Lights: Turn lights on/off automatically based on ambient light levels.
✅ Smart Home Automation: Control curtains, lights, or alarms using real-time light sensing.
✅ Solar Tracking Systems: Adjust solar panels based on light intensity for maximum efficiency.
✅ Light-Based Alarms: Trigger buzzers or alerts when light levels drop suddenly (e.g., hand covering sensor).
✅ Data Logging Projects: Monitor and record light levels over time using the analog output.
✅ Smart Garden Systems: Activate grow lights or shading systems based on sunlight availability.
✅ Energy Saving Projects: Switch off unnecessary lights when sufficient daylight is available.
✅ Robotics: Use in line-following robots or light-seeking robots for learning projects.
✅ DIY Electronics Projects: Integrate into any light-based interactive system with Arduino, ESP32, or Raspberry Pi.
How to Connect LDR Module LM393 with Arduino
Pins:
- VCC → 5V on Arduino
- GND → GND
- D0 → Any digital pin (e.g., D2)
- A0 → Any analog pin (e.g., A0)
Arduino Code for LDR Light Sensor Module:
int digitalPin = 2;
int analogPin = A0;
void setup() {
pinMode(digitalPin, INPUT);
Serial.begin(9600);
}
void loop() {
int digitalValue = digitalRead(digitalPin);
int analogValue = analogRead(analogPin);
Serial.print(“Digital: “);
Serial.print(digitalValue);
Serial.print(” | Analog: “);
Serial.println(analogValue);
delay(500);
}
| Weight | 5 g |
|---|
Related products
-
BLDC 30A ESC – Brushless DC Motor Electronic Speed Controller
₹550.00Original price was: ₹550.00.₹350.00Current price is: ₹350.00.Read moreBLDC 30A ESC – Key Specifications
-
Maximum Current: 30A for stable and BLDC Motor Controller
-
Peak Current: 40A (<10 sec) for high-performance bursts
-
BEC Output: 5V/2A to power receivers and electronics efficiently
-
Auto Cut-Off: 2.9V/cell for battery safety and protection
-
Compact Dimensions: 45 × 24 × 9 mm, lightweight 23 g design
-
Optimized for: Drones, RC cars, boats, and robotics applications
-
-
OLED Display 0.96 Inch I2C 4-Pin Blue Screen – SSD1306 Module
₹325.00Original price was: ₹325.00.₹199.00Current price is: ₹199.00.Read moreSpecifications of 0.96″ SSD1306 OLED Display:
- Operating Voltage Range: 3.3V to 6V
- Communication: I2C
- Resolution: 128 x 64
- Colour: Monochrome (Blue)
- Driver IC: SSD1306
- Supports both 5V and 3.3V Logic
- Module Dimension: ~ 27 x 27 x 4.1 mm
-
Arduino Opta WiFi AFX00002 – Industrial IoT PLC | Arduino Pro
₹20,600.00Original price was: ₹20,600.00.₹19,800.00Current price is: ₹19,800.00.Add to cartKey Features:
- Powerful MCU: STM32H747XI dual‑core Cortex‑M7 (480 MHz) + M4 (240 MHz)
- Versatile connectivity: 10/100 Ethernet, USB‑C, Wi‑Fi (802.11 b/g/n up to 65 Mbps), Bluetooth Low Energy, RS‑485 serial.
- I/O and switching: 8 configurable digital/analog inputs (0–10 V), and 4 relay outputs (10 A, 250 VAC).
- Secure and future‑proof: Onboard ATECC608B secure element, X.509 compliance, OTA firmware updates.
- Programming flexibility: Supports Arduino IDE sketches and IEC 61131‑3 languages (Ladder, FBD, ST, SFC, IL) via Arduino PLC IDE.
- Industrial-grade ruggedness: DIN-rail mount, IP20 rating, wide operating temperature (−20 °C to +50 °C), multiple certifications (CE, ENEC, UL)
-
JDY-33 Dual Mode Bluetooth Module | HC-05/06 Compatible
₹225.00Original price was: ₹225.00.₹120.00Current price is: ₹120.00.Add to cartModel JDY-33 Bluetooth Version Bluetooth 3.0 SPP + BLE4.2 Communication Interface UART Operating Temperature Range -40°C to 80°C Operating Voltage 1.8 – 3.6V Receiving Sensitivity -96dbm Transmission distance 30M Transmit Power 6db Working Current 6.5mA Working Frequency 2.4GHZ Length 31 mm Height 3 mm Width 16 mm







