
You are not HMC5883L! So if you use the libraries for the HMC you will get a random (noise) direction. Once you use the QMC libraries the result looks ok. But they are not HMC5883. Look at the markings on the chip.

🌐 MCIGICM 2 Channel DC 5V Relay Module: Optocoupler Low Level Trigger Expansion Board for Arduino UNO R3, DSP, ARM, PIC, AVR, STM32, Raspberry Pi
11 Review

55" TV LG OLED55C2RLA 2022 HDR, OLED, dark titanium
38 Review

Vilros Raspberry Pi 4 4GB Complete Starter Kit - Black Fan-Cooled Aluminum Case for Heavy-Duty Performance
12 Review

Gikfun Screw Shield Expansion Board: Enhance Arduino UNO R3 with the EK7007 Add-On
11 Review

💻 PerryLee 300pcs Computer Screw Kit Set with Screwdriver, 15 Sizes M2/M2.5 Notebook Laptop Screw Kit for IBM, HP, Dell, Lenovo, Samsung, Sony, Toshiba, Gateway, Acer, and more
4 Review

💾 M.2 NVMe SSD Screws for Asus, Gigabyte, and MSI Motherboards - Laptop M.2 Screws
8 Review

M.2 Screw Kit: Easy Mounting for NVMe SSDs on ASUS Motherboards
19 Review

🔩 Enhance Repairs and Upgrades with 400pcs Laptop Screws w/Blue Nylok – Premium Titanium Nitride Screwdriver & Notebook Computer Screw Kit Set
3 Review