-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I2C address for BME280 GYBMEP 0x76 #15
Comments
Thanks a lot techi602 ... It's very usefull to me ... |
Thanks, it helped me. |
Similar issue applies to the BMP280 lib as well |
Thanks! I have the same issue with the same sensor 😉 |
yes, the code supports passing in alternate i2c addresses already :) https://github.com/adafruit/Adafruit_BME280_Library/blob/master/Adafruit_BME280.h#L133 |
Thanks! Helped me too! |
By the way, it is pretty easy to change the address. According to these schematics, the creator intended to have a switch on the pads to allow for convenient changing of the address. https://ae01.alicdn.com/kf/HTB1LnM.JFXXXXbAXFXXq6xXFXXXC/10pcs-DC1-8-5V-I2C-BME280-Digital-Barometric-Pressure-Altitude-Sensor-Temperature-Humidity-Module-for-Arduino.jpg |
Thanks DooMMasteR. I thought that might be the case but couldn't find anywhere that said that conclusively. |
Did i get the lpc1768 code for BMP280 |
with this |
Thank you for a link to Seeed, really useful, just worth mentioning, that I am using a BMP sensor attached to a GY-91 module instead of a BME sensor, but it has the same address as BME (0x76), so all that I had to do is just download and install the BMP280 zip also change the address entry in the library file in the sketch folder and everything works perfectly! |
Man, thank you so fvcking much. Honestly without this thread I was done. Thanks. |
For anyone having the same issue, here is how I managed to make it work : |
@JasonG-FR thanks for the comment, it really helped me! bool status; status = bme1.begin(0x77); Cheers :) |
Hi, Is possible to connect 4 devices at the same i2c bus? |
@ColomeDisco yes it's possible to connect more than 4 devices on the i2c bus. The issue is to get each one a unique address.
|
Ok, Thanks for the response, but I not have clear documentation how to do it... |
@ColomeDisco Sorry I made a mistake, you can only connect 2 Adafruit module on the i2c bus at the same time : https://forums.adafruit.com/viewtopic.php?f=22&t=128043
|
For who has the same issue and search for a quick solution: simply use from https://circuitpython.readthedocs.io/projects/bme280/en/latest/ |
I was getting |
Worked for me as well with bme.begin(0x76) |
Thanks for awesome library. However I had some hard time to make my sensor working.
The default I2C address is set to 0x77 - (which is also default for BMP180)
I have noticed there are several variants of the sensor
Mine however is running on 0x76 address (many thanks to I2C scanner)
Means that this library works fine when changing the default I2C address
I have also found this reference in bosch library https://github.com/BoschSensortec/BMP280_driver/blob/master/bmp280.h
as BMP280_I2C_ADDRESS1
Perhaps I would create PR which allows to set I2C address in constructor ( with commented macro i.e. BME280_ADDRESS_GYBMEP )
not sure how common issue is it but I believe someone else may appreciate it
The text was updated successfully, but these errors were encountered: