MPU-9250 and SensESP? Someone got it work?

Hello, mxtommy integrated the MPU-9250 module into SensESP's predecessor, SigKSens. Is anyone out there who has managed to get the MPU-9250 working in SensESP? Unfortunately, I haven't found anything on this. It would be enough for me if I could get the compass from the MPU-9250 into SignalK.
3 Replies
Sailabout
Sailabout3mo ago
For inspiration, GY91_SensESPv3 with magnetic heading here: https://mega.nz/file/ufplzCYY#AVZTGAnaakO_MgPz7WjiJAkZX6mh7pLDSG7bqm56XDA
Ba2
Ba23mo ago
I have tried many times, but unfortunately failed and i gave up. Most magnetometers and accelerometers require soft iron, and hard iron calibration for offseting and scaling the raw values that you get from the sensor. The code is relatively simple, get raw values, filter them through a kalman filter like provided by the madgwick library and push them into signalk, but all i got was garbage values, which never made sense to me. I ended up connecting my mpu9250 to the raspberry pi over i2c and use pypilot to push the data to signalk. After calibration i got good values.
tobi42
tobi423mo ago
have you had a look at @HansT 's https://github.com/htool/ESP32_Precision-9_compass repo?

Did you find this page helpful?