BH1750 light sensor (GY-302)
Ambient light sensor board (ROHM BH1750FVI on a GY-302): measures illuminance in lux on I²C, 1 lx resolution (0.5 lx in high-res mode 2, 4 lx in low-res), 120 ms per measurement, continuous or one-time, adjustable measurement time (MTreg) for more sensitivity. Address 23h (ADDR open / GND) or 5Ch (ADDR to VCC). VCC 3–5 V (3.3 V regulator and SDA / SCL pull-ups on the board). Set the light level while the simulation runs. Use it e.g. with the BH1750 library (claws): begin(), readLightLevel().
Key data
- Category
- Modules
- Simulation model
- Behavioural mixed-signal model
- Manufacturer part number
- GY-302 (BH1750FVI)
- Reference prefix
- A
- Pins
- 5
- Land pattern
- PinHeader_1x05_P2.54mm_Vertical
Simulation model
A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.
- Model
- bh1750
- Supply pins
- VCC / GND
Pins 5
| Pin | Name | Use |
|---|---|---|
| VCC | VCCSupply pin | Supply input: decouple with 100 nF close to the pin |
| GND | GNDGround pin | Ground |
| SCL | SCLInput pin | I²C clock: sensors, displays; pull-up (about 4.7 kΩ) to the supply |
| SDA | SDAI/O pin | I²C data: pull-up (about 4.7 kΩ) to the supply |
| ADDR | ADDRInput pin · pulled down on the board | Logic input: never leave open (tie unused inputs to VCC or GND) |
Parameters 1
luxliveIlluminance at the sensor: about 1 lx moonlight, 50 lx living room, 300–500 lx office, 10 000+ lx daylight, 100 000 lx sun; change it while the simulation runs
PCB
PinHeader_1x05_P2.54mm_VerticalBH1750 light sensor (GY-302) as a module on a 5-pin header (VCC, GND, SCL, SDA, ADDR) – compare the order with your own module