I'm using the MMA8453Q for motion detection. The accelerometer is mounted such a way that when it is stationary, X & Y axes are at 0g & Z-axis is at 1g.
My usecase is: A tilt across any axes beyond 45 degree should generate an interrupt.
I have enabled motion detection with threshold 0.707g. For X & Y axes the motion detection works properly & interrupts when tilted beyond 45 degree. But, for Z-axis, even while it is untouched it interrupts as by default it reads 1g.
Is it possible for me to correct this 1g and make it zero-g offset?
The description for the OFF_Z (User offset correction registers) mentions the following:
The 2’s complement 8-bit value would result in an offset compensation range ±256 mg
And, when I referred the application note AN4069, for calibration, they subtract from 0g,0g & 1g for X, Y & Z axes respectively. This makes me feel suspicious whether I could achieve a tilt detection across Z-axis.
Kindly suggest me how I could achieve my usecase.