Skip to main content
Visitor II
October 28, 2019
Solved

Pressure of sensor LPS22HB always equal to 0.0

  • October 28, 2019
  • 2 replies
  • 1045 views

I use a STEVAL-IDB008V2 and connect sensor LPS22HB to it. By I2C bus , my program communicate with the sensor and it receve interrupt for end of pressure acquisition. The problem is that the pressure read is always equal to 0.0.

    This topic has been closed for replies.
    Best answer by CALVE

    Thanks. The problem is solved. Yes, as you can see in my program i check the WHO_AM_I code, and it was correct. The STEVAL-IDB008V2 implement another sensor on I2C bus (LPS25HB) with the same device address. Since i modified the address of LPS22HB, it run correctly and i read correct pressure and temperature. Regards.

    2 replies

    ST Employee
    October 28, 2019

    Hi @CALVE​ , supposing the I2C communication is well established, did you check if you are receiving the correct WHO_AM_I (0Fh) = B1h? Please check the reference code at this link if you are correctly setting the device (Check device ID, Restore default configuration, Set Output Data Rate) and in which mode you are trying to read data (read data simple, read one shot or multi read fifo). Regards

    CALVEAuthorAnswer
    Visitor II
    October 31, 2019

    Thanks. The problem is solved. Yes, as you can see in my program i check the WHO_AM_I code, and it was correct. The STEVAL-IDB008V2 implement another sensor on I2C bus (LPS25HB) with the same device address. Since i modified the address of LPS22HB, it run correctly and i read correct pressure and temperature. Regards.