BME280 vs BMP280
Two Bosch sensors with identical pinouts but different features.
The BME280 and BMP280 both come from Bosch Sensortec and are usually sold on the same small breakout boards. The six-pin header is identical: VCC, GND, SCL, SDA, CSB and SDO. Both support I2C and SPI, and both use I2C address 0x76 when SDO is tied to ground and 0x77 when SDO is tied to VCC. Electrically, the modules are therefore direct replacements for each other.
The difference is on the inside: the BMP280 measures air pressure and temperature, the BME280 additionally measures relative humidity. Because both boards look the same, BMP280 modules are regularly sold as BME280. You can tell them apart reliably through the chip ID register 0xD0: the BMP280 reports 0x58, the BME280 0x60. Many libraries print exactly this value when they cannot find the sensor. The package also helps: the BME280 is square (2.5 × 2.5 mm), the BMP280 rectangular (2.0 × 2.5 mm).
On the software side you need the library that matches the chip, for example Adafruit_BME280 or Adafruit_BMP280. The table below confirms from the pinout data that all six pins are assigned the same way.
Same package and every pin has the same function. Always check voltage, current and timing in the datasheet.
Overview from the pinout data
| Property | BME280 Environmental Sensor Module | BMP280 Digital Barometric Pressure Sensor |
|---|---|---|
| Manufacturer | Bosch Sensortec | Bosch Sensortec |
| Type | Sensor | Chip |
| Compared pinout | 6-Pin I2C / SPI Breakout Header | Breakout Module (6-Pin Header) |
| Pins | 6 | 6 |
| Supply pins | VCC | VCC |
| Ground pins | 1 | 1 |
| Interfaces | I2C, SPI | I2C, SPI |
Interface pins
| I2C | BME280 Environmental Sensor Module | BMP280 Digital Barometric Pressure Sensor |
|---|---|---|
| SDA | 4 · SDA | 4 · SDA |
| SCL | 3 · SCL | 3 · SCL |
| SPI | BME280 Environmental Sensor Module | BMP280 Digital Barometric Pressure Sensor |
|---|---|---|
| MOSI / COPI | 4 · SDA | 4 · SDA |
| MISO / CIPO | 6 · SDO | 6 · SDO |
| SCK | 3 · SCL | 3 · SCL |
| CS / SS | 5 · CSB | – |
Pin number · pin name. "+n" = further pins with the same function.
Pin by pin
6 of 6 pins have the same function at the same position.
| Pin | BME280 Environmental Sensor Module | BMP280 Digital Barometric Pressure Sensor | |
|---|---|---|---|
| 1 | VCC | VCC | same |
| 2 | GND | GND | same |
| 3 | SCL | SCL | same |
| 4 | SDA | SDA | same |
| 5 | CSB | CSB | same |
| 6 | SDO | SDO | same |
Verdict
If you need humidity, you have to use the BME280 and check the chip ID when buying. For pure pressure and altitude measurement, the cheaper BMP280 is enough.