Arduino code to Simulink
4 views (last 30 days)
Pradeep KS on 10 Apr 2019
There are two approaches depending on the Sensor complexity.
If I2C communication with the sensor is less complex, you can follow the below mentioned example to replicate the same implementation for Xsens IMU sensor.
Create a Simulink model with Arduino I2C blocks to read the data from the sensor.
If the C/C++ library is already available, you can wrap the library into a Simulink Device driver block by following the below guide.