This precision sensor from Bosch is the best low-cost sensing solution for measuring barometric pressure and temperature. Because pressure changes with altitude you can also use it as an altimeter!
About this Driver
Adafruit invests time and resources providing this open source code. Please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Kevin (KTOWN) Townsend for Adafruit Industries.
Compatibility
MCU
Tested Works
Doesn't Work
Not Tested
Notes
Atmega328 @ 16MHz
X
Atmega328 @ 12MHz
X
Atmega32u4 @ 16MHz
X
Use SDA/SCL on pins D2 & D3
Atmega32u4 @ 8MHz
X
Use SDA/SCL on pins D2 & D3
ESP8266
X
SDA/SCL default to pins 4 & 5 but any two pins can be assigned as SDA/SCL using Wire.begin(SDA,SCL)
Atmega2560 @ 16MHz
X
Use SDA/SCL on pins 20 & 21
ATSAM3X8E
X
Use SDA/SCL on pins 20 & 21
ATSAM21D
X
ATtiny85 @ 16MHz
X
ATtiny85 @ 8MHz
X
Intel Curie @ 32MHz
X
STM32F2
X
ATmega328 @ 16MHz : Arduino UNO, Adafruit Pro Trinket 5V, Adafruit Metro 328, Adafruit Metro Mini
请发表评论