BME280 Connection
Moderators: grovkillen, Stuntteam, TD-er
BME280 Connection
I am getting some BME280 Temp/Humidity/Pressure sensors in a few days. Will they work with this easily?
tia
tia
Re: BME280 Connection
+1 on this, can you add support for this sensor!?
Re: BME280 Connection
Mine will be here in +- 14 days I guess
.

Re: BME280 Connection
It is seen but it is unknown.
Re: BME280 Connection
One can always compare the libs
. https://github.com/adafruit/Adafruit_BME280_Library

Re: BME280 Connection
Some info I found about the BME280:
https://github.com/RyAndrew/esp8266_i2c_bme280
https://github.com/sparkfun/SparkFun_BM ... no_Library
https://github.com/RyAndrew/esp8266_i2c_bme280
https://github.com/sparkfun/SparkFun_BM ... no_Library
Re: BME280 Connection
You can test if they work like the BMP085
In the WebServer module look for:
case 0x77:
reply += F("BMP085");
and change it to :
case 0x76:
case 0x77:
reply += F("BMP085");
In the module _P006_BMP085
change this line:
#define BMP085_I2CADDR 0x77
into
#define BMP085_I2CADDR 0x76
then you can test if it works without studying the datasheets
If it doesn't work you just change the things back as they were.
In the WebServer module look for:
case 0x77:
reply += F("BMP085");
and change it to :
case 0x76:
case 0x77:
reply += F("BMP085");
In the module _P006_BMP085
change this line:
#define BMP085_I2CADDR 0x77
into
#define BMP085_I2CADDR 0x76
then you can test if it works without studying the datasheets
If it doesn't work you just change the things back as they were.
Re: BME280 Connection
HI, does someone have this sensor running on espeasy!? If not can we have tih sensor supported in next versions!?
Re: BME280 Connection
I've ordered the BME280 from China. Will see what we can do when it arrives...
Re: BME280 Connection
BME280 seems to work:
Plugin will be available in R67.
Plugin will be available in R67.
- Attachments
-
- BME280_2.png (7.06 KiB) Viewed 14249 times
Re: BME280 Connection
Mine is working but there is something weird with the read-out on the first poll. I use a ESP-201 Dev Board with GPIO2 and GPIO0 as I2C bus.
- Attachments
-
- BME280_bug_firstpoll.PNG (39.71 KiB) Viewed 14223 times
Re: BME280 Connection
And a more trustworthy result on the second poll. But is reads 3 hPa higher then my two BMP085 modules.
- Attachments
-
- BME280_bug_secondpoll.PNG (39.37 KiB) Viewed 14223 times
Re: BME280 Connection
short question: Is it possible to connect two bme280 with different ids?
I like to measure indoor and outdoor values.
I like to measure indoor and outdoor values.
Re: BME280 Connection
Datasheet of BME280 say:
If you want to connect a second BME280 you have to change the I2C address to 0x77 by making the level on SDO_pin HIGH.
On some boards there is a solder pad, carefully cut the connection between the two solderpads with a sharp knife and solder the opposite pad to the centerpad. On other boards SDO pin is a outside boardconnection, so connect that pin to Vcc
Also in the source of ESPEasy you have to change the WebServer.ino file so that ESPEasy recognizes the second BME280.
Find this part:
change that to:
As a result of this change in code the BMP085 will not be recognised anymore.
usually the SDO_pin is connected to ground so default address is 0x76. In the ESPEasy code I2C address 0x77 is reserved for for BMP085.The 7-bit 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 V DDIO results in slave address 1110111(0x77), which is the same as BMP280’s I²C address.
The SDO pin cannot be left floating; if left floating, the I²C address will be undefined.
If you want to connect a second BME280 you have to change the I2C address to 0x77 by making the level on SDO_pin HIGH.
On some boards there is a solder pad, carefully cut the connection between the two solderpads with a sharp knife and solder the opposite pad to the centerpad. On other boards SDO pin is a outside boardconnection, so connect that pin to Vcc
Also in the source of ESPEasy you have to change the WebServer.ino file so that ESPEasy recognizes the second BME280.
Find this part:
Code: Select all
case 0x76:
reply += F("BME280");
break;
case 0x77:
reply += F("BMP085");
break;
Code: Select all
case 0x76:
case 0x77:
reply += F("BME280");
break;
// case 0x77:
// reply += F("BMP085");
// break;
Re: BME280 Connection
3hPa is well within the accuracy listed in the datasheets. 

Who is online
Users browsing this forum: No registered users and 9 guests