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)
CANDLE.LAB | Silicone Border Mat for DIY Scented Candles and Soap Making Tray Mold

CANDLE.LAB | Silicone Border Mat for DIY Scented Candles and Soap Making Tray Mold

$32.00

Shiji Runde Coal Shed Mine Dust Removal Explosion-Proof Anti-Freezing Fog Cannon Port Dust Suppression 80m Ultra-Fine Industrial Fog Machine

Shiji Runde Coal Shed Mine Dust Removal Explosion-Proof Anti-Freezing Fog Cannon Port Dust Suppression 80m Ultra-Fine Industrial Fog Machine

$4,180.00

Mobile Retractable Spray Booth for Furniture - Foldable Track-Mounted Painting Room

Mobile Retractable Spray Booth for Furniture - Foldable Track-Mounted Painting Room

$6,240.00

Long Handle Bristle Paint Brush - Hog Hair Brush for Oil Painting, Acrylic Wall Art, and Children's Drawing

Long Handle Bristle Paint Brush - Hog Hair Brush for Oil Painting, Acrylic Wall Art, and Children's Drawing

$1.80

Electrostatic Powder Coating Equipment and Electronic Powder Dispenser Supply

Electrostatic Powder Coating Equipment and Electronic Powder Dispenser Supply

$17,250.00

DIY Toast-Shaped Silicone Mold for Handmade Soap - Square Soap Making Mold

DIY Toast-Shaped Silicone Mold for Handmade Soap - Square Soap Making Mold

$105.00

Kindergarten Sponge Stamp Set – Mushroom-Head Circular Printing Tools for Kids' DIY Art and Painting Kits

Kindergarten Sponge Stamp Set – Mushroom-Head Circular Printing Tools for Kids' DIY Art and Painting Kits

$3.50

Heavy-Duty Lifting Chain Set – Manganese Steel Chains with Hooks, Rings, and Hoist Accessories

Heavy-Duty Lifting Chain Set – Manganese Steel Chains with Hooks, Rings, and Hoist Accessories

$198.00

Car Tire Stone Removal Tool, Multi-Function Groove Hook for Portable Tire Picking and Cleaning

Car Tire Stone Removal Tool, Multi-Function Groove Hook for Portable Tire Picking and Cleaning

$11.50

m Dogs Strap Auto Retractable Dual Dog Leash With

m Dogs Strap Auto Retractable Dual Dog Leash With

$199.92

Traditional Wooden Sheepskin Rattle Toy – Safe for Teething Newborns, Handcrafted Baby Bell Shaker

Traditional Wooden Sheepskin Rattle Toy – Safe for Teething Newborns, Handcrafted Baby Bell Shaker

$17.80

Soilless Cultivation Equipment Plant Factory Display Rooftop Hydroponic Pipe System for Leafy Vegetables and Fruits, Type A Planting Rack

Soilless Cultivation Equipment Plant Factory Display Rooftop Hydroponic Pipe System for Leafy Vegetables and Fruits, Type A Planting Rack

$2,620.16

Premium Ceramic Tea Canister and Gift Box Set - Empty Packaging for Black Tea, Pu'er, White Tea, and Biluochun

Premium Ceramic Tea Canister and Gift Box Set - Empty Packaging for Black Tea, Pu'er, White Tea, and Biluochun

$121.00

Posture-Correcting Hole-Grip Pencils for Grade 1 - Triangular Barrel, Break-Resistant, Non-Toxic HB for Daily Writing and 2B for Exams

Posture-Correcting Hole-Grip Pencils for Grade 1 - Triangular Barrel, Break-Resistant, Non-Toxic HB for Daily Writing and 2B for Exams

$3.02

Genuine OEM AC Blower Motor Heater Fan for Buick Excelle GT, Cavalier, and Monza

Genuine OEM AC Blower Motor Heater Fan for Buick Excelle GT, Cavalier, and Monza

$255.00

TA1 TA2 Titanium Capillary Tubes - Small Diameter Titanium Pipes - GR5 Titanium Alloy Tubes

TA1 TA2 Titanium Capillary Tubes - Small Diameter Titanium Pipes - GR5 Titanium Alloy Tubes

$240.00

Industrial Spray Painting Wipe Cloth Auto Bake Finish Film Application Degreasing Cloth Non-Woven Absorbent Paper Lint-Free Paper Electrostatic Dust Removal Paper

Industrial Spray Painting Wipe Cloth Auto Bake Finish Film Application Degreasing Cloth Non-Woven Absorbent Paper Lint-Free Paper Electrostatic Dust Removal Paper

$75.66

US Standard Buttress Thread Inserts 22ER 16ER 11NR 16 10 12 8ABUT Internal 7 External 45 Degree

US Standard Buttress Thread Inserts 22ER 16ER 11NR 16 10 12 8ABUT Internal 7 External 45 Degree

$43.20

Coating Workshop Cleaning Rags GAE Industry White Scrap Cloth Nylon Machine Cloth Blocks Industrial Glue Removal Furniture Cleaning

Coating Workshop Cleaning Rags GAE Industry White Scrap Cloth Nylon Machine Cloth Blocks Industrial Glue Removal Furniture Cleaning

$96.31

Natural 8A Yellow Tiger Eye Loose Beads - Round Cat's Eye Bracelet for DIY Jewelry Making

Natural 8A Yellow Tiger Eye Loose Beads - Round Cat's Eye Bracelet for DIY Jewelry Making

$17.28

Paper Blending Stumps Art Set for Highlighting, Sketching, and Smudging - Professional Drawing Tools for Artists and Beginners with Rice Paper Details and Oil Pastels

Paper Blending Stumps Art Set for Highlighting, Sketching, and Smudging - Professional Drawing Tools for Artists and Beginners with Rice Paper Details and Oil Pastels

$6.80

Rubber Speed Bump 1000x350x40mm Herringbone Pattern

Rubber Speed Bump 1000x350x40mm Herringbone Pattern

$96.89

Xian Kan Yun Shu [Cloud Lark] Elegant Brush Washer, Hand-Painted Orchid and Sparrow Design under Glaze, Ceramic Water Pot

Xian Kan Yun Shu [Cloud Lark] Elegant Brush Washer, Hand-Painted Orchid and Sparrow Design under Glaze, Ceramic Water Pot

$21.20

Cable Organizer Hook-and-Loop Straps for Data/Charging Cables, Laptop Power, Mouse, Headphones, and Under-Desk Network Wiring

Cable Organizer Hook-and-Loop Straps for Data/Charging Cables, Laptop Power, Mouse, Headphones, and Under-Desk Network Wiring

$7.48

Power Strip Organizer Box, Desktop Socket Concealment Case for Charging Cables and Power Cords, Hidden Storage Shelf

Power Strip Organizer Box, Desktop Socket Concealment Case for Charging Cables and Power Cords, Hidden Storage Shelf

$21.93

Automatic Dairy Beverage Filling Machine - Fully Automatic Equipment for Milk, Soy Milk, and Drink Bottling

Automatic Dairy Beverage Filling Machine - Fully Automatic Equipment for Milk, Soy Milk, and Drink Bottling

$1,316.00

Compact Invisible Retainer Case - Leak-Proof Sealed Storage Box for Children's Orthodontic Aligners

Compact Invisible Retainer Case - Leak-Proof Sealed Storage Box for Children's Orthodontic Aligners

$12.50

07521 Scouring Pad Roll for Woodworking, Furniture, Paint Sanding, Metal Deburring, and Brushed Finish - Purple 600 Grit

07521 Scouring Pad Roll for Woodworking, Furniture, Paint Sanding, Metal Deburring, and Brushed Finish - Purple 600 Grit

$81.00

Shiya Insulated Display Cabinet, Constant Temperature Warmer for Commercial Use, Crispy Pork Belly, Roast Duck, Roast Chicken, and Cooked Food

Shiya Insulated Display Cabinet, Constant Temperature Warmer for Commercial Use, Crispy Pork Belly, Roast Duck, Roast Chicken, and Cooked Food

$388.00

Wooden Soap Trimmer with Drawer, Soap Planer and Edge Shaper, Free Shipping

Wooden Soap Trimmer with Drawer, Soap Planer and Edge Shaper, Free Shipping

$32.00