The GY-271 QMC5883P Triple-Axis Magnetometer Compass Board is a compact, high-precision magnetic field sensor designed for compass heading, orientation detection, and magnetic field measurement. Built around the QMC5883P chip, this module is the direct successor to the popular QMC5883L, offering wider measurement ranges (up to ±30 Gauss) and improved performance for demanding applications . It is ideal for Arduino projects, robotics navigation, drone stabilization, and IoT devices.
At the heart of the module is the QMC5883P, a 3-axis magnetoresistive sensor with 16-bit ADC resolution that measures magnetic fields across the X, Y, and Z axes . Unlike the older QMC5883L which maxed out at ±8 Gauss, the QMC5883P supports four user-selectable ranges: ±2, ±8, ±12, and ±30 Gauss . This wider range makes it more resilient in environments with stronger magnetic interference, such as near motors, transformers, or industrial equipment .
The module features built-in self-test capability and temperature compensation, ensuring reliable and stable readings across varying conditions . It includes onboard voltage regulation and level shifting, allowing operation from 3V to 5V supplies — making it directly compatible with both 3.3V and 5V microcontrollers like Arduino Uno, ESP32, and STM32 .
The I2C interface uses the fixed address 0x2C (7-bit), simplifying integration with existing libraries . The module measures approximately 14 × 13 mm with a standard 2.54mm pin header for breadboard and jumper wire connections .
Important Note: The QMC5883P uses a different register map and I2C address than the QMC5883L. It is not directly software-compatible with QMC5883L libraries. Use the Adafruit_QMC5883P library or dedicated QMC5883P drivers for proper operation .
Whether you are building a tilt-compensated compass, a robot with navigation capabilities, or a magnetic field detection system, the GY-271 QMC5883P provides a reliable, cost-effective foundation for magnetic sensing. It is suitable for individual makers, students, and businesses purchasing in bulk for product development or educational programs.
Features
-
QMC5883P 3-axis magnetometer — Measures magnetic fields in X, Y, and Z axes with 16-bit resolution
-
Wide measurement ranges — ±2, ±8, ±12, and ±30 Gauss user-selectable
-
High sensitivity — Up to 15,000 LSB/Gauss in the ±2 Gauss range
-
I2C interface — Fixed address 0x2C, up to 400 kHz bus speed
-
Wide supply voltage — 3V to 5V operation with onboard regulation and level shifting
-
Built-in self-test — Verifies sensor functionality on startup
-
Temperature compensation — Stable readings across temperature variations
-
Programmable data rate — 10/50/100/200 Hz in normal mode, up to 1500 Hz in continuous mode
-
Compact form factor — Approx. 14 × 13 mm with 2.54mm pin header
-
Direct successor to QMC5883L — Wider range, improved availability
Technical Specifications
| # | Parameter | Specification |
|---|---|---|
| 1 | Sensor Chip | QMC5883P |
| 2 | Axes | 3-axis (X, Y, Z) |
| 3 | ADC Resolution | 16-bit |
| 4 | Measurement Range | ±2 / ±8 / ±12 / ±30 Gauss (user selectable) |
| 5 | Interface | I2C (address 0x2C, up to 400 kHz) |
| 6 | Supply Voltage | 3V – 5V DC (onboard regulator) |
| 7 | Data Rate | 10/50/100/200 Hz (normal); up to 1500 Hz (continuous) |
| 8 | Module Dimensions | Approx. 14 × 13 mm |
















