Robot Pi Shop

Photosensitive Sensor Module

$1.25

Shipping calculated at checkout.

Quantity

The Photosensitive Light Sensor Module is a compact light detection board designed to detect changes in ambient light intensity. It uses a photoresistor (LDR) and an LM393 voltage comparator to provide a digital output based on an adjustable light threshold.

The module features an onboard potentiometer that allows users to adjust light sensitivity, making it suitable for automatic lighting systems, light/dark detection, Arduino projects, ESP32 applications, and DIY electronics.

Its simple digital interface allows easy integration with microcontrollers for applications requiring automatic responses to changing lighting conditions.

Key Features

  • Light Detection: Uses a photoresistor (LDR) to detect changes in ambient light.
  • LM393 Comparator: Provides a digital output based on the detected light level.
  • Adjustable Sensitivity: Onboard potentiometer allows adjustment of the light detection threshold.
  • Digital Output: Easy connection to Arduino, ESP32, and other microcontrollers.
  • 3.3V–5V Operation: Compatible with common microcontroller power supplies.
  • Onboard Indicator LEDs: Provides power and detection status indication.
  • Compact PCB Design: Suitable for embedded systems and DIY electronics.
  • Easy Integration: Simple connection using power, ground, and digital signal pins.

Technical Specifications

Parameter Specification
Product Type Photosensitive Light Sensor Module
Sensor Type Photoresistor (LDR)
Comparator IC LM393
Operating Voltage 3.3V–5V DC
Output Type Digital
Output Signal HIGH / LOW
Sensitivity Adjustment Onboard Potentiometer
Light Detection Ambient Light Intensity Changes
Interface Digital GPIO
Indicator LEDs Power and Output Status
Connection 3-Pin Header
PCB Type Compact Sensor Module

Pin Configuration

Pin Description
VCC Power Supply (3.3V–5V DC)
GND Ground
DO / OUT Digital Output Signal

Connection Example – Arduino UNO

Sensor Module Arduino UNO
VCC 5V
GND GND
DO / OUT D2

The Arduino can read the digital output to determine whether the detected light level has crossed the threshold set by the potentiometer.

Connection Example – ESP32

Sensor Module ESP32
VCC 3.3V
GND GND
DO / OUT GPIO27

Powering the module at 3.3V is recommended when connecting directly to an ESP32 GPIO input.

How It Works

  1. The onboard photoresistor detects the surrounding light intensity.
  2. The resistance of the photoresistor changes according to the amount of light received.
  3. The LM393 comparator compares the sensor signal against the reference level set by the potentiometer.
  4. When the detected light crosses the configured threshold, the digital output changes state.
  5. The connected microcontroller reads the output and performs the required action.

Applications

  • Automatic Street Lighting Projects
  • Day and Night Detection Systems
  • Smart Home Automation
  • Arduino and ESP32 Projects
  • Light-Activated Switches
  • Automatic LED Lighting
  • Robotics and Educational Projects
  • Ambient Light Monitoring
  • DIY Electronic Control Systems

Important Notes

  • Digital Output Only: This module provides threshold-based light detection rather than a calibrated analog light intensity measurement.
  • Adjustable Threshold: Use the onboard potentiometer to configure the light level at which the output changes.
  • Output Logic: HIGH and LOW behavior may vary depending on the board configuration. Test the output before integrating it into a control system.
  • ESP32 Compatibility: Use a 3.3V supply to avoid applying excessive voltage to ESP32 GPIO pins.
  • Not a Lux Meter: The module is designed for light/dark detection and does not provide calibrated measurements in lux.
  • Light Sensitivity: Performance depends on ambient lighting, sensor placement, and threshold adjustment.

Package Includes

  • 1 × Photosensitive Light Sensor Module with LM393 Comparator