Go Down

Topic: BME280 I2C address (Read 2621 times) previous topic - next topic

curro92


Hello,
I want to test the BME280 sensor with Arduino together with a RTC DS1307. Both function by I2C protocol.
I have seen that there are several libraries for BME280 and different addresses appear for this chip: in a library the address is 0x77 and in another it is 0x76. This is normal?


uxomm

From the BME280 datatsheet:
Quote
The 7-bit i2c device address is 111011x. The 6 MSB bits are fixed. The last bit is changeable by SDO
value and can be changed during operation.
Connecting SDO to GND results in slave address 1110110 (0x76); connection it to VDDIO results in slave address 1110111 (0x77), which is the same as BMP280's I²C address.
So the address can be both.
Always decouple electronic circuitry.

curro92


GrooveFlotilla

From the BME280 datatsheet:
So the address can be both.
"either", not "both" for any given device.
Some people are like Slinkies.

Not really good for anything, but they bring a smile to your face when pushed down the stairs.

Go Up