Start of trail End of trail navigation bar

Table of Contents

Quanser Mechatronics Sensors Trainer USB Barometer Pressure Page

The Quanser Mechatronics Sensors Trainer USB Barometer Pressure Page plots the pressure measured by the BME280 weather sensor in kPa. The page is depicted below with a sample plot:

Quanser Mechatronic Sensors Trainer USB Barometer Pressure Page

To go back to the Sensors page, tap on the close button in the top, right corner of the page. To change the sensor parameters, tap on the hamburger menu in the top, left corner of the page. This will open the settings screen described in the section below.

Settings

The settings page is common to the pressure, temperature and humidity provided by the BME280 weather sensor. The settings are illustrated below:

Quanser Mechatronic Sensors Trainer USB Barometer Settings Page

To skip the pressure measurement, set the Pressure oversampling to Skip. Otherwise set it to one of the oversampling options to both enable the pressure measurement and determine the amount of oversampling performed. Higher oversampling will reduce the noise but will add more lag to the measurement.

Since pressure measurements can be noisy, there is also an IIR filter that may be enabled for the pressure measurement. To disable the IIR filter, set the Filter coefficient to Off. Note that this setting will affect the temperature measurement as well. When the IIR filter is disabled, the effective pressure resolution is:

16 + (OSR - 1)

bits, where OSR is the log2 of the Pressure oversampling factor. For example, for 8X oversampling, OSR = log2(8) = 3 and the effective resolution is 16 + (3 - 1) = 18 bits.

When the IIR filter is enabled, the effective pressure resolution is 20 bits. The IIR filter computes the output for the next measurement using the following formula:

filtered output = (previous filtered output * (filter coefficient - 1) + ADC reading) / filter coefficient

where the "filter coefficient" is the value specified in Filter coefficient setting. The higher the filter coefficient, the slower the response time. For example, if there is a step input in pressure, the number of samples required to reach 75% of the step response is outlined in the following table:

Filter coefficient

Samples to reach 75% of step response

Filter off

1

2

2

4

5

8

11

16

22

The Inactive duration setting determines the output data rate of the sensor. It is the time between readings and affects the pressure, temperature and humidity readings.

Tap the close button in the top, right of the page to apply the new settings and return to the plot.

 

navigation bar