AnsweredAssumed Answered

MMA8652 accelerometer motion trigger event

Question asked by OEystein Kristiansen on May 13, 2016
Latest reply on May 16, 2016 by Tomas Vaverka

I am setting up the MMA8652 accelerometer sensor to trigger on motion event if an object moves in any direction, but it should not trigger on transient event like pulses or shakes etc. I have setup the unit with high pass filter and readout over I2C bus that the data registers 0x01 - 0x06 are almost zero so the static 1 g force in the Z direction is removed. Even though it always triggers an interrupt on the Z axis if the threshold values is set at 1 g or lower. Does the motion interrupt uses the high pass filtered values in the data registers or is there another filter I need to setup? Is there any code example on how to setup the registers to trigger on motion only and filter out ant shakes, noise etc? BR Øystein