Hay guys, so I have an accelerometer which is obtaining values in either G or m/s/s depending on how I program it. Testing it everything seems fine and I get 1 G on one of the axis depending on how I hold it which is great. The problem is I'm using an ADXL345 accelerometer which gives me values in X, Y and Z but I only want the acceleration values, unfortunately I am also getting acceleration values with gravity, so essentially I want to remove gravity. Note that I don't care so much about orientation, but I do want to know its magnitude I guess. Also its going to be placed in a ball which a person can pick up in any sort of way and wave it around (not throw it) so I won't know what the orientation is at all. So far the things I've heard in doing it is to derive the values then reintegrate it so that I remove the constant component (gravity) the other way i heard about it is through a filter pretty much stealing the same thing as they are doing in an android example except for arduino, but I don't know if thats really going to be that accurate, and I don't quite understand the example either. Any help would be great!!