Skip to main content

Air Pressure and Temperature Sensor (BMP280)

This sensor measures air pressure and temperature and is based on the BMP280 sensor from Bosch.

Pressure Sensor

Luftdruck und Temperatursensor

Technical Information

  • "Plug-in-and-Go" senseBox compatible
  • Operating pressure: 300 to 1100 hPa
  • Relative precision: ±0.12 hPa
  • Absolute precision: ±1 hPa
  • Operating supply current: 2.7 μA at 1 Hz sampling frequency
  • Dimensions: 25mm x 25mm x 9mm
  • Weight: 2.4 g

Connection

i2c port

Die Komponente wird am I2C Port angeschlossen.

Programming

#include <Adafruit_BMP280.h> // http://librarymanager/All#Adafruit_BMP280_Library
#include <SPI.h>

Adafruit_BMP280 bmp;

void setup() {
Serial.begin(9600);
bmp_sensor.begin();
}

void loop() {
Serial.print("Pressure: ");
Serial.println(bmp_sensor.readPressure());
Serial.print("Temperature: ");
Serial.println(bmp_sensor.readTemperature());
Serial.print("Altitude: ");
Serial.println(bmp_sensor.readAltitude(1013));
}

Programming (Blockly)

In Blockly, the sensor can be read using the following block:

In the block, you can select between the different parameters of the air pressure/temperature sensor:

  • Air pressure in Pascal (Pa)
  • Temperature in Celsius (°C)
  • Altitude above sea level in meters (a reference air pressure is required)