Reading sensor data off several ICM-20948 via SPI with Arduino due in Simulink

7 views (last 30 days)
Hi,
I'm trying to get several ICM-20948's data(Strawberry Linux) via SPI with Arduino due in Simulink.
However, the block parameters of the ICM20948 IMU Sensor in Simulink Support Package for Arduino Hardware only have an I2C address column, so I don't know what to do when combining with SPI communication.
Please let me know how to use SPI WriteRead block and combine with ICM20948 IMU Sensor block in Simulink Support Package for Arduino Hardware.
Information:
I've already installed Simulink Support Package for Arduino Hardware.
I got a ICM-20948's data via SPI with Arduino due in Arduino IDE.

Answers (1)

Anil Kumar
Anil Kumar on 13 Jun 2023
Hi Taketoshi,
The ICM20948 IMU sensor block is only for the I2C communication. Consider using SPI WriteRead block for the the SPI communication.
See below links for more info
Thanks
Anil

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!