Magnetic Compass Module
The compass uses the Philips KMZ51 magnetic field sensor,
which is sensitive enough to detect the Earths magnetic field.
Needs 5 volts to work.
The output maybe PWM ( pulse width modulation ) or I2C interface.
You can download the library for Arduino here.
