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.pdfNotes
Connectivity
mbed LPC1768 pin | Arduino form-factor | BME280 module pin |
---|---|---|
1 (GND) | GND | 1, 5 (SDO, GND) |
40 (VOUT) | 3V3 | 4, 6, 7 (CSB, Vcore, Vio) |
p28 | SDA (D14) | 3 (SDI) |
p27 | SCL (D15) | 2 (SCK) |
Note
SDI and SCK must be pulled-up by 2.2k-ohm registers.
References
- You can purchase the breakout board from Switch Science international web shop here.
- BME280 product page
- How to use BME280 (Switch Science)
SPI interface version
Import libraryBME280_SPI
BME280 Combined humidity and pressure sensor library with SPI interface