How to convert raw data to engineering values (in mg) from LIS2DH12 Accelerometer sensor?
Hello,
We are using the LIS2DH12TR sensor in our project.
As per the datasheet, I understand that it always shows +1g on the +Z-axis when the IC is at rest.
We are operating the sensor in HR mode under different modes 2g, 4g, 8g and also in 16g mode. But strangely the raw values are always near 16384 (0x4000). I tried the same experiment with Low power mode and also normal mode. Still, the values are the same. I tried tilting the board making the X-axis and also Y-axis point to the sky, in that case, the respective axis shows a raw value near 16384 always.
If the respective axis is pointed towards the earth, then the sensor reads a value near -16384 (0xC000)
Please help me understand how to convert the raw values to engineering values.
It would be really helpful if anyone could break down the calculations for 4g. 8g and 16g (as I have gone through the 2g example), like what values should we expect when the board is kept at rest where Z-axis is pointing upwards and the sensor is operated in 4g, 8g and 16g?

Thank you,
C N Bharadwaj.
