What does the BMP180 measure?
The Bosch BMP180 measures barometric pressure and temperature over I²C. Factory calibration coefficients stored on the sensor are used to compensate the raw measurements. Pressure can support weather monitoring and altitude estimation, but altitude is calculated rather than directly measured.
Key specifications
- Pressure range: approximately 300–1100 hPa
- Supply voltage (bare IC): 1.8–3.6 V
- Interface: I²C
- Fixed 7-bit I²C address: 0x77
- Temperature measurement: integrated
- Pressure oversampling: selectable conversion modes trade conversion time for noise/resolution
Check the Bosch datasheet and the exact breakout documentation before designing a power or interface circuit.
Warning
The bare BMP180 is a 1.8–3.6 V device and its I²C pins are not 5 V tolerant. A regulator on a breakout board does not automatically mean SDA/SCL are level shifted. With a 5 V Uno, use a bidirectional I²C level shifter unless the exact board explicitly documents 5 V-safe I²C. Keep ESP32 I²C pull-ups at 3.3 V.
I²C address and bus sharing
The BMP180 uses fixed 7-bit address 0x77; the standard device has no address-select pin. Some BME280/BMP280 breakouts can also use 0x77. If both devices are on one bus, configure the other sensor to 0x76 if supported, or use a separate bus/I²C multiplexer.
Pressure, units and altitude
The Adafruit BMP085/BMP180 library returns pressure in pascals (Pa); divide by 100 for hPa. readAltitude(seaLevelPressurePa) expects sea-level pressure in Pa and defaults to 101325 Pa. Use a current local meteorological sea-level pressure reference for a better altitude estimate. Do not pass hPa directly or substitute the sensor's station pressure for sea-level pressure.
Sampling and sensor placement
The library's oversampling mode affects pressure conversion time and noise. Keep the sensor away from warm regulators, processors, direct sunlight, drafts and moisture. Enclosures and trapped heat can bias temperature. Weather-driven pressure changes also affect altitude estimates, even when physical height is unchanged.
BMP180 troubleshooting
- Not detected: check supply, ground, SDA/SCL, pull-ups and address 0x77.
- Uno bus errors: verify the bidirectional level shifter and 3.3 V sensor-side pull-ups.
- ESP32 bus errors: verify actual I²C pin mapping and 3.3 V pull-ups.
- Implausible altitude: check that the reference is sea-level pressure in Pa, not hPa.
- Temperature drift: move the sensor away from heat sources and allow it to stabilize.
Reproducible BMP180 projects
Record the exact breakout and revision, supply voltage, I²C pull-up arrangement, controller board, library version, oversampling mode, sea-level pressure reference and observed readings. Similar-looking modules may not share the same regulator or logic-level protection.
Wiring & code
Board integration
Library
Adafruit BMP085 Library by Adafruit
Install Adafruit BMP085 Library and Adafruit BusIO using Arduino Library Manager. The BMP085-named library also supports BMP180.
Wiring
| Component pin | Arduino Uno pin | Note |
|---|---|---|
| VCC / VIN | 3.3V regulated supply | Use a regulated 3.3 V supply for the sensor/module unless its exact breakout documentation specifies another supported VIN range. |
| GND | GND | Common ground is required. |
| SCL | A5 (SCL) | Route through a bidirectional I²C level shifter for a 5 V Uno unless the exact breakout explicitly confirms 5 V-safe I²C. |
| SDA | A4 (SDA) | Route through the same bidirectional I²C level shifter; keep sensor-side pull-ups at 3.3 V. |
#include <Wire.h>
#include <Adafruit_BMP085.h>
Adafruit_BMP085 bmp;
// Replace with current local sea-level pressure in pascals (Pa).
// 101325 Pa is the standard-atmosphere reference, not a live local value.
const float SEA_LEVEL_PRESSURE_PA = 101325.0;
void setup() {
Serial.begin(9600);
Wire.begin();
if (!bmp.begin(BMP085_ULTRAHIGHRES)) {
Serial.println("BMP180 not detected. Check power, I2C wiring and address 0x77.");
while (true) {
delay(100);
}
}
Serial.println("BMP180 ready");
}
void loop() {
const float temperatureC = bmp.readTemperature();
const int32_t pressurePa = bmp.readPressure();
const float pressureHpa = pressurePa / 100.0;
const float altitudeM = bmp.readAltitude(SEA_LEVEL_PRESSURE_PA);
Serial.print("Temperature: ");
Serial.print(temperatureC, 2);
Serial.print(" C | Pressure: ");
Serial.print(pressureHpa, 2);
Serial.print(" hPa | Estimated altitude: ");
Serial.print(altitudeM, 2);
Serial.println(" m");
delay(1000);
}Library: install Adafruit BMP085 Library and its Adafruit BusIO dependency through Arduino Library Manager. The library supports BMP085 and BMP180. This example uses the fixed I²C address 0x77 and ultra-high-resolution pressure mode. Set SEA_LEVEL_PRESSURE_PA to a current local sea-level pressure value in pascals for a better altitude estimate. The Uno is a 5 V board: use a bidirectional I²C level shifter unless this exact breakout documents 5 V-safe SDA/SCL.
