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.


#2

Check out the tiny drawing in the MATRIX Creator board with the X and Y axis orientation.
image
To get Z axis orientation see image below of the right hand rule :
image