-
Notifications
You must be signed in to change notification settings - Fork 47
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
Multiple I2C #29
Comments
Hello! If you have questions you can either ask them here, or contact me via PM. I prefer the former, so that also others can read question and (my) answers. So, I am trying to understand your question. Usually, one is connecting sensors as slaves to the i2c bus and the esp8266 has the role af an i2c master, i.e. the i2c master. You can only connect up to two BME280 on the same i2c bus, since according to the datasheet page 31, you can only set LSB of the slave address, resulting in either 0x76 or 0x77. So, I am bit confused when you write "to read temperature from BME280 (I2C Master)", since a BME280 cannot be an i2c master, it only supports being an i2c slave.
|
Hi, I am very sorry for the very late reply. Let me rephrase what I would like to do (not sure whether it good idea, but anyway, it is not a all working anymore with the I2C Multiplexer):
The Arduino Nano is already an I2C slave, so it cannot additionnally be a I2C master for the BME280 sensor. Why not puting the BME on the same I2C with different address ? Becasue I have several Arduino, and I want to keep them isolated, without the I2C Multiplexer which doesn't work :/ Or maybe it is Raspberry PI + Multiplexer that doesn't work properly, no clue.... Why not using SPI ? just because my 4 BME280 sensors have only I2C pins exposed :/ Problem with newer version of BRZO? it doesn't work anymore with Arduino:
|
I haven't find a way to contact the author of this program, so I fill a request:
I am using an ESP8266 (but it would be an Arduino I'd think it would be the same) to read temperature from BME280 (I2C Master), but I'd like to add I2C Slave capabilities on the same ESP to communicate with another device (Slave is a strong constraint). I read the source code of this library, and I don't see any reason why it could be feasible:
You'll probably ask yourself why my ESP & BME280 aren't slave with different addresses ?
Well there are several reasons that makes me want continue on this solution:
Why don't I use Wifi ? Because it does, but my wife doesn't want Wifi for children 😀
I would highly appreciate any suggestion, or if you think it is a valid use case like me, and think it is feasible quite easily, I can provide a PR (if you are interested of course).
Thank you in advance,
Cheers.
The text was updated successfully, but these errors were encountered: