I was curious about how the iPhone 3G S's compass feature work. After looking at Apple's patents and hardware discussion, I found the answer. The solution is actually quite simple. For a copy, email me.Read less