MEMS accelerometer gravity projection and tilt error
A static MEMS inclinometer projects Earth’s 1 g gravity vector onto orthogonal axes: a_x = sin(θ) g and a_z = cos(θ) g.
- Single-axis sensitivity: d(a_x)/dθ = cos(θ) · 17.45 mg/°
- Dual-axis tilt: θ = atan2(a_x, a_z) keeps constant 0.0573°/mg offset sensitivity across 360°
Worked example
At θ = 30°, a_x = 0.5000 g and a_z = 0.8660 g. Single-axis sensitivity drops from 17.45 to 15.11 mg/°, so a 10 mg offset causes ±0.66° error in 1-axis arcsin vs ±0.57° with 2-axis atan2.
Frequently asked questions
Why should I avoid single-axis arcsin tilt sensing past 45°?
Because d(sin θ)/dθ = cos θ approaches zero near ±90°: at 80°, sensitivity drops by 5.7× and any mg offset or noise causes huge angular errors. Always use dual-axis atan2(a_x, a_z).
How much angle error does a 10 mg accelerometer offset cause?
With dual-axis atan2, every 1 mg of zero-g offset introduces approximately 0.0573° of tilt error, so 10 mg causes ±0.57°.
Why do MEMS inclinometers jump on vibrating cranes or excavators?
Accelerometers cannot distinguish linear acceleration or vibration from gravity. Use a low-pass filter for slow machinery or a 6-axis IMU (accelerometer + gyroscope Kalman filter) for dynamic motion.