Skip to main content
Ajeth.11
Associate III
June 21, 2021
Solved

H3LIS100DL I2C ISSUE

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.
Ajeth.11
Ajeth.11Best answer
Associate III
July 6, 2021

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

2 replies

Eleon BORLINI
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.11
Ajeth.11AuthorBest answer
Associate III
July 6, 2021

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