# Adafruit QMC5883P - Triple Axis Magnetometer

## Overview

![front view of the breakout](https://cdn-learn.adafruit.com/assets/assets/000/138/824/medium800/adafruit_products_6388-04.jpg?1754504773 )

Sense the magnetic fields that surround us with this handy triple-axis magnetometer (compass) module. Magnetometers can sense where the strongest magnetic force is coming from, generally used to detect magnetic north, but can also be used for measuring magnetic fields. This sensor tends to be paired with a 6-DoF (degree of freedom) accelerometer/gyroscope to create a 9-DoF inertial measurement unit that can detect its orientation in real-space, thanks to Earth's stable magnetic field.

![back view of the board](https://cdn-learn.adafruit.com/assets/assets/000/138/825/medium800/adafruit_products_6388-02.jpg?1754504799 )

We based this breakout on the [QMC5883P](https://www.qstcorp.com/en_comp_prod/QMC5883P), a magnetometer we see used in many Quadcopter and robotic builds. This compact sensor uses I2C to communicate, and it's very easy to use. Simply download our library and connect the SCL pin to your I2C clock pin, and SDA pin to your I2C data pin and upload our test program to read out magnetic field data.

This sensor can sense ranges from +-2 Gauss (+- 200 uTesla) up to +-30 gauss (+- 3000 uT or 3.0 mT). With 16-bit ADC and settings for over-sampling and downsampling, you can set it up to get just the right range and precision.

![stemma view of the breakout](https://cdn-learn.adafruit.com/assets/assets/000/138/827/medium800/adafruit_products_6388-03.jpg?1754504864 )

To make life easier so you can focus on your important work, we've taken the QMC5883P and put it onto a breakout PCB along with support circuitry to let you use this little wonder with 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328) logic levels. Additionally, since it speaks I2C, you can easily connect it up with two wires (plus power and ground!).

We've even included&nbsp;[SparkFun qwiic](https://www.sparkfun.com/qwiic) compatible **[STEMMA QT](https://learn.adafruit.com/introducing-adafruit-stemma-qt)** connectors for the I2C bus so **you don't even need to solder!** Just wire it up to your favorite micro and you can use our CircuitPython/Python or&nbsp;[Arduino drivers to easily interface with the QMC5883P](https://github.com/adafruit/Adafruit_QMC5883P) and get magnetic measurements ASAP. [**QT Cable is not included** , but we have a variety in the shop](https://www.adafruit.com/?q=stemma+qt+cable&sort=BestMatch).

It's fully assembled and tested. Comes with a bit of 0.1" standard header in case you want to use it with a breadboard or perfboard. Four 2.5mm (0.1") mounting holes for easy attachment.

![front view of the breakout with headers](https://cdn-learn.adafruit.com/assets/assets/000/138/826/medium800/adafruit_products_6388-01.jpg?1754504834 )

- [Next Page](https://learn.adafruit.com/adafruit-qmc5883p-triple-axis-magnetometer/pinouts.md)

## Primary Products

### Adafruit QMC5883P - Triple Axis Magnetometer

[Adafruit QMC5883P - Triple Axis Magnetometer](https://www.adafruit.com/product/6388)
Sense the magnetic fields that surround us with this handy triple-axis magnetometer (compass) module. Magnetometers can sense where the strongest magnetic force is coming from, generally used to detect magnetic north, but can also be used for measuring magnetic fields. This sensor tends to be...

In Stock
[Buy Now](https://www.adafruit.com/product/6388)
[Related Guides to the Product](https://learn.adafruit.com/products/6388/guides)

## Related Guides

- [Adafruit I2C to 8 Channel Solenoid Driver](https://learn.adafruit.com/adafruit-i2c-to-8-channel-solenoid-driver.md)
- [Adafruit TMP117 High Accuracy I2C Temperature Monitor](https://learn.adafruit.com/adafruit-tmp117-high-accuracy-i2c-temperature-monitor.md)
- [AS5600 Super Smooth Rotary Encoder](https://learn.adafruit.com/as5600-smooth-rotary-encoder.md)
- [Tiny Autostereogram Construction Kit](https://learn.adafruit.com/tiny-autostereogram-construction-kit.md)
- [Adafruit TRRS Trinkey](https://learn.adafruit.com/adafruit-trrs-trinkey.md)
- [CircuitScheme - Lisp on CircuitPython](https://learn.adafruit.com/scheme-in-circuitpython.md)
- [Adafruit BMP580, BMP581, and BMP585 - Temperature and Pressure Sensor](https://learn.adafruit.com/adafruit-bmp580-bmp581-and-bmp585-temperature-and-pressure-sensor.md)
- [Adafruit 1.9" Color IPS TFT Display](https://learn.adafruit.com/adafruit-1-9-color-ips-tft-display.md)
- [Network Connected RGB Matrix Clock](https://learn.adafruit.com/network-connected-metro-rgb-matrix-clock.md)
- [Severence-Inspired Lumon Bluetooth Speaker](https://learn.adafruit.com/bluetooth-speaker.md)
- [IoT Bird Feeder with Camera](https://learn.adafruit.com/iot-window-bird-feeder-with-camera.md)
- [Adafruit MiCS5524 CO / Alcohol / VOC Gas Sensor Breakout](https://learn.adafruit.com/adafruit-mics5524-gas-sensor-breakout.md)
- [Adafruit MLX90632 FIR Remote Thermal Temperature Sensor](https://learn.adafruit.com/adafruit-mlx90632-fir-remote-thermal-temperature-sensor.md)
- [Adafruit HX711 24-bit ADC](https://learn.adafruit.com/adafruit-hx711-24-bit-adc.md)
- [AM2315 - Encased I2C Temperature/Humidity Sensor](https://learn.adafruit.com/am2315-encased-i2c-temperature-humidity-sensor.md)
