How to connect two BH1750 digital light sensor?
-
Hi, all
I want to read data from two BH1750 sensors at the same time. I connected ADDR pin to VCC for first sensor and didn't connect ADDR pin to second sensor. I2C scanner shows sensors connected to 0x23 and 0x5C respectively.
I tried to use this LIB by Genotronex, and it's work, but the values prints in int type. So i tried this LIB by Claws, because data reads in float type and wrote a sketch, but my arduino reads data only from 0x23 address and lux1/lux2 has the same values.
Also, I tried to change calculation method in Genotronex lib, but to no avail.
I will be glad to any suggestions. Many thanks.
-
@Eilleesy I suggest you post your code and any error messages you get. A link to the library you want to use might also be useful.
1 out of 2
Suggested Topics
-
OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL
Troubleshooting • 9 Jul 2017, 20:52 • George Laynes 11 Jul 2017, 18:41 -
💬 MultiRF MultiVoltage ProtoBox
OpenHardware.io • 4 Jul 2017, 12:15 • openhardware.io 12 Oct 2017, 14:08 -
💬 EASY PIR multisensors box
OpenHardware.io • 14 Mar 2018, 20:53 • openhardware.io 13 Jun 2018, 20:54 -
LDR as light sensor
Troubleshooting • 12 Jul 2016, 09:24 • Flor Sanders 13 Jul 2016, 18:05 -
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
💬 Multi-purpose sensor
OpenHardware.io • 6 Feb 2018, 20:06 • openhardware.io 3 Mar 2018, 17:03