Comments: Qwiic Micro Magnetometer - MMC5983MA Hookup Guide
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
If you've found an issue with this tutorial content, please send us your feedback!
There is a bug in the library. This is an 18-bit device, not a 16-bit. In each example, the raw value is brought in as an 'unisgned int'. This clips off the first two significant figures. You can even see the error in the screen captures of their examples. The field should not be -4 and -7 Gauss.
Changing the unsigned int to unsigned long fixes the issue. The error is in every example.
Thanks again for reporting. This has been corrected in v1.0.3 of the library.
Thank you for reporting this issue. I saw that you have already filed an issue with the Arduino library, the engineer on this product will take a look at the problem once there is some free time from the new boards that are being worked on.