deckle studio
Open the editor
Behavioural mixed-signal modelGY-302 (BH1750FVI)bh1750

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().

VCCGNDSCLSDAADDRGY-302
Schematic symbol

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

PinNameUse
VCCVCCSupply pinSupply input: decouple with 100 nF close to the pin
GNDGNDGround pinGround
SCLSCLInput pinI²C clock: sensors, displays; pull-up (about 4.7 kΩ) to the supply
SDASDAI/O pinI²C data: pull-up (about 4.7 kΩ) to the supply
ADDRADDRInput pin · pulled down on the boardLogic input: never leave open (tie unused inputs to VCC or GND)

Parameters 1

Lightluxlive
Default300 lx

Illuminance 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

Connector / off-boardPinHeader_1x05_P2.54mm_Vertical

BH1750 light sensor (GY-302) as a module on a 5-pin header (VCC, GND, SCL, SDA, ADDR) – compare the order with your own module