How to use (convert) arduino IDE code in Simulink?

21 ビュー (過去 30 日間)
aakash dewangan
aakash dewangan 2021 年 8 月 29 日
回答済み: Kshitij Chhabra 2021 年 9 月 2 日
HI,
I have a code on arduino IDE. I want to use it (definitely it can not be used directly, some modifications might be required) in Simulink. Please let me know how can I convert Arduino code into Simulink blocks.
For more information, I am trying to use load cell with Simulink. Please help me to read the weights measured by load cell on Simulink.
I need help. Please!
Thank you

回答 (1 件)

Kshitij Chhabra
Kshitij Chhabra 2021 年 9 月 2 日
Hi,
I'm assuming that you want to connect the load cell sensor to your Arduino board and then use serial communication and access the data using a Simulink block.
I can recommend using the Simulink Support Package for Arduino Hardware which contains a library of Simulink blocks for configuring and acessing Arduino sensors. For more specific examples, you can check the webpage here.
Alternatively, you can write your own MATLAB Function block and follow a similar approach as in this previously answered question on MATLAB Answers.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by