Light meter BH1750 with TinkerPie
A precise light meter in lux, like a photographer uses.
| Type | Smart sensors (I2C) |
|---|---|
| Connect to | SENSOR port · 0x23 |
| Gives | lux |
| Simulator | Yes: a control appears under the simulated board |
How it works
The BH1750 measures light the way our eyes see it and reports it in lux, the unit photographers and engineers use. A dark room is under 50 lux, a classroom about 300-500 lux and sunshine tens of thousands of lux.
How to wire it
Plug into any SENSOR 1-4 port (SDA, SCL, 3.3 V, GND). Each type has a fixed I2C address, so different types can share the bus.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.lightLux()
// Arduino C++
sensors::lightLux() Good to know
- Range about 1 to 65,000 lux.
- Uses I2C (address 0x23).
- Point the small window of the chip towards the light you want to measure.
Projects with the Light meter BH1750
Similar modules
- Temperature + humidity AHT20
- Temperature + humidity SHT31
- Motion sensor MPU6050
- Colour sensor TCS34725
- IR thermometer MLX90614
- Real-time clock DS3231
- 4-channel ADC ADS1115
- Current + voltage sensor INA219
More projects to try
Questions
Can I try the Light meter BH1750 without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
What is the difference between the BH1750 and the LDR module?
The LDR only says brighter or darker (0-100 %). The BH1750 gives real lux values, so you can compare rooms, days and windows.