I am having an issue with my QMC5883L Magnetometer. I have tried various different example codes with their corresponding libraries, trying to get an x y z value. However all i see in my serial monitor is either X: 0 Y: 0 Z: 0 or X: -1 Y: -1 Z: -1.
Of course you can change the library code to use a different I2C address, but the real question is: what sort of chip is on that board? Is it a magnetometer?
Any of those cheap boards from China is very likely to be made from reject, counterfeit or mislabeled parts.
Example: a bunch of "ATmega328 chips" that were something else entirely. And that was 11 years ago!
Alright i got it! Still very confused because apparently i have an hmc58853l and i thought that was the better one so no idea why i bought it labeled as qmc... i finally got it to work and only needed wire.h. Thanks a lot for your help!
Glad to hear you figured it out. The HMC5883 is better than the QMC5883, but it was discontinued several years ago, and magnetometers have improved substantially since then.