Skip to main content
Visitor II
June 21, 2021
Solved

H3LIS100DL I2C ISSUE

  • June 21, 2021
  • 2 replies
  • 4782 views

I am Working on H3LIS10DL And i have Read The WHO_AM_I Id of the H3LIS100DL i got the WHO_AM_I id is 32h. But not getting Correct Data of X,Y,Z Axis 

Also i Have tried the ST Library for the H3LIS100DL but seems we are not getting the correct data on this Library,The Below Library link that is i have used:

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/master/h3lis100dl_STdC

If anyone have worked on H3LIS100DL , share me a code or suggest me what is the issue

    This topic has been closed for replies.
    Best answer by Ajeth.11

    Thank you for your reply , now i am able to get XYZ axis Data

    2 replies

    ST Employee
    June 29, 2021

    Hi @Ajeth.1​ ,

    if you are reading the correct WHO_AM_I value, I believe the I2C communication is going well.

    In order to start data acquisition, you have to set at least the ODR value, for example as shown in the code below:

     /* Set Output Data Rate */
     h3lis100dl_data_rate_set(&dev_ctx, H3LIS100DL_ODR_5Hz);

    Which kind of X,Y,Z data are you currently receiving (I mean, 00h, or FFh, or else)?

    -Eleon

    Ajeth.11AuthorAnswer
    Visitor II
    July 6, 2021

    Thank you for your reply , now i am able to get XYZ axis Data