GY-271 HMC5883L 3-Axis Electronic Compass Magnetometer Sensor Module is a high-precision three-axis digital magnetometer breakout board engineered for low-field magnetic sensing, navigational compass heading, and magnetic anomaly detection. Based on the Honeywell HMC5883L / QMC5883L anisotropic magnetoresistive (AMR) sensor IC, it utilizes precision 12-bit analog-to-digital converters to deliver 1° to 2° heading accuracy across a full-scale magnetic dynamic range up to ±8 Gauss. The board incorporates an onboard 3.3V low-dropout voltage regulator and I2C pull-up resistors, allowing seamless plug-and-play operation with 3.3V and 5.0V microcontrollers such as Arduino Uno, Mega, ESP32, STM32, and Raspberry Pi.
Key Features:
- High-Accuracy Heading Determination: Provides 1° to 2° compass heading accuracy when combined with tilt-compensating accelerometers.
- Wide Full-Scale Magnetic Range: Configurable magnetic dynamic range up to ±8 Gauss to measure earth’s weak magnetic field in diverse environments.
- Integrated 12-Bit ADC Conversion: Delivers 5 milli-Gauss magnetic resolution across three orthogonal axes (X, Y, Z).
- Standard Fast-Mode I2C Interface: Connects easily over standard two-wire I2C bus (up to 400 kHz) with dedicated data-ready interrupt pin.
- 5V Compatible Power Input: Onboard low-noise 3.3V voltage regulator enables direct operation from 3.3V to 5.0V DC system rails.
Technical Specifications:
- Sensor IC: Honeywell HMC5883L / QMC5883L Magnetoresistive Core
- Operating Supply Voltage: 3.0V to 5.0V DC (via onboard LDO)
- Communication Bus: Fast-Mode I2C (Default address 0x1E for HMC / 0x0D for QMC)
- Full-Scale Range: ±1.3, ±1.9, ±2.5, ±4.0, ±4.7, ±5.6, ±8.1 Gauss
- Resolution: 12-bit ADC conversion (5 milli-Gauss per LSB)
- Output Data Rate: Up to 160 Hz (continuous measurement mode)
- Current Consumption: 100 μA (measurement mode), 2 μA (sleep mode)
- Operating Temperature Range: -30°C to +85°C
Mechanical Specifications:
- PCB Material: FR-4 double-sided glass epoxy PCB with blue soldermask
- Header Pitch: Standard 2.54mm (0.1 inch) pin spacing
- Mounting: Dual 2.0mm mechanical screw mounting holes
- Plating: Immersion tin/gold solder pads for oxidation resistance
Dimensions:
- Length: 15.0 mm
- Width: 14.0 mm
- Height: 3.0 mm
- Weight: Approximately 1.6 g
Pinout and Wiring:
- VCC: Main power supply input (3.0V to 5.0V DC).
- GND: Ground reference connection (0V).
- SCL: I2C serial clock input line with onboard pull-up resistor.
- SDA: I2C bidirectional serial data line with onboard pull-up resistor.
- DRDY: Data-ready interrupt output pin (signals completed conversion).
Datasheet Reference:
- Refer to the Honeywell HMC5883L 3-Axis Digital Compass IC Datasheet for register definitions, measurement mode registers, and soft/hard iron compensation algorithms.
Commonly Used in:
- Autonomous unmanned aerial vehicles (UAVs) and drone GPS compass pucks.
- Mobile robotics indoor position triangulation and compass heading loops.
- Handheld outdoor hiking compasses and marine navigation indicators.
- Automotive antenna heading augmentation and dead-reckoning modules.
Applications:
- Geographic Heading Determination: Calculating compass bearing relative to magnetic north in outdoor robotics.
- Gyroscopic Drift Compensation: Providing continuous non-drifting absolute heading reference to correct integrated gyro yaw.
- Magnetic Metal Detection: Detecting localized magnetic distortions caused by nearby ferromagnetic structural metals.
Equivalent Models:
- GY-273 HMC5883L Module: Alternative compact breakout layout housing the same HMC5883L / QMC5883L sensor IC core.
- GY-511 LSM303DLHC Module: Integrated 6-DOF electronic compass combining 3-axis accelerometer and 3-axis magnetometer for onboard tilt compensation.
- MCU-9911 AK09911C Module: High-sensitivity Asahi Kasei 3-axis Hall-effect magnetometer module with 14-bit ADC resolution and wide dynamic range.
- MPU-9250 9-Axis IMU Module: Comprehensive 9-DOF motion tracking sensor embedding a 3-axis compass alongside 3-axis gyro and accelerometer.
Package Includes:
- 1 × GY-271 HMC5883L 3-Axis Electronic Compass Magnetometer Sensor Module
- 1 × 5-Pin Straight 2.54mm Pitch Male Header Strip

Reviews
No reviews yet. Be the first to share your experience!