OpenMarine
Problem with IMU and Pypilot - 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: Problem with IMU and Pypilot (/showthread.php?tid=5370)

Pages: 1 2 3


Problem with IMU and Pypilot - bmanresa - 2024-05-02

Good morning,
I want to install an autopilot on my boat and I have a raspberry 4 installed on it. I'm lerarning how to do it with pypilot.
I've read that the first step is to connect and IMU to the raspberry, I bought one on Amazon and I received the MPU 9250/6500/9255. Following the connection diagram, pypilot is not able to detect it...
However, in the I2C app it does appear on raspberry I2c map at address 68. I've tried two identical IMUs and I had the same problem with both... Does anyone know how to solve it?
I attach images and screenshots.

Thank you so much.

           


RE: Problem with IMU and Pypilot - PaddyB - 2024-05-02

In a terminal try running "pypilot"

The IMU may be getting detected but not showing in the pypilot openplotter app

Also have a look in calibration, if it is there some points should be visible in the compass & accel calibration plot.

[Image: hWGdd9C.png]

There should be some lines about the IMU

[Image: Aoyw2hf.png]


RE: Problem with IMU and Pypilot - Sailoog - 2024-05-02

Go to openplotter-settings app, enable "Debugging" in general settings.
Open a terminal and type openplotter-pypilot
Enable the "enable imu only" option
Copy here any error you get in terminal


RE: Problem with IMU and Pypilot - Lazzz - 2024-05-02

Same as my problem.

https://forum.openmarine.net/showthread.php?tid=5334&pid=29889#pid29889

I'll do the same.


RE: Problem with IMU and Pypilot - bmanresa - 2024-05-02

(2024-05-02, 11:44 AM)Sailoog Wrote: Go to openplotter-settings app, enable "Debugging" in general settings.
Open a terminal and type openplotter-pypilot
Enable the "enable imu only" option
Copy here any error you get in terminal

Thanks for answering Sailoog,

This is the error I've got.

   


RE: Problem with IMU and Pypilot - Sailoog - 2024-05-02

SPI??? it should be I2C.

Try deleting the file ~/.pypilot/RTIMULib.ini and try again


RE: Problem with IMU and Pypilot - bmanresa - 2024-05-02

(2024-05-02, 04:11 PM)Sailoog Wrote: SPI??? it should be I2C.

Try deleting the file ~/.pypilot/RTIMULib.ini and try again

I have tried this solution but unfortunately I get the same error and the IMU is still not detected Cry


RE: Problem with IMU and Pypilot - Lazzz - 2024-05-02

(2024-05-02, 11:44 AM)Sailoog Wrote: Go to openplotter-settings app, enable "Debugging" in general settings.
Open a terminal and type openplotter-pypilot
Enable the "enable imu only" option
Copy here any error you get in terminal

I get similar if this helps.

On a side note, should SPI be enabled or off??

   


RE: Problem with IMU and Pypilot - Sailoog - 2024-05-03

Forget SPI, I have just checked and that message always appears when the imu is not detected. I am afraid your devices are not detected probably due to hardware problems. You can try to force the imu detection editing ~/.pypilot/RTIMULib.ini if it exists but I do not think it will work either:

# IMU type -
# 0 = Auto discover
# 1 = Null (used when data is provided from a remote IMU
# 2 = InvenSense MPU-9150
# 3 = STM L3GD20H + LSM303D
# 4 = STM L3GD20 + LSM303DLHC
# 5 = STM LSM9DS0
# 6 = STM LSM9DS1
# 7 = InvenSense MPU-9250/MPU-9255
# 8 = STM L3GD20H + LSM303DLHC
# 9 = Bosch BMX055
# 10 = Bosch BNX055
# 11 = Old MPU-9255 (don't use)
# 12 = STM LSM6DS33 + LIS3MDL
# 13 = HMC5883L + ADXL345 + L3G4200D
# 14 = InvenSense ICM-20948
IMUType=7


RE: Problem with IMU and Pypilot - Lazzz - 2024-05-03

(2024-05-03, 11:30 AM)Sailoog Wrote: Forget SPI, I have just checked and that message always appears when the imu is not detected. I am afraid your devices are not detected probably due to hardware problems. You can try to force the imu detection editing ~/.pypilot/RTIMULib.ini if it exists but I do not think it will work either:

# IMU type -
#  0 = Auto discover
#  1 = Null (used when data is provided from a remote IMU
#  2 = InvenSense MPU-9150
#  3 = STM L3GD20H + LSM303D
#  4 = STM L3GD20 + LSM303DLHC
#  5 = STM LSM9DS0
#  6 = STM LSM9DS1
#  7 = InvenSense MPU-9250/MPU-9255
#  8 = STM L3GD20H + LSM303DLHC
#  9 = Bosch BMX055
#  10 = Bosch BNX055
#  11 = Old MPU-9255 (don't use)
#  12 = STM LSM6DS33 + LIS3MDL
#  13 = HMC5883L + ADXL345 + L3G4200D
#  14 = InvenSense ICM-20948
IMUType=7


OK, I have another IMU on the way.

Thanks for your help.