BME280 Combined humidity and pressure sensor

The BME280 is as combined digital humidity, pressure and temperature sensor based on proven sensing principles. The sensor module is housed in an extremely compact metal-lid LGA package with a footprint of only 2.5 × 2.5 mm² with a height of 0.93 mm.

Hello World

Import programBME280_Hello

Hello program for BME280 library

Library

Import libraryBME280

BME280 Combined humidity and pressure sensor library with I2C interface

Datasheet

https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf

Notes

Connectivity

mbed LPC1768 pinArduino form-factorBME280 module pin
1 (GND)GND1, 5 (SDO, GND)
40 (VOUT)3V34, 6, 7 (CSB, Vcore, Vio)
p28SDA (D14)3 (SDI)
p27SCL (D15)2 (SCK)

Note

SDI and SCK must be pulled-up by 2.2k-ohm registers.

References

SPI interface version

Import libraryBME280_SPI

BME280 Combined humidity and pressure sensor library with SPI interface