How to get compass heading

I want to get the current compass heading (0...360) with reasonable accuracy and I don't know what chip(s) to use. I have looked at several including some that have a gyroscope but haven't found anything that seems to work well.

What is the simplest and easiest approach to solving this problem?

Define "reasonable" :slight_smile: Check out as well as for various modules that can give you a magnetic heading. You can also arrive at a heading using GPS - it can provide a heading if you are in motion.

Google HMC5883L and 6DOF

This site could be of help also: