I recently purchased the 9-axis MinIMU here: pololu.com/catalog/product/1265
I am using it with an Arduino Uno, and have downloaded and set up the sample AHRS code given on the product page. The problem is, it doesn’t give me correct roll/pitch/yaw values. Here is a brief summary of the behavior I have been seeing:
-It calibrates the offset correctly, and remains stable if not moved. That part is fine.
-If the IMU is rotated up to 45 degrees along its roll or pitch axis, the serial output reflects a change, but not the correct value. It seems a bit low, a 30 degree actual rotation only shows a 20 degree rotation on the serial monitor of the arduino.
-If the IMU is rotated beyond approximately 45 degrees along the roll or pitch axis, the respective axis value on the serial monitor will start to tick up at about a degree per second, and not stop as long as the device is held at an angle.
My main question is: Has anyone been able to get the sample AHRS code to work? Has anyone experienced similar behavior, and if so, did you find a solution?
When I have the arduino just spit out raw analog values, they all look correct. It seems like a coding issue. I am currently dissecting the program looking for something that might manifest itself as I described, but the going is slow. Any help or advice, even just someone saying theirs worked fine, would be fantastic.