Skip to main content
Home / Computer Hardware, Monitors & Peripherals / HMC5883L/QMC5883P 3-Axis Magnetic Field Sensor Electronic Compass Module GY-271/273

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Sensor Type 3-Axis Magnetometer
Chip Model HMC5883L / QMC5883P
Communication Interface I2C (Inter-Integrated Circuit)
Operating Voltage 3.0V - 5.0V DC
Current Consumption 100uA (Typical)
Magnetic Measurement Range ±8 Gauss
Resolution 5 milli-Gauss
Operating Temperature -40°C to +85°C
PCB Dimensions 15mm x 12mm x 2mm
Microcontroller Compatibility Arduino, Raspberry Pi, STM32

5 reviews

A

Anonymous

Apr 11, 2026

Rating: 5/5

Fast shipping and quality

Module arrived well packaged. Using it for a drone compass project and readings are stable even during movement.

A

Anonymous

Apr 05, 2026

Rating: 5/5

Reliable component

Been using this for months in an outdoor weather station setup. No drift issues so far and it handles temperature changes well.

A

Anonymous

Mar 29, 2026

Rating: 3/5

Needs careful wiring

Works fine electrically but the pins are close together. Beginners might need a breakout board or careful soldering to avoid shorts.

A

Anonymous

Mar 23, 2026

Rating: 4/5

Good value sensor

Accuracy is decent for the price. Had to tweak the declination angle in code for my specific location, but otherwise functions well.

A

Anonymous

Feb 16, 2026

Rating: 5/5

Perfect for my rover project

Works straight out of the box with the standard Arduino library. Calibration was easy using the serial plotter. Very satisfied with the accuracy.

5 FAQ

Q: Is calibration necessary before use?

A: Yes, hard iron and soft iron calibration is recommended for accurate compass headings in your specific environment.

Q: What library should I use for Arduino?

A: The Adafruit HMC5883 Unified Library is widely supported and easy to implement for this module.

Q: Can I use this sensor indoors?

A: Yes, but keep it away from large metal objects or motors that may interfere with magnetic field readings.

Q: Does this work with 5V logic levels?

A: Yes, the module supports 3.0V to 5.0V input voltage and is compatible with 5V logic microcontrollers.

Q: What is the difference between GY-271 and GY-273?

A: GY-271 typically uses the HMC5883L chip, while GY-273 often uses the QMC5883P, but pinouts are generally similar.

Explore your interests

All Categories
Best Seller (30)
New List (30)
Blower Motor Compatible with Corolla, Crown, Camry, Highlander, Crown, Reiz, RAV4, Prado, Land Cruiser

Blower Motor Compatible with Corolla, Crown, Camry, Highlander, Crown, Reiz, RAV4, Prado, Land Cruiser

$234.32

Copic Airbrush - Marker Rendering Tool (Cannot Be Used Directly), Model ABS-3, Compatible with Copic Series 1 and 2

Copic Airbrush - Marker Rendering Tool (Cannot Be Used Directly), Model ABS-3, Compatible with Copic Series 1 and 2

$285.00

Beijing Hezhong Dental Implant Service - Includes Implant and Abutment at Central Procurement Prices; Korean Dentium and American Implant Options Available

Beijing Hezhong Dental Implant Service - Includes Implant and Abutment at Central Procurement Prices; Korean Dentium and American Implant Options Available

$1.00

Mini Watercolor Paint Set with Carry Case for Travel Sketching, Journaling, and Students

Mini Watercolor Paint Set with Carry Case for Travel Sketching, Journaling, and Students

$5.50

PGYTECH Dandelion SD Card Case for DSLR and Mirrorless Cameras - Portable TF Memory Card, SIM Card, and XD Card Holder

PGYTECH Dandelion SD Card Case for DSLR and Mirrorless Cameras - Portable TF Memory Card, SIM Card, and XD Card Holder

$84.10

UE4 Unreal Engine 5 Indie Friendly Sounds RPG Sounds Pack - Game-Ready Audio Effects

UE4 Unreal Engine 5 Indie Friendly Sounds RPG Sounds Pack - Game-Ready Audio Effects

$0.50

G80 Manganese Steel Lifting Chain Rigging with Double or Quadruple Hooks, Lifting Rings, and Crane Hooks

G80 Manganese Steel Lifting Chain Rigging with Double or Quadruple Hooks, Lifting Rings, and Crane Hooks

$63.00

Mont Marte Long-Handle Bristle Brush for Acrylic Paint, Art Flat Brush, Oil Painting Brush

Mont Marte Long-Handle Bristle Brush for Acrylic Paint, Art Flat Brush, Oil Painting Brush

$4.00

Stylish Portable Invisible Braces Case for Kids' Orthodontic Retainers and Cleaning

Stylish Portable Invisible Braces Case for Kids' Orthodontic Retainers and Cleaning

$12.40

Used Car Tires (80-90% New) in Sizes 165, 175, 185, 195, 205, 215, 225 - Code 551456

Used Car Tires (80-90% New) in Sizes 165, 175, 185, 195, 205, 215, 225 - Code 551456

$65.00

Commercial and Home Dual-Head Stainless Steel Vegetable Slicer for Cafeterias and Restaurants - Direct from Manufacturer (Slices, Dices, Julienne)

Commercial and Home Dual-Head Stainless Steel Vegetable Slicer for Cafeterias and Restaurants - Direct from Manufacturer (Slices, Dices, Julienne)

$2,142.00

Mountain Ghost Spending Money Cinnabar Coloring Tool Five Emperor Copper Coin Coloring Wood Carving Stone Tablet Taishan Stone Inscription Non-Fading Landscape Buddha Guan Calligraphy Fine Brush Traditional Seal Script Coloring Pen Tracing

Mountain Ghost Spending Money Cinnabar Coloring Tool Five Emperor Copper Coin Coloring Wood Carving Stone Tablet Taishan Stone Inscription Non-Fading Landscape Buddha Guan Calligraphy Fine Brush Traditional Seal Script Coloring Pen Tracing

$17.60

Wide-Opening Chain Sling Assembly with Hooks - Heavy-Duty Lifting Gear, Iron Chains, and Crane Hoist Hooks

Wide-Opening Chain Sling Assembly with Hooks - Heavy-Duty Lifting Gear, Iron Chains, and Crane Hoist Hooks

$145.00

Sketch Blending Stump Set for Artists, Detail Highlight and Shadow Smudging Tools, Cotton Swabs, Scraper, and Sponge Pen Refills

Sketch Blending Stump Set for Artists, Detail Highlight and Shadow Smudging Tools, Cotton Swabs, Scraper, and Sponge Pen Refills

$6.80

Mini Watercolor Paint Set with Walnut Wood Board, Portable Easel, and Travel Sketchbook

Mini Watercolor Paint Set with Walnut Wood Board, Portable Easel, and Travel Sketchbook

$4.68

Modern Housewife Kitchen Sink Organizer - Foldable Dish Drying Rack and Storage Shelf

Modern Housewife Kitchen Sink Organizer - Foldable Dish Drying Rack and Storage Shelf

$44.20

Skid-Mounted Integrated Screw Air Compressor for Laser Cutting - 15kW/22kW/37kW, 16kg, Permanent Magnet VFD

Skid-Mounted Integrated Screw Air Compressor for Laser Cutting - 15kW/22kW/37kW, 16kg, Permanent Magnet VFD

$23,500.00

Wooden Handle Leather Rattle Drum Baby Toy Glue-Free Paint-Free for Ages 1+ Boys and Girls Wooden Shaker

Wooden Handle Leather Rattle Drum Baby Toy Glue-Free Paint-Free for Ages 1+ Boys and Girls Wooden Shaker

$8.42

[Folded Booklet] Liu Chunlin: Palace Examination Essay Final Zhuangyuan Small Regular Script Calligraphy Copybook Original Size Long Scroll

[Folded Booklet] Liu Chunlin: Palace Examination Essay Final Zhuangyuan Small Regular Script Calligraphy Copybook Original Size Long Scroll

$14.20

Stainless Steel Sponge Drain Rack - No-Drill Wall-Mounted Kitchen Sink Organizer for Steel Wool and Scrub Pads

Stainless Steel Sponge Drain Rack - No-Drill Wall-Mounted Kitchen Sink Organizer for Steel Wool and Scrub Pads

$2.60

Analysis of Wang Duo's Classical Poetry Composition Techniques (50 Analyses + 50 Comparisons)

Analysis of Wang Duo's Classical Poetry Composition Techniques (50 Analyses + 50 Comparisons)

$89.00

Custom Sheet Music Transcription Service for 'Farewell Letter' for Saxophone, Clarinet, Flute, Trumpet, Violin, and Cello

Custom Sheet Music Transcription Service for 'Farewell Letter' for Saxophone, Clarinet, Flute, Trumpet, Violin, and Cello

$12.00

Japanese Surplus san-x Rilakkuma Bowl Set - Oven-Safe Bowl with Base and Two Forks for Ice Cream or Hot Pot

Japanese Surplus san-x Rilakkuma Bowl Set - Oven-Safe Bowl with Base and Two Forks for Ice Cream or Hot Pot

$69.90

Guangda Dental | Swiss Dental Implants Including Abutment, Implant Body, and Crown, Improves Chewing, Restores Missing Teeth

Guangda Dental | Swiss Dental Implants Including Abutment, Implant Body, and Crown, Improves Chewing, Restores Missing Teeth

$3,900.00

50pcs Merry Christmas Gift Tags Printed White Paper Labels X

50pcs Merry Christmas Gift Tags Printed White Paper Labels X

$26.44

Kabaxiong Color Gel Pens - Retractable Morandi Style, High-Aesthetic Japanese INS Set for Journaling and Marking

Kabaxiong Color Gel Pens - Retractable Morandi Style, High-Aesthetic Japanese INS Set for Journaling and Marking

$8.88

Continental Tires 225 235 245 255 275/35 40 45 50 55R17 18 19 20 21 22

Continental Tires 225 235 245 255 275/35 40 45 50 55R17 18 19 20 21 22

$350.00

Portable Invisible Aligner Case for Orthodontic Retainers - Compact, Breathable Storage Box for Teeth Correctors and Dentures

Portable Invisible Aligner Case for Orthodontic Retainers - Compact, Breathable Storage Box for Teeth Correctors and Dentures

$18.80

Chushinmi Home Kitchen Sink Foldable Dish Drying Rack Bowl Storage Organizer Drainage Shelf

Chushinmi Home Kitchen Sink Foldable Dish Drying Rack Bowl Storage Organizer Drainage Shelf

$59.40

Lanyard Invisible Aligner Case Retainer Storage Box Expander Corrector Holder Portable Breathable Storage Container

Lanyard Invisible Aligner Case Retainer Storage Box Expander Corrector Holder Portable Breathable Storage Container

$11.42