2019-01-04 10:33 PM
I am using LIS2HH12 accelerometer. In threshold register do I need to write value in terms of g. If I need to set threshold as 0.4 g then how to write .suppose if I want to set +0.4 (or -0.4) , writing 0.4 (float value) in 1 byte is not possible. Any conversion formulae I need use. Please help.
2019-01-06 03:59 AM
The threshold is in absolute value, the sign is not important. The equivalent value for 1 LSB for different full scale in in following table:
Please chapter chapter 6.2 in application note AN4662.
2019-01-07 03:40 AM
Thank you so much. But if the threshold is absolute value then how am I suppose to set -ve value of g.(like -0.4g). Please help
2019-01-07 06:21 AM
It is not possible to set the sign.
What would be a purpose of this? Maybe there is different way how to achieve what you want.
2019-01-07 08:17 PM
Sir, I know it is not possible.
My question is how can I calculate count value for negative values of g. I have a requirement like whenever x axis value exceeds -0.5 g then interrupt should set,
2019-01-09 01:35 AM
You can use 6D orientation detection.
Please read chapter 7 in application note AN4662.
In 6D detection the orientation of the sensor is taken into account.