BMP280 Digital Barometric Pressure Altitude Sensor - 3.3V

SKU: GM6008
BMP280 3.3V barometric pressure sensor module on a purple board beside a loose 6-pin header strip
BMP280 pressure sensor module and 6-pin header shown at an angle, as supplied in the package

BMP280 Digital Barometric Pressure Altitude Sensor - 3.3V

SKU: GM6008
Default
Regular price $2.99
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $100.00 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

Choose a quantity and add it to your cart.

USB Cable - Type C
$2.9910+ in stock
Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

The BMP280 is a Bosch digital barometric pressure and temperature sensor on a 3.3 V breakout module, with I2C and SPI interfaces.

It reports air pressure from 300 to 1100 hPa and temperature from −40 to +85 °C, so you can log the weather or estimate altitude with an Arduino, ESP32 or Raspberry Pi Pico.

Pressure range
300–1100 hPa
Temperature
−40 to +85 °C
Interface
I2C / SPI
Supply (VDD)
1.71–3.6 V

Why choose it

  • Altitude-grade pressure readings — relative accuracy of ±0.12 hPa, which Bosch equates to about ±1 m.
  • Low power — 2.74 µA typical at 1 Hz in ultra-low power mode.
  • Two interfaces — I2C (up to 3.4 MHz) or SPI (up to 10 MHz), with two selectable I2C addresses.

Specifications

Sensor
Sensor chip Bosch BMP280
Pressure range 300–1100 hPa
Absolute pressure accuracy ±1 hPa (300–1100 hPa, 0–65 °C)
Relative pressure accuracy ±0.12 hPa, equal to ±1 m (700–900 hPa)
Pressure resolution 0.0016 hPa (ultra-high resolution mode)
Operating temperature −40 to +85 °C
Temperature accuracy ±1.0 °C (0–65 °C); ±0.5 °C at 25 °C
Temperature resolution 0.01 °C
Electrical
Supply voltage (VDD) 1.71–3.6 V
Interface supply (VDDIO) 1.2–3.6 V
Current at 1 Hz 2.74 µA typical (ultra-low power mode)
Interface
Interfaces I2C (up to 3.4 MHz); SPI, 4-wire or 3-wire (up to 10 MHz)
I2C address 0x76 (SDO to GND) or 0x77 (SDO to VDDIO)
Chip ID register 0xD0 = 0x58
Header pins 6

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ◐ With adapter Needs a 5 V to 3.3 V I2C level converter; power the module from 3.3 V
ESP32 / ESP8266 (3.3 V) ✓ Yes Direct connection to the I2C pins
Raspberry Pi Pico / Raspberry Pi (3.3 V) ✓ Yes Direct connection to an I2C bus; 3.3 V only
Software ✓ Yes Arduino IDE with "Adafruit BMP280 Library"

In the box

Included
  • 1 × BMP280 3.3 V barometric pressure sensor module
  • 1 × 6-pin pin header

Applications

  • Weather stations and pressure logging
  • Altitude estimation for drones and balloons
  • Indoor floor-level and vertical-movement detection

Tutorial

What you'll build: read the air pressure, temperature and an estimated altitude from the BMP280 and print them on your computer every second. About 20 minutes.

How it works

The BMP280 measures air pressure and temperature. Air pressure drops as you go up, so the board can estimate your height from it.

  • GND — the return path for electricity. Every GND must be joined.
  • I2C (SDA + SCL) — two wires: SDA carries data, SCL is the clock.
  • CSB — tie it to 3.3 V to choose I2C. It must be high when the module powers up.
  • SDO — sets the I2C address: GND gives 0x76, 3.3 V gives 0x77. Do not leave it unconnected.
  • Sea-level pressure — the altitude figure is measured against this number (1013.25 hPa in the examples). Change it to today's local value for a better estimate.
ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32) board, USB cable, 6 jumper wires.

ESP32 DevKitC3V3GNDGPIO22 (SCL)GPIO21 (SDA)3.3 VBMP280 moduleVCCGNDSCLSDACSBSDOCSB → 3.3 VSDO → GND

■ Power (3.3 V) ■ GND ■ SDA (data) ■ SCL (clock) ⌒ = wires cross, not connected

# ESP32 pin Module pin Wire Notes
1 3V3 VCC Red 3.3 V only
2 GND GND Black Join all grounds
3 GPIO22 SCL Yellow Default I2C clock
4 GPIO21 SDA Blue Default I2C data
5 3V3 CSB Red CSB high selects I2C
6 GND SDO Black SDO low sets address 0x76

Modules differ between batches. Read the names printed on your module and match them to the table, not the position.

Watch out: ESP32 pins are 3.3 V only, which suits this module. Never feed a 5 V signal into a GPIO pin.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Add the ESP32 boards
Open File → Preferences and paste https://espressif.github.io/arduino-esp32/package_esp32_index.json into "Additional boards manager URLs". Then Tools → Board → Boards Manager, search "esp32" and install "esp32 by Espressif Systems" (see the official install guide).
3
Choose the board and port
Tools → Board → esp32 → ESP32 Dev Module, then Tools → Port. If no port appears, use a data USB cable and install the USB driver for your board.
4
Install the library
Sketch → Include Library → Manage Libraries, search "Adafruit BMP280 Library" by Adafruit (library page), click Install and choose Install all.
5
Check the I2C address
Upload the scanner below, open Serial Monitor at 115200 baud. If the upload fails, set Tools → Upload Speed → 115200 and upload again. If it stays on "Connecting…", hold the BOOT button until uploading starts. Use the default pins (GPIO21 and GPIO22) for this check.
▸ Example 1 — I2C scanner
#include <Wire.h>

void setup()
{
  Wire.begin();

  Serial.begin(115200);
  Serial.println("\nI2C Scanner");
}


void loop()
{
  byte error, address;
  int nDevices;

  Serial.println("Scanning...");

  nDevices = 0;
  for(address = 1; address < 127; address++ )
  {
    // The i2c_scanner uses the return value of
    // the Wire.endTransmission to see if
    // a device did acknowledge to the address.
    Wire.beginTransmission(address);
    error = Wire.endTransmission();

    if (error == 0)
    {
      Serial.print("I2C device found at address 0x");
      if (address<16)
        Serial.print("0");
      Serial.print(address,HEX);
      Serial.println("  !");

      nDevices++;
    }
    else if (error==4)
    {
      Serial.print("Unknown error at address 0x");
      if (address<16)
        Serial.print("0");
      Serial.println(address,HEX);
    }
  }
  if (nDevices == 0)
    Serial.println("No I2C devices found\n");
  else
    Serial.println("done\n");

  delay(5000);           // wait 5 seconds for next scan
}

✓ Check: Serial Monitor shows I2C device found at address 0x76 ! then done. If it shows 0x77, change the address in Example 2.

6
Read pressure, temperature and altitude
Upload the sketch below. Serial Monitor stays at 115200 baud.
▸ Example 2 — BMP280 readings
// Wiring: VCC->3V3, GND->GND, SCL->GPIO22, SDA->GPIO21,
//         CSB->3V3, SDO->GND (I2C address 0x76)
#include <Wire.h>
#include <Adafruit_BMP280.h>

const int SDA_PIN = 21;                // default ESP32 I2C pins
const int SCL_PIN = 22;
const uint8_t BMP_ADDRESS = 0x76;      // you can change this: 0x77 if SDO goes to 3V3
const float SEA_LEVEL_HPA = 1013.25;   // you can change this: today's sea-level pressure in hPa

Adafruit_BMP280 bmp;                   // I2C

void setup() {
  Serial.begin(115200);                // speed of the Serial Monitor
  Wire.begin(SDA_PIN, SCL_PIN);        // start I2C on GPIO21 / GPIO22
  if (!bmp.begin(BMP_ADDRESS)) {       // look for the sensor
    Serial.println("BMP280 not found - check wiring");
    while (1) delay(10);               // stop here
  }
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  Serial.print("Temperature: ");
  Serial.print(bmp.readTemperature());                 // degrees C
  Serial.println(" C");
  Serial.print("Pressure: ");
  Serial.print(bmp.readPressure() / 100.0);            // Pa -> hPa
  Serial.println(" hPa");
  Serial.print("Altitude: ");
  Serial.print(bmp.readAltitude(SEA_LEVEL_HPA));       // estimated height in metres
  Serial.println(" m");
  Serial.println();
  delay(1000);                         // one reading per second
}

✓ Check: Serial Monitor prints "OK - epartners.co.nz test" once, then temperature, pressure and altitude every second.

Troubleshooting

Board Problem Likely cause Fix
All Scanner finds nothing, or "BMP280 not found" SDA and SCL swapped, a loose jumper, or the sensor is not powered Check the wiring table, press the wires in firmly, and confirm VCC and GND first
All Scanner finds 0x77, not 0x76 SDO is tied high, not low Move SDO to GND, or change the address in the example to 0x77
All Still nothing after the wiring is checked I2C needs pull-up resistors on SDA and SCL and your module may not have them Add a 4.7 kΩ resistor from SDA to 3.3 V and another from SCL to 3.3 V
All Altitude changes by a few metres by itself Air pressure changes with the weather Normal. Set SEA_LEVEL_HPA to today's local sea-level pressure for a better estimate
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable or USB chip Tools → Upload Speed → 115200, then upload again
ESP32 Stuck on "Connecting…" Board is not in upload mode Hold the BOOT button until uploading starts
ESP32 No port in the Port menu Charge-only USB cable, or the USB driver is missing Use a data USB cable and install the USB driver for your board

Try next: print the readings on an OLED display, or log one reading a minute to watch the weather change over a day.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • This module is a 3.3 V part. Power it from 3.3 V only (the chip supply limit is 3.6 V) and use a level converter if your board's I2C runs at 5 V.
  • Do not leave CSB or SDO unconnected. CSB high selects I2C, and SDO sets the address (GND = 0x76, 3.3 V = 0x77).
  • Keep the sensor away from heat sources such as voltage regulators, or the temperature reading will run high.

Video guide

Datasheet

Key figures from the manufacturer's datasheet for the BMP280, the pressure sensor chip on this module.

BMP280 pressure sensor
Pressure range 300–1100 hPa
Operating temperature −40 to +85 °C (full accuracy 0 to +65 °C)
Absolute pressure accuracy ±1 hPa (300–1100 hPa, 0–65 °C)
Relative pressure accuracy ±0.12 hPa, equal to ±1.0 m (700–900 hPa)
Supply voltage (VDD) 1.71–3.6 V
Interface supply (VDDIO) 1.2–3.6 V
Current at 1 Hz 2.74 µA typical (ultra-low power mode)
Interfaces I2C (up to 3.4 MHz); SPI, 4-wire or 3-wire (up to 10 MHz)
I2C address 0x76 (SDO to GND) or 0x77 (SDO to VDDIO)
Chip ID register 0xD0 = 0x58
Package 8-pin metal-lid LGA, 2.0 × 2.5 × 0.95 mm

Download the BMP280 datasheet (PDF)

Source: Bosch Sensortec, BMP280 data sheet, document BST-BMP280-DS001-26 (revision 1.26, October 2021).

Resources

Which one should I choose?

Product Key difference Best for
This product: BMP280 Pressure and temperature; I2C and SPI; 3.3 V module Pressure and altitude readings at low cost
BME280 (3.3 V, 5 V) Adds humidity (0–100 % RH); the page lists 3.3 V and 5 V versions Weather stations that need humidity
BMP180 GY-68 I2C interface, 1.8–3.6 V supply; optional I2C pull-ups with a jumper Projects that already use the BMP180
BMP388 24-bit sensor, 300–1250 hPa range; absolute accuracy ±0.40 hPa (900–1100 hPa, 25–40 °C) Tighter pressure and altitude accuracy

FAQ

▸ Can I power the BMP280 module from 5 V?

No. The BMP280 supply (VDD) is limited to 3.6 V, so power the module from 3.3 V. With a 5 V board such as the Arduino UNO, add an I2C level converter for SDA and SCL.

▸ What is the I2C address of the BMP280?

It is 0x76 when SDO is connected to GND and 0x77 when SDO is connected to the interface supply. The Adafruit library assumes 0x77, so pass 0x76 to bmp.begin() if SDO goes to GND.

▸ Does the BMP280 measure humidity?

No. It measures pressure and temperature only. For humidity as well, see the BME280 in the table above.

▸ How accurate is the altitude reading?

Relative pressure accuracy is ±0.12 hPa, which Bosch equates to about ±1 m. Altitude comes from pressure, so it also moves with the weather. Set the sea-level pressure in the code to today's local value for the best estimate.

▸ Can I use SPI instead of I2C?

Yes. The chip supports 4-wire and 3-wire SPI at up to 10 MHz. Pull CSB low to choose SPI. The SDA and SCL pins then act as SDI and SCK. The tutorial above uses I2C.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed