kriswiner/EM7180_SENtral_sensor_hub

magnetic anomaly detected

Opened this issue · 14 comments

Hello,

whatever I am doing I always get the report that there is a magnetic anomaly detected.
I am using a Teensy 3.6 and added the "i2_t3" library and optimized the USFS library to work with it.

I also noticed that the INT pin switchtes states ~5700 times per second. :?

Issue #29
I thought so because I read in the Issue linked above that if "magnetic anomaly detected" the magnometer is ignored.

currently without warm start kind of good - I just got the sensor a few hours ago so I am going to fully test it tomorrow

when shaking the sensor hard the calculated YAW value shitfs quiet a bit and then stays a its "new" location

The shaking and the magnetic anomaly detected problems are still present, also when testing today the YAW value slowly increased over time and by correcting to the "correct" heading my robot just performed circles...

my current problems are similar to the problems described in issue #15 linked below
Issue #15

For the magnometer calibration I'm waving the device in an figure 8, but the AlgorithmStatusRegister is never showing me that the magnometer calibraton is completed, instead all the time it shows me that there is a "magnetic anomaly", like I described it in the beginning.

My shaking problem is, that if I shake the sensor, like turning it 90° rapidly (and then bringing it back to its original position), the YAW value jumped to another position (usually about +-20°) and then stays there.

I am trying to calibrate the sensor without any success! I am using your code (WarmStartandAccelCal) and followed the steps described in the wiki section F, but no matter how long I tried to calibrate the magnetometer it never showed me any good results. Also the software and hardware yaw values nearly always differed for more than 10°/20°/... . When restarting the board after saving some "calibration data" the yaw value never stayed constant when heading the sensor in the same direction that it faced before the restart. I have absolutely no idea what i could have done wrong D:

Thank you for your help

EM71280_MPU9250_BMP280_M24512DFC_WS_Acc_Cal.zip

There is not much code I could send you, I am mostly using the code provided in this Git. The code I linked above is exactly the one I used when trying to calibrate the sensor (I have not changed much other than the INT pin and some I²C stuff). I am using a Teensy 3.6 and I am using this sensor I bought from you #link;
.

Ok I see, but that explains why the WarmStart did not work. But for all my other testing i was using the code provided for the sensor baord. Is there an WarmStart sketch I could use for my sensor?