2

Iphone accelerometer provides user acceleration and gravity reading? It's clear from the apple guide the user acceleration means, the acceleration than the phone get's from the user. Then what is the meaning of gravity reading? Anyway they have mention total acceleration is the addition of both! I m confused with gravity reading, Can anyone explain me the theory behind this?

Thank you in advance!

sam
  • 259
  • 1
  • 6
  • 22

2 Answers2

4

The accelerometer measures the sum (user acceleration + gravity). Unfortunately it is of little use, in your application you typically need one or the other. So it is split into components (into user acceleration and gravity) with a sophisticated procedure called sensor fusion.

Gravity points downwards, corresponds to the gravitation. It tells you where downwards is. You can compute tilt angles from it, which may be handy in developing tilt games.

The user acceleration is handy when you are trying to figure out how the phone is shaken. It good for shaking games.

See also accelerometers uses- smartphone

Community
  • 1
  • 1
Ali
  • 56,466
  • 29
  • 168
  • 265
  • 1
    Thanks Ali for ur reply, But i have a question, If this gravity gives us where the downward is, It should be probably the y axis reading, But when i moves the phone, it reads out gravity z and gravity x, What do they stands for, Is it gravity change in that axis? – sam Jun 20 '12 at 17:54
2

Gravity is an acceleration which is constant an downward. It is indistingishable along its vector from any other constant acceleration. Rotating the phone is going to change the contribution of gravity to each of the acceleration axis proportionate to angle with the ground. Gravity being constant, any change in combined vector length of the three axis should be due to user acceleration.

starbolin
  • 840
  • 5
  • 13
  • Thank you! I have accept ur ans! If possible can you suggest me few resources(Online) that i can learn more! :) – sam Jun 20 '12 at 18:05