Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I am wondering how compass calibration works / why e.g. drawing an 8 or rotating the phone to all 3 axis works (or at least shall work) - I mean I would understand the calibration process, if an application would say me: Point to north, then press that button down there, but you can start at basically zero knowledge for the app, just by rotating your phone! How is that done? Also, do I need to enter a special calibration mode or can I draw these figures (like the 8) directly in Google Maps? How does Google Maps know that I am not just really moving the phone but want to calibrate the compass? Thanks for any hint!

share|improve this question
Flagged as dupe, please don't post two separate questions for the same problem. Edit your existing question with new information; android.stackexchange.com/questions/30328/… –  pzkpfw Oct 3 '12 at 21:59
Moving an object through a magnetic field can induce an electric current, which I'm guessing is being measured in this case. The figure 8 ensures that the phone is moving along every possible vector in a 2D plane, which ought to allow it to distinguish north from south. I think. As for Maps sensing it, that one's easy -- what other time do you make such an absurd motion with your phone? It's quite different from normal movements and ought to be simple to detect. –  Matthew Read Oct 3 '12 at 22:00
@bigbadonk420 This is not a duplicate, it's a completely different question. –  Matthew Read Oct 3 '12 at 22:01
Technical information: electronics.stackexchange.com/questions/22144/… –  DragonLord Nov 16 '13 at 0:00

2 Answers 2

up vote 3 down vote accepted

Compass calibration works by detecting the magnetic field intensity of earth. But sometimes due to strong interference from other electronic devices like transformers compass sensor may get wrong idea about the magnetic poles of earth and can point in wrong direction. So to ensure that it asks users to recalibrate compass by rotating in figure 8 direction so that it can judge the magnetic intensity in all directions and then from that data it deduces the actual poles of earth.

share|improve this answer
+1: Great answer, why wasn't this upvoted? –  DragonLord Sep 19 '13 at 4:48

At any point in space, the magnetic field strength and direction is the net effect of all the magnetic field sources affecting that point. The earth's magnetic field is one of them. Magnetized screwdrivers, cars, refrigerator magnets, etc. all produce fields. Fields are also produced by current flowing through wires. It's like pouring water into a glass from multiple sources. Once it's in the glass, you can't tell where it came from.

There is no instrument that can determine the "actual poles" of the earth by measuring the magnetic field at a point. What the phone can do, however, is sense the point where the phone axis is parallel to the N/S magnetic force line and determine which end of the phone is north-pointing. If you do your dance far away from objects that might be magnetized, like cars and steel fences, the field the phone is measuring MAY be primarily the earth's field and hence the phone compass will be properly calibrated. If you then put the phone into a magnetized car, however, it will point the wrong direction for north. The steel in every car is magnetized to one degree or another.

High-precision compasses such are used on aircraft and serious maritime vessels actually have tiny correction magnets that are adjustable with screws for N/S and E/W errors. They are calibrated after installation by turning the vehicle onto known headings (a compass rose painted by a surveyor on a taxiway far from metal buildings, for example) and fussing with the magnets until the compass error is minimized. Then the residual errors are recorded on a "compass correction card" for use in correcting the indicated readings. Google for "compass correction card" to see images.

In theory, the gps could be used to calibrate the compass when walking or driving since the instantaneous GPS track is accurate. I have not heard of this being done, though it possibly is common. It would work even in a magnetized car. In an airplane or a ship this wouldn't work, however, because the vehicle's heading is to one degree or another usually crabbed slightly into the wind and the GPS has no knowledge of this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.