





The GY-271 QMC5883L is a 3-axis electronic compass module designed for precise magnetic field sensing and heading detection. It converts magnetic fields into differential voltage output across three axes, enabling accurate directional data for navigation applications. Communicating via I2C protocol, it easily integrates with microcontrollers and flight controllers. Note that while originally designed around the HMC5883L chip, many boards now use the QMC5883L, a compatible Chinese-made alternative with a different register set requiring adjusted software. This compact sensor is ideal for UAVs, drones, and robot navigation systems, offering reliable heading information in a small footprint.
GY-271 QMC5883L هو وحدة بوصلة إلكترونية ثلاثية المحاور مصممة لاستشعار المجال المغناطيسي بدقة وتحديد الاتجاه. يقوم بتحويل المجالات المغناطيسية إلى جهد تفاضلي عبر ثلاثة محاور، مما يوفر بيانات اتجاهية دقيقة لتطبيقات الملاحة. يتواصل عبر بروتوكول I2C، ويتكامل بسهولة مع المتحكمات الدقيقة ووحدات التحكم بالطيران. تجدر الإشارة إلى أنه بينما تم تصميمه أصلاً حول شريحة HMC5883L، فإن العديد من اللوحات تستخدم الآن QMC5883L، وهو بديل صيني متوافق بمجموعة سجلات مختلفة تتطلب تعديل البرمجيات. هذا المستشعر المدمج مثالي للطائرات بدون طيار وأنظمة ملاحة الروبوتات، ويوفر معلومات اتجاه موثوقة في حجم صغير.
The GY-271 module was originally designed around the HMC5883L chip, manufactured by Honeywell. However, since production of the HMC5883L has been discontinued, many current GY-271 boards now ship with the QMC5883L instead—a Chinese-manufactured alternative produced under authorization from Honeywell. While the two chips share the same basic hardware design and capability, they are not directly register-compatible, meaning slightly different software/drivers are required depending on which chip is present on your board.
Identifying your chip: If your board has an I2C address of 0x0C and returns only zeros when read, it is likely equipped with the QMC5883L. Visually, the HMC5883L is marked with the label "L883", while the QMC5883L is marked "5883".
This sensor works by converting ambient magnetic fields into a differential voltage output across three axes (X, Y, Z). This raw voltage data can then be processed to calculate precise heading information or detect magnetic fields from various directions, making it a core component for compass and orientation systems.
The module communicates using the I2C protocol, allowing for straightforward integration with Arduino, flight controllers, and other microcontroller platforms. Its compact size (14.8mm x 13.5mm) and lightweight design (2g) make it especially well-suited for UAVs, drones, multirotors, and robotic navigation systems where space and weight are limited.
For Arduino users working with the QMC5883L variant, a compatible library can be downloaded from the GitHub releases page. Additional technical details comparing the HMC5883L and QMC5883L chips can be found on the reference wiki.
Important Note: Always check which chip your specific board contains upon receipt, as the software configuration will differ between the HMC5883L and QMC5883L versions.
| Specification | Value |
|---|---|
| Item Type | Magnetometer |
| Model | Magnetic Field Sensor |
| Driver IC | HMC5883L / QMC5883L (China) |
| Operating Voltage | 3 - 5 VDC |
| Communication Mode | I²C Protocol |
| Measuring Range | ± 1.3 - 8 Gauss |
| Length | 14.8 mm |
| Width | 13.5 mm |
| Weight | 2 g |
| I2C Address (QMC5883L) | 0x0C |
| Chip Label Identifier | "L883" = HMC5883L, "5883" = QMC5883L |