Compass/Magnetometer I2C - HMC5883L/QMC5883L (GY-271)
Product information:
This HMC5883L sensor allows you to determine which direction you are going in relation to the earth's magnetic field, simply put; this is a compass.
Download the Arduino library and use the example code there to get started right away!
Features:
- Power supply: 3V to 5V (by voltage regulator on the board).
- Readout via the I2C bus.
Supplied with straight header pins.
See the website link for more explanation and programming example.