I'm using the MMA8453Q for tilt detection of 45 degree in any axis. I'm a newbie to embedded devices. I have a few questions.
1) Should I be using Transient detection or Motion detection for my use case? I referred the Application note AN4071. But, I'm unable to understand the use case scenario for both transient detection & motion detection with respect to tilt detection.
2) I'm currently using Transient detection. But, it is detecting only abrupt shakes. When I turn it slowly, it doesn't detect the tilt even if the board is in 90 degree. Is there any specific reason for that?
Register configurations are:
CTRL_REG1 - 0x1A (100 Hz ODR & F_READ) XYZ_DATA_CFG - 0x00 (2g) HP_FILTER_CUTOFF - 0x01 (2 Hz) TRANSIENT_CFG - 0x1E (Enabling all axes & latch) TRANSIENT_THS - 0x0B (For approx 45 degree tilt) TRANSIENT_COUNT - 0x05 (50 ms debounce count for 100 Hz ODR)
Kindly suggest me which registers I should change to detect if I move the board really slowly. Any kind of related suggestions or explanations are much appreciated.
I tried reducing the cut-off frequency. But, I couldn't reduce it below 2 Hz, as it started detecting interrupts even when it is stationary.