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
-
Arduino Nicla Sense ME ABX00050 – Tiny IoT Sensor Hub
₹5,530.00Original price was: ₹5,530.00.₹5,100.00Current price is: ₹5,100.00.Read moreKey Features
✅ Bosch BHI260AP: Smart 6-axis IMU with embedded AI for motion detection & gesture recognition.
✅ Bosch BMM150: 3-axis magnetometer for accurate heading and orientation.
✅ Bosch BMP390: High-resolution pressure sensor for accurate altitude detection.
✅ Bosch BME688: Environmental sensor for gas, humidity, temperature, and barometric pressure.
✅ Powerful MCU: nRF52832 (ARM Cortex-M4 @ 64 MHz, BLE 5.0) with 512 KB Flash, 64 KB RAM.
✅ Edge AI Ready: Run TinyML models for real-time analysis on-device.
✅ Tiny footprint: 22.86 x 22.86 mm (0.9 x 0.9 inches).
✅ Compatible: Works standalone or with Portenta/Arduino MKR boards.
✅ Ultra-low power consumption: Suitable for battery-powered IoT edge nodes. -
Arduino Portenta X8 – ABX00049
₹22,300.00Original price was: ₹22,300.00.₹15,400.00Current price is: ₹15,400.00.Read moreFeatures
- Combines Linux and real-time cores for flexibility and performance
- NXP® i.MX 8M Mini Cortex®-A53 quad-core + M7 real-time processor
- 4GB LPDDR4 RAM, 16GB eMMC storage
- Wi-Fi and Bluetooth 5.0 connectivity
- USB-C programming and power port
- Industrial-grade reliability and security features
- Supports Edge AI and machine learning applications
-
Arduino Nicla Vision – ABX00051
₹8,980.00Original price was: ₹8,980.00.₹7,999.00Current price is: ₹7,999.00.Add to cartFeatures
- Processor: STM32H747AII6 Dual Arm® Cortex® M7/M4 IC
- Camera: 2MP with integrated image processor
- AI-ready: Supports TensorFlow Lite for on-device inference
- Connectivity: Bluetooth® Low Energy, Wi-Fi (via external module)
- Memory: 1MB SRAM, 2MB Flash, 16MB external SPI Flash
- Sensors: IMU, microphone, distance sensor
- Low-power operation: ideal for battery-powered edge AI applications
- Compact size: 22.86 x 22.86 mm
- USB Type-C for programming and power
-
4 Channel 5V Relay Module with Optocoupler
₹250.00Original price was: ₹250.00.₹118.00Current price is: ₹118.00.Add to cartFeatures – 5V 4-Channel Relay Module with Optocoupler
-
4 Independent Channels – Control multiple devices simultaneously with precision.
-
Wide Operating Voltage – Supports 3.3V to 5V input, compatible with Arduino, ESP32, Raspberry Pi, and other microcontrollers.
-
High-Impedance Controller Pins – Ensures minimal current draw from the microcontroller and safe operation.
-
AC/DC Load Control – Easily switch 220V AC appliances or DC devices safely.
-
Dual Contacts – Each relay includes one normally open (NO) and one normally closed (NC) contact for flexible control.
-
Triode Drive for Relay Coil – Enhances switching efficiency and reduces malfunction risk.
-
Pull-Down Circuit – Prevents false triggering and ensures stable performance in noisy environments.
-
Indicator LEDs – Power and relay status indicators provide real-time visual feedback.
-
Clear Terminal Layout – Input signal, common terminal, and start conduction terminals are clearly marked for easy wiring.
-
Appliance Control Ready – Perfect for controlling lights, fans, motors, and other household or industrial appliances.
-
International Safety Compliance – Isolation trenches between control and load areas ensure safe operation and reduce risk of electrical faults.
-
Durable & Reliable – Designed for long-term use in smart automation, IoT, and industrial projects.
-







