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.
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!