Accelerometer, Gyroscope & Magnetometer : What’s the difference

Tech Talk : Accelerometer, Gyroscope & MagnetometerThey are three sensors that are useful for determining position and orientation, but they measure different things.

  • Accelerometer
    An accelerometer measures accelerations. This is useful to measure changes in velocity(directly, as the acceleration is the first time derivative of the velocity) and changes in position (by integrating the signal). They are usually used for measuring small movements. Also note that gravity acts like a continuous acceleration upward (via Einstein’s equivalency principle), so a multiple-axis accelerometer can also be used as an absolute orientation sensor in the up/down plane.
  • Gyroscope
    A gyroscope measures either changes in orientation (regular gyro or integrating rate gyro) or changes in rotational velocity (rate gyro).
  • Magnetometer
    A magnetometer measures magnetic fields. Because the earth has a significant magnetic field, the magnetometer can be used as a compass. As such it is useful to determine absolute orientation in the north, east south and west plane.

You can purchase a 6 Degree Of Freedom (DOF), 9 DOF and 10 DOF boards. 6 DOF board normally means that it has an accelerometer (x,y and z axis) and a gyroscope (x,y and z axis). And a 9 DOF board has an accelerometer, gyroscope and a magnetometer (all with 3 axis each equating to 9 axis or 9 DOF). And the 10 DOF has accelerometer, gyroscope, a magnetometer and a barometer (9 axises from the first three sensors and 1 analog value from barometer – 10 DOF).

Xybernetics : 3 DOF
3 DOF Board

Xybernetics : 6 DOF
6 DOF Board

Xybernetics : 9 DOF
9 DOF Board

Xybernetics : 10 DOF
10 DOF Board

The DOF is not always in the multiples of 3. There are some odd number number as well… or rather prime numbered DOF.

Xybernetics : 2 DOF
2 DOF Board

Xybernetics : 5 DOF
5 DOF Board

These sensors work very well not as a single unit but when they are combined together. The reason for that is because they excel at different things. For example, for orientation, a magnetometer has poor accuracy for fast movement, but pretty much zero drift over time. An integrating scheme using gyros on the other hand reacts quickly and accurately to changes, but accumulates vast error over time. It also requires to start from a known orientation, as it only reacts to changes.

Combining the inputs to these sensors allows for quick and accurate position and orientation determination with a low amount of drift over time.

Together, these sensors are also referred to as an Inertial Measurement Unit, or IMU. You can find more information on the Wikipedia page for this term. Note that the unit is not strictly speaking purely inertial when you add magnetometers, but this nomenclature is widely used.