2020-09-23 11:10 AM
We are using two sensors. One is attached to a patient breathing circuit and the other is set to ambient pressure. We display the differential.
2020-09-25 06:26 AM
Hi @JMola.1 ,
do you see the same variation on both sensors you are using? Or the +/-3 hPa is the differential pressure between the two sensors?
The factory calibration values are loaded in register just after the device power-up, and after that you have to
/*
* Restore default configuration
*/
lps33hw_reset_set(&dev_ctx, PROPERTY_ENABLE);
do {
lps33hw_reset_get(&dev_ctx, &rst);
} while (rst);
/*
* Enable Block Data Update
*/
lps33hw_block_data_update_set(&dev_ctx, PROPERTY_ENABLE);
/*
* Set Output Data Rate
*/
lps33hw_data_rate_set(&dev_ctx, LPS33HW_ODR_10_Hz);
I suggest you to check the read_data_simple.c file on Github repository.
To increase the accuracy, and if you are interested in differential pressure (i.e. the pressure variation with respect to a reference pressure), you may use the Autozero function described in the datasheet, p.34, and implemented in C code in the github drivers (lps33hw_reg.c).
-Eleon
2020-09-25 07:11 AM