OpenMarine
ICM-20948 (QWIIC) setup or standard i2c - 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: ICM-20948 (QWIIC) setup or standard i2c (/showthread.php?tid=3505)

Pages: 1 2 3


ICM-20948 (QWIIC) setup or standard i2c - esm - 2021-06-14

I am trying to configure my pilot with an i2c ICM-20948 imu, but I am not having any luck.  I initially tried to do so through the Pican-M QWIIC connection, and then by trying a standard i2c connection with jumper wires.  I have seen some previous post about this being added soon, but have also seen that this is one of the IMUs of preference for Pypilot.  The system will not recognize the sensor.  Does anyone have suggestions, or have successfully interfaced this?  Thanks in advance for your help.


RE: ICM-20948 (QWIIC) setup or standard i2c - seandepagnier - 2021-06-14

what does "i2cdetect -y 1" show?


RE: ICM-20948 (QWIIC) setup or standard i2c - esm - 2021-06-15

(2021-06-14, 11:43 PM)seandepagnier Wrote: what does "i2cdetect -y 1" show?

It shows 69


RE: ICM-20948 (QWIIC) setup or standard i2c - seandepagnier - 2021-06-15

well it works at 0x68, the code should support either 0x68 or 0x69

Can you run rtimulibdrive demos? It may be your version of rtimulib2 is not new enought


RE: ICM-20948 (QWIIC) setup or standard i2c - esm - 2021-06-15

(2021-06-15, 05:36 PM)seandepagnier Wrote: well it works at 0x68,  the code should support either 0x68 or 0x69

Can you run rtimulibdrive demos?   It may be your version of rtimulib2 is not new enought

I am getting this back:

collect2:  error  id returned 1 exit status
make[1]: *** [Makefile.Release:182: Output/RTIMULibDemo] Error 1
make[1]: Leaving directory '/home/pi/RTIMULib2/Linux/RTIMULibDemo'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2

I tried to update the latest RTIMULib but richards-tech is inactive now


RE: ICM-20948 (QWIIC) setup or standard i2c - seandepagnier - 2021-06-15

You must use this repository:

https://github.com/seandepagnier/RTIMULib2

try rtimulibdrive


RE: ICM-20948 (QWIIC) setup or standard i2c - esm - 2021-06-16

(2021-06-15, 08:55 PM)seandepagnier Wrote: You must use this repository:

https://github.com/seandepagnier/RTIMULib2

try rtimulibdrive

Hi Sean I ran the RTIMULib2, and I can see the sensor's values, however, when opening Pypilot in openplotter, the IMU is still not detecting the ICM-20948 to calibrate.


RE: ICM-20948 (QWIIC) setup or standard i2c - seandepagnier - 2021-06-16

So, rtimulibdrive is working ok?

Ensure no other program is using the device, and try running "pypilot_boatimu" from the console. Please include the output from the console.


RE: ICM-20948 (QWIIC) setup or standard i2c - esm - 2021-06-16

(2021-06-16, 04:52 PM)seandepagnier Wrote: So, rtimulibdrive is working ok?

Ensure no other program is using the device, and try running "pypilot_boatimu" from the console.   Please include the output from the console.

Yes rtimulibdrive is working.

no IMU detected... again pypilot server: bind failed; already running a server? Using settings file RTIMULI .ini Failed to open SPI bus 0, No IMU detected Using fusion algorithm Ka lman STATE4 no IMU detected... try again Using settings file RTIMULib.ini Failed to open SPI bus 0, select O No IMU detected Using fusion algorithm Kalman STATE4 no IMU detected... try again pypilot_server: bind failed; already running a server? Using settings file RTIMULİB.ini select O


RE: ICM-20948 (QWIIC) setup or standard i2c - seandepagnier - 2021-06-16

you must already be running pypilot

perhaps the two processes conflict?

what does "ps aux | grep python" show you?