No description
Find a file
ladyada 42528b07aa Initial commit - Complete Adafruit SPA06_003 Arduino library
Features:
- Fixed coefficient parsing with correct bit field extraction
- Temperature and pressure compensation algorithms
- Pressure readings in hPa (hectopascals)
- Adafruit_Sensor unified interface compatibility
- Complete register access and configuration API
- FIFO support and interrupt handling

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-26 16:52:29 -04:00
.claude Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
.github/workflows Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
examples/fulltest_spa06_003 Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
.clang-format Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
.gitignore Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
Adafruit_SPA06_003.cpp Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
Adafruit_SPA06_003.h Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
CODE_OF_CONDUCT.md Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
library.properties Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
LICENSE Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00
README.md Initial commit - Complete Adafruit SPA06_003 Arduino library 2025-08-26 16:52:29 -04:00

Adafruit SPA06_003 Build StatusDocumentation


Adafruit SPA06_003 Breakout

This is the Adafruit SPA06_003 Digital Pressure Sensor library for Arduino.

Tested and works great with the Adafruit SPA06_003 Breakout Board.

About the SPA06_003

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

Installation

To install, use the Arduino Library Manager and search for "Adafruit SPA06_003" and install the library.

Dependencies

This library depends on the Adafruit BusIO library

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation and doxygen

Documentation is produced by doxygen. Contributions should include documentation for any new features.

Formatting and clang-format

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.

About this Driver

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.