Pressure & Altitude
Interfacing BMP180 Pressure & Altitude with Arduino Uno
What is the BMP180?
BMP180 practical reference
An earlier-generation barometric pressure sensor, still widely used in altimeter and weather-station projects thanks to abundant library support. The BMP180 measures atmospheric pressure and temperature over I2C, and because pressure decreases predictably with altitude, its readings can be converted into a fairly accurate relative-altitude estimate — a long-standing staple for DIY weather stations, altitude-hold drone code, and any project needing a simple 'how high up am I' or 'is the weather changing' reading.
Key specifications
- Sensor type: Bosch BMP180 barometric pressure and temperature sensor
- Operating voltage: 1.8V–3.6V DC (breakout boards regulate from 3.3-5V input)
- Operating current: ~5 µA at 1 sample/second in standard mode
- Pressure range: 300 hPa to 1100 hPa (equivalent to roughly 9000m below to 500m above sea level)
- Pressure resolution: 0.01 hPa in ultra-high-resolution mode (roughly ~0.1m altitude resolution)
- Temperature accuracy: ±2°C typical
- Interface: I2C, up to 3.4MHz
- I2C address: 0x77 (fixed)
Pinout and connection notes
Add standard 4.7kΩ pull-up resistors on SDA/SCL if not already present on the breakout board. Because altitude is calculated from relative pressure, calibrate against a known local sea-level pressure reading (or a recent baseline reading at a known altitude) for meaningful absolute altitude results, since raw pressure alone only gives relative changes.
- VIN: Power, 3.3–5V DC depending on breakout regulator
- GND: Ground
- SCL: I2C clock line
- SDA: I2C data line
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.
Setting Up BMP180 with Arduino Uno
Library
Adafruit BMP085 Library by Adafruit
Search "Adafruit BMP085" in Library Manager (Sketch > Include Library > Manage Libraries) — despite the name, it also supports the BMP180
Wiring
| Component pin | Arduino Uno pin | Note |
|---|---|---|
| VIN | 5V (breakout regulates down) or 3.3V | |
| GND | GND | |
| SCL | A5 (SCL) | |
| SDA | A4 (SDA) |
Swipe sideways to see every column →
readAltitude() assumes sea-level pressure of 1013.25 hPa by default — pass your local sea-level pressure to bmp.readAltitude(seaLevelPressure) for an accurate absolute altitude, otherwise treat it as a relative measurement.
Related Components
A3144
Digital Hall-effect switch for contactless magnetic detection
BME280
Combined pressure, humidity, and temperature sensing — the go-to all-in-one environmental sensor.
BMP280
Precise barometric pressure and temperature sensing over I2C or SPI — ideal for weather stations.
MS5611
High-precision altimeter sensor used in drones and GPS units.
Related Guides & Projects
Arduino Uno R4 Minima Pinout: Every GPIO, ADC, DAC, and Op-Amp Pin Explained
A complete Arduino Uno R4 Minima pinout reference — digital I/O, ADC, DAC, op-amp, CAN, dual UART, and exactly what it leaves out compared to the WiFi variant.
Mastering PWM on Arduino: Dimming LEDs and Controlling Motors
Understand what PWM actually is on Arduino, dim an LED smoothly, and safely control a DC motor's speed with a driver chip -- plus the mistakes (like wiring a motor straight to a pin) that damage boards.
4-Digit 7-Segment Counter with TM1637 & Arduino
Drive a TM1637-based 4-digit 7-segment display with Arduino Uno to show a real-time up/down counter, elapsed timer, and scrolling text. Covers library setup, brightness control, and custom segment mapping.
Arduino Uno R4 Minima vs WiFi: Which One Should You Choose?
Same processor, same memory, different price. Here's what the WiFi variant's extra hardware actually gets you, and when the Minima is the smarter buy.