What Is the QMC5883L? 3-Axis Magnetometer (GY-271) and Uses
The QMC5883L is a 3-axis magnetometer (digital compass) sensor over I²C. It is the chip most often on GY-271 modules, replacing the discontinued HMC5883L. It is functionally similar to the HMC5883L but has a different I²C address and register map (NOT software-compatible). Calibration and magnetic-declination correction are a must for the compass.
The QMC5883L is a 3-axis magnetometer (digital compass) sensor communicating over I²C. It is the chip most often found on GY-271 modules, replacing the discontinued HMC5883L. For the concept, see what is a sensor.
What is the QMC5883L used for?
A digital compass, heading finding, robot/drone navigation. It measures the magnetic field and gives X/Y/Z components; combined with an accelerometer/gyroscope it yields a tilt-compensated compass. It is functionally very similar to the HMC5883L but has a different I²C address and register map.
Specifications
| Parameter | Value |
|---|---|
| Type | 3-axis magnetometer (I²C) |
| Measurement | Magnetic field (X/Y/Z) |
| Maker | QST |
| Module | GY-271 (often sold as HMC5883L) |
Watch out
The QMC5883L is not software-compatible with the HMC5883L (different address/register); if you don't pick the right library you get no readings. The magnetometer is sensitive to iron/magnets/motors; for the compass, calibration (hard/soft iron) is a must. For a correct heading, magnetic declination correction is needed.
Equivalents
- HMC5883L: the older (discontinued) similar part.
- LIS3MDL: a modern 3-axis magnetometer.
- MMC5603: a high-accuracy magnetometer.
Find it in our catalog
Use the QMC5883L search.