Hi, Andrew
Acceleration means speed change. So a value near zero means there is no acceleration.
The library converts your 1.65V value into 0 acceleration. Check datasheet of MMA7361, page 6.
In your example at least one of axes should have an output value different from 1.65V.
Earth's gravity has this effect.
The equation of the accelerometer is (depending on g-range):
Uout = a [m/s^2] * 0.800 [V] + 1.65 [V] ... for 1.5g range
Uout = a [m/s^2] * 0.206 [V] + 1.65 [V] ... for 6g range
Therefore
a [m/s^2] = (Uout[V] -1.65 [V]) / 0.800[V] ... for 1.5g range
a [m/s^2] = (Uout[V] -1.65 [V]) / 0.206[V] ... for 6g range
So, your 1.65V output yields to a = (1.65 - 1.65) / 0.8 => a = 0 whichever the g-range.
Hope, that helped.
Regards.
So I'm trying to sample data from an MMA7361 triax accelerometer at 100Hz. I've managed to interface with the accelerometer, and I got it sampling at 100Hz, however I'm getting values that confuse me. I am measuring 1.65V at the pin from the triax, however when I sample this pin using x = accelerometer.getAccelX(); i get a value of 0.02. It's my understanding that this should actually be 4.74, as x = ((xout * 3.3)-1.65)/0.8; The important parts of the code are:
If anyone is able to help, it'd be greatly appreciated.