Compass example


#1

Problem: How to resolve X ,Y and Z components of magnetometer sensor?
What are their significance and relevance and how we should resolve to evaluate angle theta with respect to D1 LED which should point towards magnetic north?

I want to create a compass (Magnetometer) demo, which should point towards magnetic north.
Sensors are up and running, I can get the values x, y and z components of magnetic fields.
I want to create a circular LED matrix which should point towards magnetic north.