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

7 次查看(过去 30 天)
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.

回答(1 个)

Anil Kumar
Anil Kumar 2023-6-13
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

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by