Comments (21)
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.
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.
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.
@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.
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.
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.
@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 adafruit_bme280_library.
Thanks a lot techi602 ...
It's very usefull to me ...
from adafruit_bme280_library.
Thanks, it helped me.
from adafruit_bme280_library.
Similar issue applies to the BMP280 lib as well
from adafruit_bme280_library.
Thanks! I have the same issue with the same sensor 😉
from adafruit_bme280_library.
Thanks! Helped me too!
from adafruit_bme280_library.
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.
Did i get the lpc1768 code for BMP280
from adafruit_bme280_library.
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.
Man, thank you so fvcking much. Honestly without this thread I was done. Thanks.
from adafruit_bme280_library.
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.
@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.
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.
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.
Worked for me as well with bme.begin(0x76)
from adafruit_bme280_library.
Related Issues (20)
- Sorry, if this is obvious, but I can't locate the doxygen documentation and theres no link to it in the readme as in other libs HOT 1
- advancedsettings.ino example link URL incorrect HOT 1
- I2C to USB HOT 1
- Adafruit BME280 library does not work on Raspberry Pi Pico - runtime crashes HOT 3
- using in Jetson Nano HOT 2
- bme280test example typo errors HOT 1
- BME280.begin() for I2C allways calls BME280.begin() resetting the I2C interface to default state HOT 1
- To high delay in init() method HOT 3
- begin() Method Corrupts Sensor ID If Not Valid HOT 11
- Isn't while(1); dangerous ? HOT 3
- Version 2.0.1: Examples do not work any more (i2c) HOT 3
- BME280_ADDRESS_ALTERNATE does nothing HOT 1
- Possible hang when using Adafruit_BME280::takeForcedMeasurement() HOT 2
- Compensation algorithm causes high spikes in measures HOT 24
- Software Wire / I2C HOT 3
- Custom Temperature Adjustments HOT 2
- Inaccessible class member functions HOT 5
- Temperature conversion functions HOT 1
- Convert to BusIO usage HOT 1
- sensor_t is not always a valid name when compiling this against ESP8266/ESP32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_bme280_library.