Skip to main content
Visitor II
February 17, 2025
Question

Unable to calibrate LPS22DF

  • February 17, 2025
  • 1 reply
  • 353 views

I am using a python script to update the One Point Calibaration register 1Ah, 1Bh. I put values in but the resultant reading of the normal pressure registers in 28h, 29h, 2Ah are way off. Does anyone have a script that might show exactly how it is done. The script can be in about any computer langauge.

Are there any tricks to get this to work?

    This topic has been closed for replies.

    1 reply

    Grandpa-GAuthor
    Visitor II
    February 17, 2025

    A bit more information

     

    Pressure @ 0hPa: 970.84 3976545 971.39 3978813.44 2268
    2025-02-17 15:06:06.650062 Pressure: 829.04 3976545 3395750 -580795 [220, 8] 2268 Temperature: 36.03

     

    The bold 970.84 is the value of the sensor with 0 calibration. The 971.39 is another sensor I am trying to compare against. The 2268 is raw value difference.

    When I update the calibration registers with [220, 8] the resultant next sensor pressure measurement is 3395750, a huge [580795]  value different. I only expected a difference of about 2268.