Hello Guy's, I'am try to used a BME280 sensor but the Adafruit Library don't work.
At the first Step I used the bme280test example from the examples library but it wasn't success.
The I2C-Scanner found the sensor on adress 0x76.
Then I used the Library from Tyler Glenn and there is no Problem, the sensor works correctly.
So it can't be due to the wiring
Can anyone explain to me where is the fail.
Thanks a lot for your support.
Does the Adafruit library support your Arduino?
Which Arduino do you have?
Hi Mark833, i used the MEGA2560.
I have just looked into the Adafruit Library and found this
/*!
* @brief default I2C address
*/
#define BME280_ADDRESS (0x77) // Primary I2C Address
/*!
* @brief alternate I2C address
*/
#define BME280_ADDRESS_ALTERNATE (0x76) // Alternate Address
// constructors
Adafruit_BME280();
Adafruit_BME280(int8_t cspin, SPIClass *theSPI = &SPI);
Adafruit_BME280(int8_t cspin, int8_t mosipin, int8_t misopin, int8_t sckpin);
~Adafruit_BME280(void);
bool begin(uint8_t addr = BME280_ADDRESS, TwoWire *theWire = &Wire);
bool init();
This is my Code
if (!bme.begin(0x76, &Wire)) {
Serial.print("No BME280");
while(true);
}
Is it possible that my adress not override the adress in the constructor ???
Sorry, i have found failure 
I have buy an BME280 and have became an BMP280 
If I use the the Adafruit Library for BMP280 then it also works.
The different between the two Librarys is, the Tyler Glenn identified the BME280 as BMP280 and run's well. The library compensates the hardware fail.
I hope this thread can help another frustrated hobbyists.
system
Closed
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.