Go Down

Topic: I2C bus on multiple BH1750 sensor (Read 2 times) previous topic - next topic


I am using the following connection for Arduino Mega 2560

    VCC       ------        5V
    GND       ------        GND
    SCL       ------        SCL
    SDA       ------        SDA
    ADD       ------        GND

Most of the sample codes from chinese websites worked for me with Arduino Mega 2560 with code change to "wire.read" and "wire.write"


Hi Ken,
Thanks, I will check that..


As that address pin can be left unconnected there must be an internal pull up, so don' connect the pin through a 100R but direct.


Are you getting any response at all ?    Get the "I2C scanner" program,  which will identify if the
device is responding to any I2C communication.


no thing is impossible except that the state of your mind keeps it so...

Go Up