The BMP085 offers a measuring range of 30 to 110 kPa with an absolute accuracy of down to 0.1 kPa. It uses piezo-resistive technology for robustness, accuracy and linearity as well as long term stability. This sensor supports a voltage supply between 1.8 and 3.6VDC. It is designed to be connected directly to a microcontroller via an I²C bus.
Features
- Dimensions: 0.6″ × 0.6″ (15.24 × 15.24 mm)
- 1.8 to 3.6 V supply voltage
- 30 to 110 kPa pressure range
- 1 Pa pressure resolution of output data
- Digital two wire (I²C) interface
- Factory-calibrated with calibration values stored in EEPROM
- Temperature measurement included
This sensor has been discontinued but can still be found in breakout form so here is an example of connecting the breakout to a linkit one
Layout
Code
You will need to import the Adafruit BMP085 library into the Arduino IDE – https://github.com/adafruit/Adafruit-BMP085-Library
#include <Wire.h> #include <Adafruit_BMP085.h> Adafruit_BMP085 bmp; void setup() { Serial.begin(9600); if (!bmp.begin()) { Serial.println("Could not find a BMP085 sensor!"); while (1) {} } } void loop() { Serial.print("Temperature = "); Serial.print(bmp.readTemperature()); Serial.println(" *C"); Serial.print("Pressure = "); Serial.print(bmp.readPressure()); Serial.println(" Pa"); Serial.print("Altitude = "); Serial.print(bmp.readAltitude()); Serial.println(" meters"); Serial.print("Real altitude = "); Serial.print(bmp.readAltitude(101500)); Serial.println(" meters"); Serial.println(); delay(500); }
Links