Anyone had experience with a 3 axis compass (or specifically the HMC5883L) they can share? We have code working to grab the I2C data for all three axis. However, for some reason, the Y axis (though centered when you have the Y axis perpendicular the earths magnetic pole = 0), when pointed directly at it, gets around 410, and pointed directly away from it get about -605. X and Z axis seem to be more believeable at within 10 or 20 or so when flipped 180 degrees. The code to grab and manipulate the data is the same for all axis. No, we don't have any electromagnets on the boardTested a few different sensor boards (of the same design), with same result.
Edit: Self test function gives -1138 and 1154 on the Y axis, similar to X and Z. Gain is set to default: 001
Bookmarks