Dave Edson and Greg Hogdal have written a wonderful article about using the accelerometer on Windows Phone 7. It describes how the native API is working. They have also made a simple class named AccelerometerHelper, which is very useful and makes the work with the accelerometer an easy job.
In this blog post we will talk about the different ways you can use the accelerometer API in Windows Phone 7. We also include a class called AccelerometerHelper that uses the Microsoft supplied managed API and provides a variety of data for you to experiment with and find the right solution for your application.
You can read the full story here.