HMC5883L / QMC5883L 3-Axis Magnetometer
Alias: :HMC5883L、QMC5883L、magnetometer、electronic compass、geomagnetic sensor、3-axis magnetometer、I2C sensor

Specifications
Type3-Axis Magnetometer (Geomagnetic Sensor)
Measurement Axes3 axes (X / Y / Z)
Range±8 Gauss (HMC5883L) / ±8 Gauss (QMC5883L)
Resolution2 mGauss
Noise Density~2 mGauss/√Hz
InterfaceI2C (up to 400 kHz fast mode)
I2C Address0x1E (HMC5883L) / 0x0D (QMC5883L)
Operating Voltage3.3V
Pin Count5Pin (VCC, GND, SDA, SCL, DRDY)
Data ReadyDRDY pin (optional, low = data ready)
Typical ApplicationsElectronic compass, magnetic field detection, orientation sensing
NotesMost commercial modules use the QMC5883L clone. I2C address and registers differ from original HMC5883L. Run an I2C scan first to identify the chip.