cancel
Showing results for 
Search instead for 
Did you mean: 

H3LIS100DL I2C ISSUE

Ajeth.11
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Ajeth.11
Associate III

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

View solution in original post

2 REPLIES 2
Eleon BORLINI
ST Employee

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
Associate III

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