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. -
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login