Arduino code to Simulink
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
For school I need to read a sensor.
After some work I'm capable to read this with arduino. Is it possible to convert this code to a working Simulink model?
2 Commenti
Risposte (1)
Pradeep KS
il 10 Apr 2019
There are two approaches depending on the Sensor complexity.
1st approach:
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.
2nd approach:
If the C/C++ library is already available, you can wrap the library into a Simulink Device driver block by following the below guide.
0 Commenti
Vedere anche
Categorie
Scopri di più su Device Driver Blocks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!