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)
Food Warmer Cabinet, Room Temperature Commercial Constant-Temperature Display Case, Egg Tart Heating Cabinet, Small Countertop Sample Retention Cabinet, Chestnut, White

Food Warmer Cabinet, Room Temperature Commercial Constant-Temperature Display Case, Egg Tart Heating Cabinet, Small Countertop Sample Retention Cabinet, Chestnut, White

$239.00

Ultra-Narrow 8/9/10cm Bathroom and Kitchen Gap Storage Rack with Wheels

Ultra-Narrow 8/9/10cm Bathroom and Kitchen Gap Storage Rack with Wheels

$15.90

Glow-in-the-Dark 3D Printing Pen for Kids, Low-Temperature Stereoscopic Graffiti Magic Pen, Drawing Toy, Birthday Gift for Girls

Glow-in-the-Dark 3D Printing Pen for Kids, Low-Temperature Stereoscopic Graffiti Magic Pen, Drawing Toy, Birthday Gift for Girls

$21.80

Custom Insulated Steel Pipes from Factory - Heating Pipes for Residential Complexes, Spiral Insulated Pipes, Polyurethane Insulated Pipes

Custom Insulated Steel Pipes from Factory - Heating Pipes for Residential Complexes, Spiral Insulated Pipes, Polyurethane Insulated Pipes

$45.40

New Pirelli Tires 305/40R20 112V & 275/45R20 110V XL N1 for Porsche Cayenne

New Pirelli Tires 305/40R20 112V & 275/45R20 110V XL N1 for Porsche Cayenne

$1,409.00

Over-Toilet Storage Rack Wall-Mounted No-Drill Bathroom Multi-Function Organizer for Toilet Essentials

Over-Toilet Storage Rack Wall-Mounted No-Drill Bathroom Multi-Function Organizer for Toilet Essentials

$20.50

Kang Kati Gardenia Tea Scented Candle Gift Set – Long-Lasting Fragrance, Elegant Birthday Gift for Her

Kang Kati Gardenia Tea Scented Candle Gift Set – Long-Lasting Fragrance, Elegant Birthday Gift for Her

$35.10

Safety Self-Locking Lifting Hook with Adjustable Chain for Hoisting and Rigging

Safety Self-Locking Lifting Hook with Adjustable Chain for Hoisting and Rigging

$140.00

Thickened Mobile Phone Waterproof Case, Waterproof Box, Sealed Container, Pressure-Resistant Box, EDC Drop-Proof Storage Box for Outdoor Travel

Thickened Mobile Phone Waterproof Case, Waterproof Box, Sealed Container, Pressure-Resistant Box, EDC Drop-Proof Storage Box for Outdoor Travel

$12.00

Commercial Heated Display Cabinet for Crispy Pork Belly, Roast Chicken, and Cantonese BBQ - Constant Temperature Warmer for Peking Duck

Commercial Heated Display Cabinet for Crispy Pork Belly, Roast Chicken, and Cantonese BBQ - Constant Temperature Warmer for Peking Duck

$1,394.00

Mejiang Baohong Watercolor Line Art for Beginners, Coloring Book with Colored Pencils and Markers, Cat Letter Theme

Mejiang Baohong Watercolor Line Art for Beginners, Coloring Book with Colored Pencils and Markers, Cat Letter Theme

$29.70

Shanghai Huamei Hair Transplant, Solution for Hair Loss, Thinning, and Density Enhancement

Shanghai Huamei Hair Transplant, Solution for Hair Loss, Thinning, and Density Enhancement

$6,750.00

New Direct Sale Nanda Silicone Rubber 704 Battery Fixative Adhesive Panel Light Special Glue Photovoltaic Solar Sealant

New Direct Sale Nanda Silicone Rubber 704 Battery Fixative Adhesive Panel Light Special Glue Photovoltaic Solar Sealant

$25.85

Yonghe Hair Transplant: Top Scalp Density Enhancement (2000+ Units Fixed Price)

Yonghe Hair Transplant: Top Scalp Density Enhancement (2000+ Units Fixed Price)

$33,800.00

No-Drill Bathroom Storage Rack – Toilet Paper Organizer for Dorms and Restrooms

No-Drill Bathroom Storage Rack – Toilet Paper Organizer for Dorms and Restrooms

$22.16

Premium Metallographic Polishing Cloth – White Short-Pile Velvet for Mirror Finish Grinding by Goral

Premium Metallographic Polishing Cloth – White Short-Pile Velvet for Mirror Finish Grinding by Goral

$35.00

Rock Guitar Hell Training: Electric Guitar Textbook and Tutorial by Shinichi Kobayashi, Beginner to Intermediate Chinese Guitar Book and Sheet Music

Rock Guitar Hell Training: Electric Guitar Textbook and Tutorial by Shinichi Kobayashi, Beginner to Intermediate Chinese Guitar Book and Sheet Music

$58.69

Aromatherapy Candle Resin Jelly Wax Strawberry Silicone Mold, Large Squishy Handmade Soap DIY Material

Aromatherapy Candle Resin Jelly Wax Strawberry Silicone Mold, Large Squishy Handmade Soap DIY Material

$1.90

Liboer Drill-Free Security Camera Mount & Router Shelf – Adhesive-Free Wall Bracket for 360 PTZ Cameras and Sockets

Liboer Drill-Free Security Camera Mount & Router Shelf – Adhesive-Free Wall Bracket for 360 PTZ Cameras and Sockets

$21.90

City Hunter Theme Song Mr. Chui Saxophone Three-Piece Precise Transcription Service

City Hunter Theme Song Mr. Chui Saxophone Three-Piece Precise Transcription Service

$16.00

[Deposit Group 12] New Colors: Hugging Bear Matte Low-Mid Heel Lolita Shoes - Sheep Puff with Bear Buckle

[Deposit Group 12] New Colors: Hugging Bear Matte Low-Mid Heel Lolita Shoes - Sheep Puff with Bear Buckle

$38.00

Handcrafted Peach Wood and Brass Baby Rattle - Non-Toxic Paint-Free Teething Toy for Infants

Handcrafted Peach Wood and Brass Baby Rattle - Non-Toxic Paint-Free Teething Toy for Infants

$32.00

Car Tire Stone Removal Hook - Debris Cleaning Tool for Wheels

Car Tire Stone Removal Hook - Debris Cleaning Tool for Wheels

$6.19

Ceramic Rabbit Egg Holder – Creative Irregular Egg Stand for Breakfast or as a Decorative Gift

Ceramic Rabbit Egg Holder – Creative Irregular Egg Stand for Breakfast or as a Decorative Gift

$33.82

Toilet Tank Side Shelf Bathroom Storage Rack No-Drill Organizer for Bathroom Essentials

Toilet Tank Side Shelf Bathroom Storage Rack No-Drill Organizer for Bathroom Essentials

$10.40

No-Drill Over-Toilet Storage Rack for Bathroom Restroom Organizer

No-Drill Over-Toilet Storage Rack for Bathroom Restroom Organizer

$8.90

Artsneak Blending Stump for Oil Pastels, Dual-Tip Sponge Brush Art Student Painting Tool Set, Washable and Crumb-Free

Artsneak Blending Stump for Oil Pastels, Dual-Tip Sponge Brush Art Student Painting Tool Set, Washable and Crumb-Free

$14.20

75X100 Imitation Inkjet Transfer Steel Plate for Date Coding - Custom Logo and Trademark Available

75X100 Imitation Inkjet Transfer Steel Plate for Date Coding - Custom Logo and Trademark Available

$38.00

Lint-Free Cloth 1009DLE/SLE - Straight/Net Weave for UV Printhead, Screen, Lens Cleaning, Industrial Wiping Cloth

Lint-Free Cloth 1009DLE/SLE - Straight/Net Weave for UV Printhead, Screen, Lens Cleaning, Industrial Wiping Cloth

$10.80

Pirelli PZ4 Tires, Sizes 235/245/255/265/285/40/45/50/55 R19/R20/R21/R22

Pirelli PZ4 Tires, Sizes 235/245/255/265/285/40/45/50/55 R19/R20/R21/R22

$350.00