This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Measure barometric air pressure around the BMP280 sensor

  • Library:
  • Simulink Coder Support Package for BeagleBone Blue Hardware / Sensors


The Barometer block measures the barometric air pressure around the BMP280 barometer on the BeagleBone® Blue hardware, in pascal. The block outputs the pressure as a 1-by-1 array of double data type.

If you simulate a model that contains the Barometer block without connecting the hardware, the block outputs zeroes. For more information, see Block Produces Zeros or Does Nothing in Simulation (Simulink).



expand all

The Pressure port outputs the barometric air pressure around the BMP280 barometer on the hardware. The air pressure is output as a 1-by-1 array in pascal.

Data Types: double


expand all

Specify how often the block reads values from the barometer, in seconds. When you specify this parameter as -1, Simulink® determines the best sample time for the block based on the block context within the model.

Sensor Settings

Select a rate at which the barometer samples the air pressure values, in Hertz.

Select a coefficient of the infinite impulse response (IIR) filter to reduce the noise-related error in the sampled values.

See Also


Introduced in R2019a