0

I never really understand the applications of the gyroscope on the iPhone/iPad, does it serve the similar function as the accelerometer but like an improvement to the accelerometer? What is the practical use of it?

CharlesB
  • 86,532
  • 28
  • 194
  • 218
Rich
  • 1
  • 1
  • 1

3 Answers3

2

"An accelerometer is a direct measurement of orientation, while a gyro is a measurement of the time rate of change of orientation." (1)
By combing the output of the two sensors, called sensor fusion, one can determine the orientation of the device precisely and fast. If you only use accelerometer with a low-pass filter, you still get a reasonable estimate for the orientation but it will lag.

Here is an excellent live demo of both (Google Tech Talk), starting at 21:50.

Ali
  • 56,466
  • 29
  • 168
  • 265
0

Gyroscope measures orientation, where accelerometer measures movement. Both have useful applications (gyroscope: Which direction am I driving towards? Accelerometer: Did I just shake my device?)

anthonyvd
  • 7,329
  • 4
  • 30
  • 51
  • Gyroscopes measure the time rate of change of orientation. – Ali Apr 04 '11 at 17:11
  • I don't know of the exact way these things work, only the way they can be used, so you're answer is a lot more precise than mine. Thanks for the clarification :) – anthonyvd Apr 04 '11 at 17:13
  • I just added a link to an interesting video, have a look at that, I think it is really useful. – Ali Apr 04 '11 at 17:20
0

The accelerometer tells you the difference in the force being experienced by the device and the force it would experience if it were in free fall. So if the device is static, the accelerometer tells you which way up is. When it's being shaken around, you get a summation of up plus the direction of the shake. Hence the accelerometer can detect some rotation, but not around the gravity vector and only if the device is otherwise static.

The gyroscope tells you the velocity at which the device is being rotated. So you can integrate values coming from it to keep track of orientation. That works across all axes and irrespective of device movement.

Tommy
  • 99,986
  • 12
  • 185
  • 204
  • 1
    You only have to integrate the gyro values once (not twice) and you will get the orientation. – Ali Apr 04 '11 at 17:09
  • Quite right. Answer corrected. Obviously I was having some sort of mental breakdown when I somehow decided that velocity is the second differential of position. – Tommy Apr 04 '11 at 18:51
  • I guess you thought of computing position from the accelerometer data. That indeed needs integrating twice (and works horribly). – Ali Apr 04 '11 at 20:00