Configure LIS3DSH state machine to detect angle change?
I've used the LIS3DSH state machine to set the INT1 interrupt high when a certain acceleration threshold is exceeded. However, I'd like to use the state machine to detect a change in orientation.
For example, I'd like it to set the interrupt high when the orientation of the accelerometer (when laying flat, with the Z axis pointing up) changes by a few degrees. Anyone know if this is possible?
Looking at STM Application Note AN3393, it looks like the only possibility might be to use peak detection as described in section 8 of AN3393. However, I'm concerned with such a slight angle of change (a few degrees), the noise of normal vibration might be too great to properly identify an angle change that small.
Anyone have any suggestions or thoughts?
