GY-302 BH1750 Light Intensity Module
π§ What is it?
The BH1750 Light Sensor module (GY-302) is a digital sensor used to measure ambient light intensity in units of lux.
π Itβs commonly used in systems that need to adjust brightness automatically, like smartphones or smart lighting.
βοΈ How It Works
The BH1750 sensor detects light using a photodiode
Converts light into electrical signals
Internally processes it and outputs a digital lux value
π Unlike analog LDRs, it directly gives accurate lux readings (no ADC needed)
π Communication Interface
The module uses the I2C protocol.
Pins:
| Pin | Function |
|---|---|
| VCC | Power (3.3V β 5V) |
| GND | Ground |
| SCL | Clock line (I2C) |
| SDA | Data line (I2C) |
| ADDR | Address select |
π§ I2C Address
Default address: 0x23
If ADDR pin is HIGH β 0x5C
π Allows connecting multiple sensors on same bus
π Key Specifications
Measurement range: 1 β 65,535 lux
High resolution: 1 lux
Built-in ADC (16-bit)
Low power consumption
Wide voltage support
π Working Process
Sensor detects ambient light
Converts light β electrical signal
Internal ADC processes signal
Outputs lux value via I2C
Microcontroller reads and uses data
π Applications
π± Automatic screen brightness control
π Smart home lighting systems
π± Greenhouse light monitoring
π£οΈ Street light automation
πΈ Camera exposure control
β Advantages
Direct lux output (no calculations needed)
High accuracy and resolution
Easy I2C interface
Low power usage
Better than LDR for precision
β οΈ Limitations
Not ideal for detecting specific light wavelengths
Slight delay in measurement
Requires I2C support
π Basic Arduino Connection
VCC β 5V
GND β GND
SDA β A4 (Arduino Uno)
SCL β A5 (Arduino Uno)
π‘ Example Use
In a smart lighting system:
Sensor reads ambient light
If lux < threshold β turn ON lights
If lux > threshold β turn OFF lights
π Practical Tips
Avoid direct sunlight on sensor for stable readings
Use proper I2C pull-up resistors (often already included)
Place sensor where ambient light is representative
π BH1750 vs LDR (Quick Comparison)
| Feature | BH1750 | LDR |
|---|---|---|
| Output | Digital (lux) | Analog |
| Accuracy | High | Low |
| Interface | I2C | ADC required |
| Calibration | Minimal | Required |
