paul x wrote: > acceleration, a is too small comaparing with gravity g. So, little > tilte will > become huge output of a. How can I canceal g from a, becomes critical! Gravity IS accelleration from the device's point of view. You can not separate the two without some additional knowledge. One useful fact about gravity is that it's constant. This can let you do calibration when you are known to not be moving, then subtract off gravity as long as orientation remains known. However, the latter is not easy, and the error will increase over time. You are unlikely to get acceptable accuracy for more than a few seconds using MEMS accellerometers and gyros. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads