Accelerometer + distance

Is it possible to use an accelerometer to mesure a distance between two points ??

Possible? Yes? Easy.. er no.

You would have to integrate to get the speed and then integrate again to get the distance. You would also have to take out gravity.

Is there an equation for that ?

marcovaldor:
Is there an equation for that ?

v = u + at
v2 = u2 + 2as
s = ut + 0.5at**2

...R

Is there an equation for that ?

See this explanation for why it is difficult: http://www.chrobotics.com/library/accel-position-velocity