OpenMarine
Pb with MPU9250 - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: Pb with MPU9250 (/showthread.php?tid=2589)



Pb with MPU9250 - kinefou - 2020-05-17

Good morning all,

My implementing of pypilot is well advanced on openplotter 2.0, but I still have a problem with my MPU9250  connected in I2C. It clearly tells me the yaw, roll and pitch as expected, but as soon as the engine starts to correct the course, these three values panic and tell me anything. Having 3 modules of this type, I tried them one after the other, but for the 3, I encounter the same problem !!!
My only way to return to normal operation is to replace it with an MPU6050, which remains stable, while reacting less quickly.
I cannot realize how starting the engine (3m away from the sensor) can affect the MPU9250 !?
Parasites, magnetic field, power failure ??
Perhaps a faillure of my 3 Mpu9250?
Has anyone encountered the same problems?
Thank you for your answers or suggestions.

Kinefou


RE: Pb with MPU9250 - seandepagnier - 2020-05-19

by engine do you mean the electric motor moving the rudder?

electric motors produce magnetic fields and you should keep them well away, but 3 meters should be plenty.


RE: Pb with MPU9250 - kinefou - 2020-05-19

Thank you Sean for your suggestion. the engine is actually the one that must move the bar and that I replaced with a small meccano engine for testing: maybe it is not isolated enough. Otherwise, I feed it with a PC power supply which is fairly close to the sensor; I will try again by feeding everything on a battery and keeping the engine well away from the mpu.
cordially