Accelorometer values without gravity?

trustnoone:
the problem is I never really know what orientation the accelerometer will be in. Does anyone have any ideas in how I could combat the effects of gravity in a sense :stuck_out_tongue: lol.

The answer is that you need to know which direction is vertical (relative to the accelerometer). If you know that the orientation will be constant, and know that gravity is the only acceleration that is sustained over the long term, you can work out out. Alternatively if you have gyro sensors so that you can detect rotational accelerations then it's possible to get a pretty good guess for which way is up. Depending on your environment you might be able to think of other ways to work it out.