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

8 ビュー (過去 30 日間)
Taketoshi ICHIHARA
Taketoshi ICHIHARA 2023 年 6 月 4 日
回答済み: Anil Kumar 2023 年 6 月 13 日
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 Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by