SparkFun BMP581 Arduino Library

SparkFun Pressure Sensor - BMP581 (Qwiic) SparkFun Micro Pressure Sensor - BMP581 (Qwiic)
SparkFun Pressure Sensor - BMP581 (Qwiic) SparkFun Micro Pressure Sensor - BMP581 (Qwiic)

This library provides an easy way to control the BMP384 pressure sensor. It is a very precise sensor, allowing down to 1/64 Pa pressure resolution, plus a built-in filter to reduce noise. That's sufficient to measure the difference in pressure of raising/lowering the sensor by less than an inch!

The sensor also includes a temperature sensor, however it's not really intended for measuring air temperature; its main purpose is to compensate the pressure measurements. The measured temperature is usually a few degrees above ambient, and depends on things like the PCB temperature, sensor element, and even the I2C/SPI clock speed!

This library implements Bosch's BMP5 API in an Arduino-friendly way. All functions return error codes to indicate the result of each operation, where BMP5_OK (0) indicates success. The examples demonstrate basic ways of handling these errors, but error checking can be omitted to reduce code clutter if desired.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

Product Versions

Version History

  • v1.0.0 - Initial public release.

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact technical support on our SparkFun forums.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.