Hello!
I am attempting to read valid yaw values from Pololu’s MinIMU-v5, which is connected to an Arduino Mega 2560. Right now I am able to receive values from the compass, however when you turn it by some amount, it will always report a smaller change in the Serial port. For example, rotating the compass by 90 degrees will only report a 15 degree change. After a few seconds, the new values often revert to the values returned before the rotation. I suspected that this is all due to a calibration issue, but after adjusting for hard-iron calibration, the values are still not reasonable. Any recommendations? Thank you!
Hello.
I am moving your post to the sensors support category since that seems like a more appropriate place for it.
It sounds like you are using the HeadingWithLSM6.ino program from our LIS3MDL Arduino library; is that correct? The behavior you described sounds consistent with a poorly calibrated magnetometer. This may seem like a silly question, but are you actually updating the calibration values in HeadingWithLSM6.ino with the results you get from running Calibrate.ino?
Can you post a video that shows your process for calibrating the sensor along with the output you get from the calibration program? The forum does not allow users to post very large videos, but it does work well with videos linked from other sites (like YouTube or Vimeo), or you could share a link to a cloud folder with the video (e.g. a Google Drive or Dropbox folder).
- Patrick