Adafruit Barometric BMP388 Sensor - Qwiic

The BMP388 has better precision than ever, which makes it excellent for environmental sensing or as a precision altimeter. It can even be used in either I2C and SPI configurations. The BMP3xx is the next-generation of sensors from Bosch and is the upgrade to the BMP280 - with a low altitude noise as low as 0.1m and the same fast conversion time. And like the previous BMP280, you can use I2C or SPI. For simple easy wiring, go with I2C. If you want to connect a bunch of sensors without worrying about I2C address collisions, go with SPI.

This sensor has a relative accuracy of 8 Pascals, which translates to about ± 0.5 meters of altitude (compare to the BMP280's 12 Pascal/ ±1 meter). The datasheet sort of implies they intend this sensor to be used for drones and quadcopters, to keep altitude stable, but you could also use this for wearables or any project that wants to track height-above-sea-level. Note that for absolute height you'll still need to enter in the barometric pressure at sea level if the weather changes, but that's true of every altimeter sensor that uses pressure. You can also measure temperature with ±0.5°C accuracy.

Quick Spec

  • Chip: BMP388
  • Supply Voltage: 3V to 5V
  • Operating Range: -40 ~ +85°C, 300 - 1250 hPa
  • Digital Interface: I2C, SPI
  • Relative Accuracy: ±8 Pa (±0.66 m)
  • Absolute Accuracy: ± 50 Pa
  • Temperature Coefficient Offset: ±0.75 Pa/K
  • Current Consumption: 3.4uA @1 Hz pressure and temperature, 2uA in sleep mode
  • Dimensions: 25.5 x 17.8mm
  • Net Weight: 4g

Wiring Diagram

sensors-BMP388-arduino-I2-C-breadboard-bb

Sample Code



/***************************************************************************
  This is a library for the BMP3XX temperature & pressure sensor

  Designed specifically to work with the Adafruit BMP388 Breakout
  ----> http://www.adafruit.com/products/3966

  These sensors use I2C or SPI to communicate, 2 or 4 pins are required
  to interface.

  Adafruit invests time and resources providing this open source code,
  please support Adafruit and open-source hardware by purchasing products
  from Adafruit!

  Written by Limor Fried & Kevin Townsend for Adafruit Industries.
  BSD license, all text above must be included in any redistribution
 ***************************************************************************/

#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include "Adafruit_BMP3XX.h"

#define BMP_SCK 13
#define BMP_MISO 12
#define BMP_MOSI 11
#define BMP_CS 10

#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BMP3XX bmp;

void setup() {
  Serial.begin(115200);
  while (!Serial);
  Serial.println("Adafruit BMP388 / BMP390 test");

  if (!bmp.begin_I2C()) {   // hardware I2C mode, can pass in address & alt Wire
  //if (! bmp.begin_SPI(BMP_CS)) {  // hardware SPI mode  
  //if (! bmp.begin_SPI(BMP_CS, BMP_SCK, BMP_MISO, BMP_MOSI)) {  // software SPI mode
    Serial.println("Could not find a valid BMP3 sensor, check wiring!");
    while (1);
  }

  // Set up oversampling and filter initialization
  bmp.setTemperatureOversampling(BMP3_OVERSAMPLING_8X);
  bmp.setPressureOversampling(BMP3_OVERSAMPLING_4X);
  bmp.setIIRFilterCoeff(BMP3_IIR_FILTER_COEFF_3);
  bmp.setOutputDataRate(BMP3_ODR_50_HZ);
}

void loop() {
  if (! bmp.performReading()) {
    Serial.println("Failed to perform reading :(");
    return;
  }
  Serial.print("Temperature = ");
  Serial.print(bmp.temperature);
  Serial.println(" *C");

  Serial.print("Pressure = ");
  Serial.print(bmp.pressure / 100.0);
  Serial.println(" hPa");

  Serial.print("Approx. Altitude = ");
  Serial.print(bmp.readAltitude(SEALEVELPRESSURE_HPA));
  Serial.println(" m");

  Serial.println();
  delay(2000);
}


Resources

Shipping List

  • 1 x Adafruit Barometric BMP388 Sensor - Qwiic


Adafruit Barometric BMP388 Sensor - Qwiic

  • Brand: Adafruit
  • Product Code: AF3966
  • Weight: 0.004kg
  • Product Status : Active
  • Stock

    Warehouse Stock Status Location
    Centurion No Stock
    Stellenbosch No Stock
    Bulk Location No Stock

    We ship free of charge between branches to complete your order.

  • R195.00 (Inc Tax: R224.25)


Related Products

Adafruit Pressure Sensor - MPL115A2 I2C Interface 3.3/5V

Adafruit Pressure Sensor - MPL115A2 I2C Interface 3.3/5V

MPL115A2 - I2C Barometric Pressure Sensor This pressure sensor from Freescale is a great low-cost sensing solution for measuring barometric pressure. At 1.5 hPa resolution, it's not as precise as o..

Centurion (No Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: AF992
Product Status : Active

R84.00 (Inc Tax: R96.60)

Barometric Pressure Sensor BMP388

Barometric Pressure Sensor BMP388

Barometric Pressure Sensor BMP388 This is a 24-bit high precision barometric pressure sensor, which allows accurate altitude tracing, as well as barometric pressure/temperature measuring. It supports..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: W16115
Product Status : Active

R335.00 (Inc Tax: R385.25)

Adafruit LPS35HW Water Resistant Pressure Sensor

Adafruit LPS35HW Water Resistant Pressure Sensor

Adafruit LPS35HW Water Resistant Pressure Sensor Sometimes you need to sense pressure in a damp environment. And sometimes you need to know the relative changes in pressure as well as the absolute pr..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: AF4258
Product Status : Active

R268.00 (Inc Tax: R308.20)

Adafruit DPS310 Pressure Sensor - Qwiic Interface

Adafruit DPS310 Pressure Sensor - Qwiic Interface

Adafruit DPS310 Pressure Sensor - Qwiic Interface The DPS310 sensor is a precision barometric sensor, perfect for measuring altitude changes with a up to ±0.002 hPa (or ±0.02 m) precision high prec..

Centurion (No Stock)
Stellenbosch (No Stock)
Bulk Location (No Stock)
Part No: AF4494
Product Status : Active

R169.00 (Inc Tax: R194.35)

SparkFun Qwiic Press/Hum/Temp Sensor

SparkFun Qwiic Press/Hum/Temp Sensor

SparkFun Qwiic Pressure/Humidity/Temperature Sensor The MS8607 from TE is an impressive combination pressure, humidity, temperature (PHT) sensor with accuracy of ±2mbar pressure, ±3% humidity, and ±1..

Centurion (In Stock)
Stellenbosch (No Stock)
Bulk Location (No Stock)
Part No: SPX-16298
Product Status : Active

R545.00 (Inc Tax: R626.75)

Adafruit LPS22 Pressure Sensor - Qwiic

Adafruit LPS22 Pressure Sensor - Qwiic

Adafruit LPS22 Pressure Sensor - Qwiic The LPS22 is the Worlds Smallest sensor (according to ST) and it is surprisingly tiny - only 2x2mm. It has a wide measurement range of 260 to 1260 hPa with 24..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: AF4633
Product Status : Active

R178.00 (Inc Tax: R204.70)

SparkFun Micro Press Sensor - BMP384 (Qwiic)

SparkFun Micro Press Sensor - BMP384 (Qwiic)

SparkFun Micro Press Sensor - BMP384 (Qwiic) The SparkFun Qwiic Micro Pressure Sensor features the BMP384 pressure sensor from Bosch Sensortec. The BMP384 excels at high-resolution measurements (up t..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: SEN-19833
Product Status : Active

R378.00 (Inc Tax: R434.70)

SparkFun Pressure Sensor - BMP384 (Qwiic)

SparkFun Pressure Sensor - BMP384 (Qwiic)

SparkFun Pressure Sensor - BMP384 (Qwiic) The SparkFun Qwiic Pressure Sensor features the BMP384 pressure sensor from Bosch Sensortec. The BMP384 excels at high-resolution measurements (up to 24-bit)..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: SEN-19662
Product Status : Active

R345.00 (Inc Tax: R396.75)

Pololu Pressure/Altitude Sensor with Voltage Regulator

Pololu Pressure/Altitude Sensor with Voltage Regulator

Pololu Pressure/Altitude Sensor with Voltage Regulator This carrier for ST’s LPS22DF digital barometer measures pressures from 26 kPa to 126 kPa with absolute accuracy down to ±0.05 kPa and typical..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: 2898
Product Status : Active

R185.00 (Inc Tax: R212.75)

BMP388 Barometric Sensor

BMP388 Barometric Sensor

BMP388 Barometric Sensor The BMP388 has better precision than ever, which makes it excellent for environmental sensing or as a precision altimeter. It can even be used in either I2C and SPI configura..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: BMP388-QWIIC
Product Status : Active

R165.00 (Inc Tax: R189.75)

Tags: adafruit, barometric, baro, bmp, bmp388, bmp390, alt, pressure, altitude, sensor, qwiic, i2c, spi, 3v, 5v, precision, altimeter, temp, temperature