2015-08-03 03:37 AM
Good morning,
I'm trying to set up a LPS25H sensor to read the same value as another one, which is the reference, in a controlled environment. My first guess has been to set up REF_P registers as the difference between readings from the 2 sensors which is initially stored by firmware. I set up REF_P registers, I enable the DIFF_EN bit in CTRL_REG1 (while sensor is disabled) and finally I enable the sensor again.The problem is that measures coming from sensors still differ for the same amount of pressure, while if I subtract the previously evaluated difference by firmware readings are very near.Could someone please describe the correct procedure to setup differential mode?Thank you,Andrea2015-08-05 06:23 AM
Hello Andrea,
after DIFF_EN you should enable AUTO_ZERO, then set your REF_P and run your measurement. AUTO_ZERO gets enabled setting writing 1 into bit 1 of CTRL_REG2 (at address 0x21).Best Regards,
Adalberto2015-08-05 07:49 AM
2015-12-20 03:51 PM
Hello,
I have a similar problem. I'm trying to use the LPS25HB pressure-sensor sensor in differential mode with my own settings in the REF_P registers. As Adalberto suggested, I tried to first enable DIFF_EN, than AUTOZERO and after that setting the REF_P registers. But it seems that my settings of REF_P are irgnored and only the auto-copy-values form the AUTOZERO-enable are stored, because the sensor-output is always around 0 afterwards (independent of which value I've written in REF_P). Am I doing something wrong? Or is there an other solution for that? Andrea, did you solve your problem? Thank you, Marc2015-12-22 10:31 AM
Hello Marc,
proceeding step by step : first set DIFF_EN bit then enable your sensor with a given ODR, at this point you will see ordinary measurements. Next set AUTOZERO, if everything is correct this is the point where you will see an allmost 0 ouput as consequence of initial pressure value being automatically copied in REF_P registers. Only after you get here REF_P registers can be overwritten with a value of you own choice. Regards, Adalberto