Main Content

Barometer

Measure barometric air pressure around the BMP280 sensor

Add-On Required: This feature requires the Simulink Coder Support Package for Beaglebone Blue Hardware add-on.

  • Barometer block

Libraries:
Simulink Coder Support Package for BeagleBone Blue Hardware / Sensors

Description

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.

Ports

Output

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

Parameters

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.

Version History

Introduced in R2019a

See Also

|