Skip to content
Deliveries to the USA have resumed. Click here to learn more.
Deliveries to the USA have resumed. Touch here to learn more.

HMC5883L Triple Axis Compass Magnetometer Sensor Module

$9.95
SKU 68574477

Now available from PMD Way are these great value HMC5883L Triple Axis Compass Magnetometer Sensor Modules with free delivery.

Using the HMC5883L you can sense both the direction and the magnitude of Earth’s magnetic fields. Using this data you can then determine within a degree or two your heading towards magnetic north (not true north!) So you can have fun with various tasks - from making a simple compass to helping an autonomous device navigate. 

As this detects magnetic field strength, the more magnetic interference received from electrical devices (etc) - the less accurate the results will be. 

Module is compatible with both 3.3V and 5V systems.

Inline header pins are included but not soldered to the board. 

Specifications:

  • I2C interface - bus address is 0x1E
  • Works with both 3.3V and 5V
  • Accuracy +/- 1~2 degrees
  • Update rate up to 160Hz 
  • Range of -8 to +8 Gauss
  • For complete details and specifications, download the data sheet

More information:

Quick Arduino demonstration:

First, download and install the HMC5883L library from here. Next, solder the inline header pins to the module. Then connect your module to the Arduino with the following connections:

  • Module Vcc to Arduino 5V 
  • Module SDA to Arduino A4
  • Module SCL to Arduino A5
  • Module GND to ... Arduino GND!

HMC5883L Triple Axis Compass Magnetometer Sensor Module from PMD Way with free delivery worldwide

Now connect your Arduino to the computer, open the IDE and upload the example sketch included with the HMC5883L library. Open the serial monitor, set the data rate to 9600 and you should be presented with the raw and position data, for example:

HMC5883L Triple Axis Compass Magnetometer Sensor Module from PMD Way with free delivery worldwide

Easy. 

Don't forget to check out our full range of compass breakout boards if this doesn't meet your needs. And as always, all orders receive free delivery. 

And remember ... if you:

  • can't find what you need
  • not sure what to order
  • want a bulk deal
  • need technical support
  • or just want to have a talk ...

Please email us via support@pmdway.com

To keep up to date with new products, news, tutorials and more - we're on x, Facebook, Instagram, threads, reddit, and instructables