Chosen Solution

On my iphone 4s the compass in running around. Is it possible to replace the compass?

Try stabilizing it with gyroscope. Here’s a video on it: http://www.sundh.com/blog/2011/09/stabal