2019-03-28 11:37 PM
2019-03-29 01:07 AM
We know the gravity vector size, not its direction.
2019-03-29 01:34 AM
If you can enforce a calibration (reference sampling at rest), and can keep track of movements (Nyquist !), you can subtract the gravity vecor out.
This is not possible within a singular point of time (one accelerometer sample), with unknown forces (accelerations) acting on it.
2019-03-29 04:19 AM
if you are not interested in measure uniform acceleration (but e.g. only harsh events), on most of ST accelerometers (let's say from LIS3DH family on), you can set an HP filter to remove the DC component from the 3-axis output signal, removing also the 1g gravity.
[in the other case, yes, you can remove the 1g value from the intensity of the 3-component vector, or referring to an initial known value/direction]
2019-03-29 05:06 AM
A kind of high pass filter with a certain response time...