We continually read adx372 xyz data, and find the variance from each axis is vary large compared with low g sensor under 1g environment . Is it normal?
while do echo -n "x: " cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw echo -n "y: " cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw echo -n "z: " cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw echo "========" sleep 1 doneOutput data (Unit: 100mg)
x:-1 y:11 z:-6
x:-8 y:0 z:10
x:-1 y:9 z:-15 ==> The max difference is 2.5g but test environment is 1g.
Probably I am not the best person to answer this question, but from what I know, the ADXL372 is recommended for high impact and shock detection, since it has a range of ±200 g. Therefore, this kind of error might be expected.
However, maybe jwang knows more about this topic.
1. Could you help confirm those output data is normal?
2. Does any filter can improve it?
Yes, the noise is normal. Please check the noise spec and 0g offset spec on table 1 of the datasheet. If you are only interested in the high g impact signal, you can enable the digital high pass filter.