Sensors

QMC5883L

China-made magnetometer often sold as a replacement on HMC5883L-labelled compass boards.

China-madeQSTActiveModerate

Best For

Projects needing China-made and Compass with a commonly available sensors part.

Avoid If

You need production-grade certainty without checking the exact module vendor, pinout, and library maintenance status.

Quick Decision Notes

QMC5883L is indexed as a sensors part from QST. ChipScout tracks it by practical maker-facing dimensions: interfaces, library readiness, estimated price, field-level sources, and whether the page is strong enough for selection rather than only lookup.

Technical Specifications

Measurement3-axis magnetometerSource: QST
InterfaceI2CSource: QST
UseCompassSource: QST
Working Voltage2.16V - 3.6VSource: QST

Common Use Cases

  • Maker prototypes
  • Low-cost modules
  • Educational hardware

Known Issues

  • Breakout boards may use different pin labels or regulator choices
  • Clone modules can differ from the original datasheet part

Interfaces and Library Support

Interfaces
I2C
Wireless
None
Voltage
3.3V
Libraries
Arduino verifiedMicroPython pending
Data Integrity72% confidence
Sourcehttps://www.qstcorp.com/
Last verified2026-05-20
Core specsVerified
PinoutAvailable
Library supportChecked
Price rangePresent
Found a wrong spec?

Every field is meant to be source-backed. Corrections should include a datasheet URL, vendor page, module photo, or reproducible library test.

Submit correction

Source Resources

Pinout Table

VCC3.3VPower the module from a rail that matches the breakout board, not just the bare IC.
GNDCommon groundConnect ground between the controller, sensor/module, and external power supply.
SDAMCU I2C dataUse pull-ups appropriate for the board voltage; many modules already include them.
SCLMCU I2C clockKeep wiring short for breadboard prototypes and lower bus speed if unstable.

Pinout is not yet source-verified. Use the table as an integration checklist, then confirm exact pins against the module vendor page before wiring hardware.

Common Wiring

VCC

Power the module from a rail that matches the breakout board, not just the bare IC.

GND

Connect ground between the controller, sensor/module, and external power supply.

SDA

Use pull-ups appropriate for the board voltage; many modules already include them.

SCL

Keep wiring short for breadboard prototypes and lower bus speed if unstable.

Arduino Example

#include <Wire.h>

void setup() {
  Serial.begin(115200);
  Wire.begin();
  Serial.println("QMC5883L I2C wiring smoke test");
}

void loop() {
  // Replace this with the maintained QMC5883L library call.
  Serial.println("Check QMC5883L on the I2C bus, then read a sample.");
  delay(1000);
}

MicroPython Example

MicroPython support is pending. Treat community scripts as prototypes until a maintained driver is linked and tested on a known development board.

Recommended Development Boards

ESP32-C3 development board

Low-cost Wi-Fi/BLE board with enough interfaces for most sensors and modules.

Arduino Uno R4 / compatible

Good baseline for beginner wiring and library validation.

Raspberry Pi Pico W

Practical MicroPython target for I2C, SPI, UART, PWM, and ADC experiments.

Alternative Model Reasons

ACS712SensorsThis alternative currently has stronger source coverage and confidence in ChipScout.
ADXL345SensorsChoose this when MicroPython support is required for fast prototyping.
AHT10SensorsChoose this when MicroPython support is required for fast prototyping.
AHT20SensorsChoose this when MicroPython support is required for fast prototyping.

Common Questions

What is QMC5883L best used for?

Projects needing China-made and Compass with a commonly available sensors part.

Does QMC5883L support Arduino or MicroPython?

QMC5883L has verified Arduino support and MicroPython support pending verification.

What interfaces does QMC5883L use?

QMC5883L lists I2C; wireless support is no wireless protocol.

Compare QMC5883L vs ACS712

Alternatives and Related Parts