I need help with magnetometer usage and part selection for a compass use case. I have a QMC5883l up and running, but I can't use the data. I might need to switch units and want to choose wisely.
Presently the QMC5883l returns readings that are stable if the unit is held stable...but it seemed like when I tilted the unit to a new position and then tilted back, the readings wouldn’t go back to the original value. I tested this further by subjecting the unit to an external magnetic field supplied by a permanent magnet. I can see the output values change, but when the magnet is removed the values definitely do not return to the original value. Also, earths magnetic field is supposed to be .25 to .65G...I have the unit set to 2G sensitivity...but see much less dynamic range in the output data than that would suggest...and widely variable between each axis. Is it normal for magnetometer units to act this way or could I have obtained low-quality units?
I have seen other units with tilt compensation etc, but I'm skeptical the libraries to support them will be compatible with the non-standard I\O pins I need to use with implementation with Teensy units. Can anyone recommend a known-good unit that can easily be used as a compass interfaced with non-default I\O pins on a Teensy?
Presently the QMC5883l returns readings that are stable if the unit is held stable...but it seemed like when I tilted the unit to a new position and then tilted back, the readings wouldn’t go back to the original value. I tested this further by subjecting the unit to an external magnetic field supplied by a permanent magnet. I can see the output values change, but when the magnet is removed the values definitely do not return to the original value. Also, earths magnetic field is supposed to be .25 to .65G...I have the unit set to 2G sensitivity...but see much less dynamic range in the output data than that would suggest...and widely variable between each axis. Is it normal for magnetometer units to act this way or could I have obtained low-quality units?
I have seen other units with tilt compensation etc, but I'm skeptical the libraries to support them will be compatible with the non-standard I\O pins I need to use with implementation with Teensy units. Can anyone recommend a known-good unit that can easily be used as a compass interfaced with non-default I\O pins on a Teensy?