AED 14.70
Description
The BH1750 GY-302 module is a digital light sensor that can be connected with I2C Protocol to detect the Light Ambient at a High resolution. 1 – 65535 lux (lx).
Features
1) I2C Protocol interface
2) Light Ambient to Digital Converter
3) High resolution. ( 1 – 65535 lx )
4) Low Current consumption with power-saving function
5) 50Hz / 60Hz Light noise reject-function
6) 1.8V Logic input interface
7) No need for any external parts
8) Light source dependency is little.
9) 2x I2C slave-address available.
10) Small measurement variation (+/- 20%)
11) The infrared effect is very small on the reading.
Pinout Configuration of the Sensor:
Pin | Description |
---|---|
ADDR | I2C Device Address: 0x23 (when ADDR = LOW) or 0x5c (when ADDR = HIGH) |
SDA | I2C Data Pin |
SCL | I2C Clock Pin |
GND | Ground |
VCC | +3.3V |
GY-302 BH1750 Light Sensor Wiring Connections With Arduino:
Arduino Code for GY-302 BH1750 Light Sensor:
First, you need to download the Arduino Library for BH1750 Light Sensor by Clicking Here.
// Arduino and GY-302 module
#include
#include
BH1750 GY302; // initialize BH1750 object
void setup() {
Serial.begin(9600); // initialize serial
GY302.begin(); // initialize GY-302 module
}
void loop() {
// get reading from module
uint16_t lux = GY302.readLightLevel();
// display to Serial Monitor
Serial.print("Light: ");
Serial.print(lux);
Serial.println(" lx");
// pause for 1 second
delay(1000);
}
First, you need to download the Datasheet of the BH1750 Light Sensor by Clicking Here.