Description: This is a breakout board for Honeywell's HMC5883L, a 3-axis digital compass. Communication with the HMC5883L is simple and all done through an I2C interface. There is no on-board regulator, so a regulated voltage of 2.16-3.6VDC should be supplied.

The breakout board includes the HMC5883L sensor and all filtering capacitors as shown. The power and 2-wire interface pins are all broken out to a 0.1" pitch header.

To make this code work, before you load the code, or even open the Arduino program, we need to place the “HMC5883L” folder into your Arduino Library. If you don’t know where that is by default, Look to the below