Skip to main content
ORana.1
Associate II
April 8, 2022
Question

We are using H3LIS100DL MEMS Accelerometer Sensor with STM32L496XX Board. We are using I2C connection for getting the x,y and z axis data.We are getting the Device ID correct but not able to get the Correct x,y and Z axis data.Please give anyideas.

  • April 8, 2022
  • 3 replies
  • 1228 views

..

    This topic has been closed for replies.

    3 replies

    Eleon BORLINI
    ST Employee
    April 8, 2022

    Hi @ORana.1​ ,

    can you please share the LSB you are getting?

    Are you correctly configuring the H3LIS100DL device?

    See for example the C drivers on Github --> h3lis100dl_read_data_polling.c

    -Eleon

    ORana.1
    ORana.1Author
    Associate II
    April 18, 2022

    Hello @Eleon BORLINI​ 

    i have used the same example as you mentioning but still we are not getting the correct result.

    Please guide us if we are missing some thing.

    ORana.1
    ORana.1Author
    Associate II
    April 8, 2022

    Hello @Eleon BORLINI​ 

    I am setting below configuration

    CTRL_REG1 = 0x27

    CTRL_REG2 = 0x00

    CTRL_REG3 = 0x00

    Please check

    ORana.1
    ORana.1Author
    Associate II
    April 8, 2022

    When i am reading the STATUS_REG its always give the value 0x99

    ORana.1
    ORana.1Author
    Associate II
    April 12, 2022

    If anyone is having some logic or correction for this Problem Just help me.