HI
how to calculate the angle using Inclinometer, can give an idea how to interface with controller and calculation of angle. if any sample code is better to understand .( i decided to use the analog device Inclinometer like ADIS16203 or ADIS16209 )
Memsic has several application notes that should help you. My versions are all pdf and I am reluctant to upload so much here.
The ap notes are all of the form AN-00MX-0xx. Just search on "Memsic AN-00MX-0xx" and replace xx with the numbers from 01 through 015. You may find AN-00MX-001 and AN-00MX-014 most useful. Memsic's ap notes also include code and layout suggestions. Alternatively, go to the Memsic site and find the whole list there.