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
ICM-20948 (QWIIC) setup or standard i2c
#1
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.
Reply
#2
what does "i2cdetect -y 1" show?
Reply
#3
(2021-06-14, 11:43 PM)seandepagnier Wrote: what does "i2cdetect -y 1" show?

It shows 69
Reply
#4
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
Reply
#5
(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
Reply
#6
You must use this repository:

https://github.com/seandepagnier/RTIMULib2

try rtimulibdrive
Reply
#7
(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.
Reply
#8
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.
Reply
#9
(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
Reply
#10
you must already be running pypilot

perhaps the two processes conflict?

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


Forum Jump:


Users browsing this thread: 2 Guest(s)