This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with IMU and Pypilot
#1
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.

           
Reply
#2
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]
Reply
#3
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
Reply
#4
Same as my problem.

https://forum.openmarine.net/showthread....9#pid29889

I'll do the same.
Reply
#5
(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.

   
Reply
#6
SPI??? it should be I2C.

Try deleting the file ~/.pypilot/RTIMULib.ini and try again
Reply
#7
(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
Reply
#8
(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??

   
Reply
#9
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
Reply
#10
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)