Triple-axis Magnetometer (Compass) Board - HMC5883L

$15.09

Part Number:  AF-1746
Brand:  Adafruit Australia

DescriptionHe told you "Go West, young maker!" - but you don't know which way is West! Ah, if only you had this triple-axis magnetometer compass module. A magnetometer can sense where the strongest magnetic force is coming from, generally used to detect magnetic north.Adafruit based this breakout on a popular and theyll loved magnetometer, the HMC5883L. This compact sensor uses I2C to communicate and its...
We can dispatch today: - units (delivered by -)
We can dispatch in - days: - units (delivered by -)

Description

He told you "Go West, young maker!" - but you don't know which way is West! Ah, if only you had this triple-axis magnetometer compass module. A magnetometer can sense where the strongest magnetic force is coming from, generally used to detect magnetic north.

Adafruit based this breakout on a popular and theyll loved magnetometer, the HMC5883L. This compact sensor uses I2C to communicate and its very easy to use. Since it's a 3.3V max chip, they added circuitry to make it 5V-safe logic and power, for easy use with either 3 or 5V microcontrollers. Simply connect VCC to +3-5V and ground to ground. Then read data from the I2C clock and data pins. There's also a Data Ready pin you can use to speed up reads (check the datasheet for details)

If using with an Arduino, its extra-easy to get started as they already wrote a nice little Arduino library with a matching tutorial to get you started. Simply download Adafruit's library and connect the SCL pin to your Arduino's I2C clock pin, and SDA pin to your Arduino's I2C data pin and upload Adafruit's test example sketch to read out magnetic field data and heading (i.e. which way is north)

This is the same magnetometer sensor that is inside the LSM303. So if you want an accelerometer as theyll as a magnetometer, check out the LSM303 - it has basically this sensor + a nice digital 3-axis accelerometer!

Specs:

  • I2C interface
  • 1-2 degree heading accuracy
  • Integrated 12-bit ADC
  • 160Hz max data rate
  • Range of -8 to +8 Gauss

Technical Details

Datasheets, PCB CAD files, Fritzing objects and more in the tutorial

Specs:

  • I2C interface. This board/chip uses I2C 7-bit addresses 0x3C
  • 1-2 degree heading accuracy
  • Integrated 12-bit ADC
  • 160Hz max data rate
  • Range of -8 to +8 Gauss

Resources