BH1750 Digital Light intensity Sensor Module (GY-302) [S085]

 

 

https://www.youtube.com/watch?v=oekWwsUYKuE


*GitHub https://github.com/rdiot/rdiot-s085.git

* Specs
Model: GY-302
Chip: BH1750FVI
Power supply :3-5V
Data output range resembles luminance from 0-65535 lux
I2C Interface
No external parts required
Dimensions: 13.9mm X 18.5mm

 

* Contents
- DataSheet : http://rohmfs.rohm.com/en/products/databook/datasheet/ic/sensor/light/bh1750fvi-e.pdf
- Library : https://github.com/claws/BH1750

- Connect
VCC ----- 5V(3.3V)
GND ----- GND
SCL ----- A5
SDA ----- A4
ADD ------ X

- Key Code
#include <BH1750.h>
BH1750 lightMeter;
lightMeter.begin();
uint16_t lux = lightMeter.readLightLevel();
lcd.print("Light=" + (String)lux + " lx   ");

Posted by RDIoT
|