A Guide To using IMU (Accelerometer and Gyroscope Devices) in Embedded Applications.
This article discussed the theory behind accelerometer and gyroscope devices. It shows a simple Kalman filter alternative, that allows you to combine accelerometer and gyroscope data in order to obtain more accurate estimates about the inclination of the device relative to the ground plane.