Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
do you mean i2c does not detect it by running:
i2cdetect -y 1
What is the result?
It may be this board only supports SPI? I never tried in spi mode, so it could be the rtimulib2 doesn't work properly in spi mode at this time.
Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
it will work with both sensors. However be aware that the icm20948 requires 1.8v levels. If you just connect it up without regulator and translators, you probably damaged it. Some breakouts have these builtin others do not.
If you do not see it from i2cdetect then there is no way it is going to work.
Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
Yes, I think the issue is, RTIMULib2 does not support this sensor in spi mode. Also, only my fork of RTIMULib2 supports this sensor.
In theory it will work in spi mode actually... the code is all in place but due to the fact it has never been attempted there is probably something somewhere in the code preventing it from actually working.
Posts: 140
Threads: 2
Joined: Jul 2020
Reputation:
4
2022-02-23, 08:16 AM
(This post was last modified: 2022-02-23, 08:23 AM by stelian.)
Well, maybe it works after all:
You said: "There is no SOD(A) pin, but SDO and SDI I have only tested SDO. What do you think? "
This makes me think that you did not wire the ICM correctly. SPI requires more wires than i2c. You need at least 4 wires: VCC, GND, MOSI = SDO, SCK, probably the CS as well. MISO = SDI is probably not required.
You need to wire this to the proper SPI connections on the Raspberry PI (same as the JLX screen), and you need a GPIO to control the CS.
And maybe you will need to customize RTIMULib.ini for SPI.
All these are wild guesses since I never used a IMU sensor over SPI.
Posts: 2,356
Threads: 21
Joined: Jun 2016
Reputation:
75
If the sensor is working with a different code, then it is most likely just not debugged on RTIMULib2. I don't see any pressing reason to support the sensor in spi mode: there are no real advantages and it takes more wires as well as pins usually used for the lcd and mcu which receives RF remote control signals.