Code Monkey home page Code Monkey logo

Comments (21)

ladyada avatar ladyada commented on August 28, 2024 7

yes, the code supports passing in alternate i2c addresses already :)

https://github.com/adafruit/Adafruit_BME280_Library/blob/master/Adafruit_BME280.h#L133

from adafruit_bme280_library.

giacomolanzi avatar giacomolanzi commented on August 28, 2024 6

For who has the same issue and search for a quick solution:

simply use bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c, address=0x76)

from https://circuitpython.readthedocs.io/projects/bme280/en/latest/

from adafruit_bme280_library.

DooMMasteR avatar DooMMasteR commented on August 28, 2024 2

By the way, it is pretty easy to change the address.
Of the 3 solder pads the first 2 are connected, rip the connection with a knife and connect the center one with the last pad instead, this will pull the SDO pin of the BME280 up and change the base address to 0x77 which is convenient if you want to use 2 BME280 on the same bus.
CHECK if you have ripped the connection properly or you will short VCC to GND :P

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

from adafruit_bme280_library.

877dev avatar 877dev commented on August 28, 2024 2

@JasonG-FR thanks for the comment, it really helped me!
Was having trouble getting two sensors to read in i2c, I needed to use:

bool status;

status = bme1.begin(0x77);
status = bme2.begin(0x76);

Cheers :)

from adafruit_bme280_library.

kukyarce avatar kukyarce commented on August 28, 2024 1

with this
https://github.com/Seeed-Studio/Grove_BME280
works with no traumatic board work
https://www.youtube.com/watch?v=PidE-pJiIXY
i have low level of knowledge....only a copy+paste and first shot and after think...sorry

from adafruit_bme280_library.

JasonG-FR avatar JasonG-FR commented on August 28, 2024 1

For anyone having the same issue, here is how I managed to make it work :
I simply replaced status = bme.begin(); by status = bme.begin(0x76); in the bme280test.ino sketch.

from adafruit_bme280_library.

JasonG-FR avatar JasonG-FR commented on August 28, 2024 1

@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
If you want to use 4 at the same time, you could use SPI instead:

If you want to connect multiple BME280's to one microcontroller, have them share the SDI, SDO and SCK pins. Then assign each one a unique CS pin.

from https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout/pinouts

from adafruit_bme280_library.

golvellius avatar golvellius commented on August 28, 2024

Thanks a lot techi602 ...

It's very usefull to me ...

from adafruit_bme280_library.

Deliaz avatar Deliaz commented on August 28, 2024

Thanks, it helped me.

from adafruit_bme280_library.

rogerclarkmelbourne avatar rogerclarkmelbourne commented on August 28, 2024

Similar issue applies to the BMP280 lib as well

from adafruit_bme280_library.

Bruce17 avatar Bruce17 commented on August 28, 2024

Thanks! I have the same issue with the same sensor 😉

from adafruit_bme280_library.

Bluebrain2000 avatar Bluebrain2000 commented on August 28, 2024

Thanks! Helped me too!

from adafruit_bme280_library.

Bender-Ender avatar Bender-Ender commented on August 28, 2024

Of the 3 solder pads the first 2 are connected, rip the connection with a knife and connect the center one with the last pad instead

Thanks DooMMasteR. I thought that might be the case but couldn't find anywhere that said that conclusively.

from adafruit_bme280_library.

sruthikrahulk avatar sruthikrahulk commented on August 28, 2024

Did i get the lpc1768 code for BMP280

from adafruit_bme280_library.

Povilasgtar avatar Povilasgtar commented on August 28, 2024

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!

from adafruit_bme280_library.

estevE11 avatar estevE11 commented on August 28, 2024

Man, thank you so fvcking much. Honestly without this thread I was done. Thanks.

from adafruit_bme280_library.

ColomeDisco avatar ColomeDisco commented on August 28, 2024

Hi, Is possible to connect 4 devices at the same i2c bus?
I want to make a project to diferential values like a pitot Tube
tanks

from adafruit_bme280_library.

JasonG-FR avatar JasonG-FR commented on August 28, 2024

@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.

If you want to use 4 BME280, the Adafruit ones have 2 jumper solder pads that could be used to change their address, so 4 unique addresses in total.

from adafruit_bme280_library.

ColomeDisco avatar ColomeDisco commented on August 28, 2024

Ok, Thanks for the response, but I not have clear documentation how to do it...
do you have some link or information about it?
thanks again!!

from adafruit_bme280_library.

dan0delellis avatar dan0delellis commented on August 28, 2024

I was getting OSError: [Errno 121] Remote I/O error and ValueError: No I2C device at address: 77 after my sensor made contact with condensation in a gravity-assisted experiment failure. This cleared the errors right up!

from adafruit_bme280_library.

joaofgoncalves avatar joaofgoncalves commented on August 28, 2024

Worked for me as well with bme.begin(0x76)

from adafruit_bme280_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.