2015-03-09 11:36 AM
I was able to get the 6d movement detection working and below I have the register configurations that I've done.
My application logic is to configure for normal fifo mode and after a certain application delay switch to configuring for 6d movement detection,on movement configure it back to fifo mode.On reconfiguring the accel to 6d movement, when full-scale is set to +/-2g and the THS set to 4, I see false wake-ups everytime when the accelerometer is configured for wake-up,because of this an accel generates an interrupt as soon as it is configured for 6d movement even when the accel is resting on a table.(Although I understand the THS is low, I'm pretty sure there is no movement big enough to cause wake-up).However, this cycle goes on for about an hour and then the configuration from fifo mode to 6d movement detection works fine.REG1 0x20 = 0x27REG2 0x21 = 0x01REG3 0x22 = 0x40REG4 0x23 = 0x88REG5 0x24 = 0x05REG6 0x25 = 0x20INT1_CFG 0x30 = 0x7fINT1_THS 0x32 = 0x04INT1_DUR 0x33 = 0x00So, my observation is that when the accel X,Y,Z has varied a lot (due to activity) configuration of 6d movement with low threshold seems to cause false wake-ups.Please suggest on this. #lis2dh-6d-movement-detection