trustnoone:
Hi guys, so I've been playing with an accelerometer (ADXL345) on an arduino and I seem to get what I assume to be proper acceleration values, if I place the X axis up then I get a value of approximately 1.01G which would be about 9.81m/s/s so that makes sense in terms of gravity. But the thing is I want to get only the acceleration of movement and thats all, but that value will obviously be wrong due to the added gravity values, 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 senselol.
You need to detect the magnitude and direction of the local gravity field under zero acceleration conditions, then remove that bias vector from your integrated accelerations.
Start here and have fun! Average G