Skip to main content
Home / Sensors / Risym HMC5883 QMC5883P Electronic Compass Module Three-Axis Magnetic Field Sensor

Attributes

Brand -
Category Robotics / STEM Teaching Tools / Sensors
Origin -
Model Number HMC5883L / QMC5883P
Operating Voltage 3.0V - 5.0V DC
Communication Interface I2C (Inter-Integrated Circuit)
Measurement Axes Three-Axis (X, Y, Z)
Magnetic Range ±8 Gauss (Default)
Data Output Rate 0.75 Hz to 75 Hz
Operating Temperature -40°C to +85°C
PCB Dimensions 14mm x 18mm x 2mm
Weight 2.5 grams
Application Compatibility Arduino, Raspberry Pi, STM32

6 reviews

A

Anonymous

Mar 23, 2026

Rating: 5/5

Fast shipping and great performance

Arrived quickly and was well-packaged. The breakout board is compact and fits easily into tight enclosures. Reading consistency is impressive for the price point.

A

Anonymous

Mar 16, 2026

Rating: 5/5

Reliable compass module

I've tested both the HMC5883L and QMC5883P versions from this batch. Both respond well to the same code library. Great for robotics projects requiring orientation.

A

Anonymous

Mar 11, 2026

Rating: 4/5

Good value, needs careful wiring

The sensor itself is accurate, but make sure you use pull-up resistors on the I2C lines if your board doesn't have them built-in. Once wired correctly, it performed exactly as expected.

A

Anonymous

Mar 09, 2026

Rating: 4/5

Great for learning embedded systems

Used this for a university project on navigation systems. The documentation online is plentiful, making it easy to get started. Slightly sensitive to nearby metal, but that's physics, not a defect.

A

Anonymous

Mar 05, 2026

Rating: 5/5

Solid replacement part

Bought this to replace a faulty sensor in an old weather station project. It plugged right in and the data output format matched the original perfectly. Highly recommended.

A

Anonymous

Mar 05, 2026

Rating: 5/5

Perfect for DIY Drones

This module works flawlessly with my Arduino flight controller. The calibration was straightforward using standard libraries, and the heading data is stable even near small motors.

5 FAQ

Q: Is this module compatible with 5V Arduino boards without a logic level converter?

A: Yes, the module includes a voltage regulator and can operate directly with 5V logic levels, making it safe for use with standard Arduino Uno or Mega boards.

Q: What library do you recommend for reading data from this sensor?

A: For Arduino IDE, the 'HMC5883L' library by Electrónica Lab or the generic 'Adafruit HMC5883 Unified' library works perfectly for both HMC5883L and QMC5883P chips.

Q: Does this come with mounting holes?

A: Yes, the PCB features four 2.5mm mounting holes at the corners, allowing you to securely screw the module into your project enclosure or frame.

Q: How do I calibrate the sensor to avoid hard iron distortion?

A: Calibration typically involves rotating the sensor in all directions while running a calibration sketch that records min/max values for each axis. Many example sketches included in popular libraries handle this automatically.

Q: Can I use multiple of these sensors on the same I2C bus?

A: No, this specific breakout board has a fixed I2C address and does not feature an address selection pin. To use multiple units, you would need an I2C multiplexer.

Explore your interests

View More
All Categories
Best Seller (30)
New List (30)
Authentic Ou Style Tian Kaishu Thousand Character Classic Calligraphy Card for Adult Practice, High-Definition Coated Paper

Authentic Ou Style Tian Kaishu Thousand Character Classic Calligraphy Card for Adult Practice, High-Definition Coated Paper

$55.10

Zer0g Ultra-Light 14g Backpack Waterproof Liner - Polycro Odor-Barrier Pack Liner for Hiking and Trekking

Zer0g Ultra-Light 14g Backpack Waterproof Liner - Polycro Odor-Barrier Pack Liner for Hiking and Trekking

$21.20

Touchmark Liquid Acrylic Markers with Soft Tips, Specialized for Elementary School Art, Ideal Birthday Gift for Children

Touchmark Liquid Acrylic Markers with Soft Tips, Specialized for Elementary School Art, Ideal Birthday Gift for Children

$18.90

Paper Blending Stump for Sketching - Professional Art Tool with Blade for Highlights, Pastels, and Oil Pastels

Paper Blending Stump for Sketching - Professional Art Tool with Blade for Highlights, Pastels, and Oil Pastels

$3.74

Wen Zhengming Small Regular Script Love Lotus Essay Brush Tracing Practice Copybook Calligraphy Paper Copying Custom Wholesale for Beginners

Wen Zhengming Small Regular Script Love Lotus Essay Brush Tracing Practice Copybook Calligraphy Paper Copying Custom Wholesale for Beginners

$8.80

Heavy-duty Industrial Scouring Pad Roll with Aluminum Oxide for Stainless Steel Polishing and Rust Removal

Heavy-duty Industrial Scouring Pad Roll with Aluminum Oxide for Stainless Steel Polishing and Rust Removal

$57.52

1.06m Leather Slitting Machine – Wide-Range Strip Cutter for Leather, Luggage, and Rubber Materials

1.06m Leather Slitting Machine – Wide-Range Strip Cutter for Leather, Luggage, and Rubber Materials

$16,250.00

Ceramic Double-Boiler Steaming Bowl with Lid – Ideal for Eggs, Bird's Nest, Custard, and Soup for Home or Commercial Use

Ceramic Double-Boiler Steaming Bowl with Lid – Ideal for Eggs, Bird's Nest, Custard, and Soup for Home or Commercial Use

$21.11

[Ya Que You Sheng] DT900 PRO X Calibration File V2 Version EQ Equalization

[Ya Que You Sheng] DT900 PRO X Calibration File V2 Version EQ Equalization

$15.00

Ceramic Rabbit Egg Holder, Creative Irregular Egg Stand, Home Breakfast Small Dish, Craft Gift Ornament

Ceramic Rabbit Egg Holder, Creative Irregular Egg Stand, Home Breakfast Small Dish, Craft Gift Ornament

$44.78

Hot-Selling Wire Money Tree Bonsai Base – Ceramic Pot for Wealth Attraction Incense

Hot-Selling Wire Money Tree Bonsai Base – Ceramic Pot for Wealth Attraction Incense

$37.00

Maike Outdoor Sports Waterproof Backpack Wet-Dry Separation Ski Bag Fishing Creek Fins Multi-Function Gear Storage

Maike Outdoor Sports Waterproof Backpack Wet-Dry Separation Ski Bag Fishing Creek Fins Multi-Function Gear Storage

$152.00

Viral NFC Chip Stickers for Music Wall - Adhesive Read/Write Tags for Song Scanning, Cards, and Photo Frames

Viral NFC Chip Stickers for Music Wall - Adhesive Read/Write Tags for Song Scanning, Cards, and Photo Frames

$2.38

Rechargeable Generation 2 Personal Air Purifier - Safe Portable Electric Fan for Travel Commuting and Flights

Rechargeable Generation 2 Personal Air Purifier - Safe Portable Electric Fan for Travel Commuting and Flights

$181.00

Integrated Sink Splash Guard with Silicone Drain Mat - Auto-Draining Countertop Organizer

Integrated Sink Splash Guard with Silicone Drain Mat - Auto-Draining Countertop Organizer

$23.30

Ultra-Light Aluminum Camping Light Pole – Foldable Mini Lamp Stand for Outdoor Picnics and Tabletop Use

Ultra-Light Aluminum Camping Light Pole – Foldable Mini Lamp Stand for Outdoor Picnics and Tabletop Use

$8.33

bimoz Under-Desk Cable Organizer No-Drill Shelf for Home Office Socket Strip Router Wire Data Cable Fixer Minimalist Wire Winder Dual-Side Mount Ventilated Design

bimoz Under-Desk Cable Organizer No-Drill Shelf for Home Office Socket Strip Router Wire Data Cable Fixer Minimalist Wire Winder Dual-Side Mount Ventilated Design

$40.80

Extended Deep-Cut External Thread Tool Holder with Relief Groove for Swiss-Type Lathe HKFF42R6001

Extended Deep-Cut External Thread Tool Holder with Relief Groove for Swiss-Type Lathe HKFF42R6001

$15.50

Meiao Dental Imported Dental Implant Package, Swiss ITI Straumann Implant Abutment, False Teeth, Filling, and Planting

Meiao Dental Imported Dental Implant Package, Swiss ITI Straumann Implant Abutment, False Teeth, Filling, and Planting

$14,188.00

Assorted Colors Kids' Painting Crayons - Washable Oil Pastels in 12, 18, 24, or 36 Colors for Graffiti and Coloring

Assorted Colors Kids' Painting Crayons - Washable Oil Pastels in 12, 18, 24, or 36 Colors for Graffiti and Coloring

$2.47

Fruit and Vegetable Slicer - Stainless Steel Commercial Electric Multi-Function Shredder for Radish, Potato, Cucumber, Pepper, Automatic

Fruit and Vegetable Slicer - Stainless Steel Commercial Electric Multi-Function Shredder for Radish, Potato, Cucumber, Pepper, Automatic

$2,880.00

CAAS-Developed Granular Insecticide and Fungicide for Vegetable Gardens – Soil Pest Control and Fertilizer for Enhanced Vegetable Growth and Yield

CAAS-Developed Granular Insecticide and Fungicide for Vegetable Gardens – Soil Pest Control and Fertilizer for Enhanced Vegetable Growth and Yield

$13.50

Marie's C6823 Sketch Blending Stumps (3-Pack), Professional Charcoal and Pastel Smudging Tools for Art Students and Beginners, Hard/Small/Highlight Set on Newsprint

Marie's C6823 Sketch Blending Stumps (3-Pack), Professional Charcoal and Pastel Smudging Tools for Art Students and Beginners, Hard/Small/Highlight Set on Newsprint

$7.48

Inverted Water Dispenser Stand with Manual Pump for Large Mineral Water Bottles

Inverted Water Dispenser Stand with Manual Pump for Large Mineral Water Bottles

$67.00

Lanzhai Flagship Store Multifunctional Retro Brush Washer Set, Creative Ceramic Large National Painting Tea Rinse Bowl, Art Display Paperweight, Student Calligraphy Supplies

Lanzhai Flagship Store Multifunctional Retro Brush Washer Set, Creative Ceramic Large National Painting Tea Rinse Bowl, Art Display Paperweight, Student Calligraphy Supplies

$8.42

Multi-Function Vanity Shelf Over Toilet - Floor-Standing Thickened Plastic Storage Cabinet for Squat Toilet Gaps

Multi-Function Vanity Shelf Over Toilet - Floor-Standing Thickened Plastic Storage Cabinet for Squat Toilet Gaps

$52.49

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

$11.90

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

$20,000.00

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

$11,211.00

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

$5.00