This is the Adafruit SPA06_003 Digital Pressure Sensor library for Arduino.
Tested and works great with the Adafruit SPA06_003 Breakout Board.
The SPA06_003 is a miniaturized Digital Barometric Air Pressure Sensor with high accuracy and low current consumption. Key features:
- Pressure range: 300 ... 1100hPa (+9000m ... -500m relating to sea level)
- Temperature Range: -40...+85°C
- Supply voltage: 1.7 ... 3.6V (VDD), 1.08... 3.6V (VDDIO)
- Small footprint: 2.0mm x 2.5mm; Super-flat: 0.95mm
- Relative accuracy: typ.±0.03hPa, equiv. to ±0.25 m
- Absolute accuracy: typ. ±0.3hPa (300 ... 1100hPa)
- Temperature accuracy: typ. ± 1°C
- Measurement time: 3.6ms for low precision mode
- Average current consumption: 1.7 µA for pressure measurement, 1.5 µA for temperature measurement at 1Hz sampling rate
- I2C and SPI interface
- FIFO: Stores latest 32 pressure or temperature measurements
- Embedded 24-bit ADC
To install, use the Arduino Library Manager and search for "Adafruit SPA06_003" and install the library.
This library depends on the Adafruit BusIO library
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation is produced by doxygen. Contributions should include documentation for any new features.
This library uses clang-format
to standardize the formatting of .cpp
and .h
files.
Contributions should be formatted using clang-format
:
The -i
flag will make the changes to the file.
clang-format -i *.cpp *.h
If you prefer to make the changes yourself, running clang-format
without the -i
flag will print out a formatted version of the file. You can save this to a file and diff it against the original to see the changes.
Note that the formatting output by clang-format
is what the automated formatting checker will expect. Any irrelevant changes (such as un-necessary whitespace changes) will result in a failed build until they are addressed. Using the -i
flag is highly recommended.
Written by Limor 'ladyada' Fried with assistance from Claude Code for Adafruit Industries. MIT license, check license.txt for more information All text above must be included in any redistribution
To install, use the Arduino Library Manager and search for "Adafruit SPA06_003" and install the library.