mpl115a2_calib - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > calibration


DESCRIPTION

The mpl115a2_calib utility is used to calibrate the temperature sensor in the MPL115A2 digital barometer. The utility operates by measuring the temperature using a Sensirion SHT sensor, measuring the temperature ADC count of the MPL115A2 sensor, and back-calculating the offset.

If calibration has been performed, the pressure_sampler utility reports temperature in addition to actual pressure ("pA"). If the host device altitude has also been set, the pressure_sampler additionally reports equivalent pressure at sea level ("p0").

The pressure_sampler sampler processes must be restarted for changes to take effect.

SYNOPSIS

mpl115a2_calib.py [{ -s | -d }] [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-s, --set set MPL115A2 calibration from internal SHT
-d, --delete delete the MPL115A2 calibration
-v, --verbose report narrative to stderr

EXAMPLES

./mpl115a2_calib.py -s

FILES

~/SCS/conf/mpl115a2_calib.json

DOCUMENT EXAMPLE

{"calibrated-on": "2018-06-20T10:25:39.045+00:00", "c25": 511}

SEE ALSO

scs_dev/climate_sampler
scs_dev/pressure_sampler

scs_mfr/pressure_conf