Photon I2C BH1750

Hi,
I try to connect a BH1750 light sensor via I2C to my photon.
Wiring is:
3.3V -> VCC
GND -> GND
D1 -> SCL
D0 -> SDA
I used the I2C- Scanner and everything I see on Serial Monitor are fancy I2C -Adresses like:

Scanning...
I2C device found at address 0x5B !
done
Scanning...
No I2C devices found
Scanning...
I2C device found at address 0x12 !
done
Scanning...
I2C device found at address 0x64 !
I2C device found at address 0x69 !
done
Scanning...
No I2C devices found
Scanning...
I2C device found at address 0x40 !
done

I’d expected a detection of 0x23. I tested an alternative BH1750 and the same story here.
Feel lost at this point. Anybody who can help?

Thanks,

Michael

You should try that sensor without any other I2C clients first.

Thanks for your quick reply.
The BH1750 is the only client…

Hmm, then I’m surprised your I2C scanner log suggests there are other devices too.
When this is not the case, then I suspect some bad connections.

@MF42, does your BH1750 board have I2C pull-ups?

1 Like

arrrgh, sorry my fault. Put two 5.2k as pull-ups and it works. Thank you!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.