cancel
Showing results for 
Search instead for 
Did you mean: 

Understanding the readings from H3LIS100DL MEMS Motion Sensor (Low Power High-g 3-axis digital accelerometer)

CEddi.1
Associate

Hi there,

I am working with the H3LIS100DL Accelerometer. I am able to get readings back and it seems to work fine.

My question is: what is the reading that I am getting back for the X (Reg 0x29), Y (Reg 0x2B), and Z (Reg 0x2D)? Does 1 digit equal ~1g? I have looked through the datasheet and unlike another accelerometer from ST that specifies how many 'g' 1 digit is, the datasheet for this accelerometer does not appear to have that information.

Thanks,

Christian

2 REPLIES 2
CEddi.1
Associate

I'll bump once, just in case :)

Eleon BORLINI
ST Employee

Hi Christian @CEddi.1​ ,

Together with the datasheet, I suggest you to check the C driver on Github (h3lis100dl_reg.c), where the conversion formula appears:

float_t h3lis100dl_from_fs100g_to_mg(int8_t lsb)
{
  return ((float_t)lsb / 256.0f) * 780.0f;
}

-Eleon