I´m working on a projekt where I have to measure the acceleration relative to the gravitation. I want to get an alert when there is an relative acceleration in any direction greater than x mg. I have tried with the build in high-pass filter and the click function, but I didn´t get results as expected. Does someone have an idea how i can use the build in functions of the sensor to get this working?
And I have a second question related to the sensor:
When i measure the temperature with the build in sensor, I get the values as 8bit two´s complement, left justified, but I haven´t found out how to convert them to the real temperature. I mostly get values of about -3 or -4 (converted from two´s complement into decimal) in a normal heated room. The temperature range is -40 to 85.