Arduinoへのリアルタイム実装
24 views (last 30 days)
Show older comments
聖悟 松岡
on 12 Jul 2022
Answered: Toshinobu Shintai
on 12 Jul 2022
DataLITEという無線の筋電センサを使用していて,一応MATLABのワークスペース上にデータを保存することができたのですが,そのデータを元にリアルタイムでArduinoに繋がっているモータを制御する方法が分かりません.
イメージとしてはセンサ(Arduinoに繋がっていない)⇒MATLAB⇒(SimulinkやInstrument Control Toolboxなど?⇒)Arduino⇒サーボモータという流れです.そもそもリアルタイムで制御可能でしょうか.
0 Comments
Accepted Answer
Toshinobu Shintai
on 12 Jul 2022
サーボモーター制御ということなので、おそらくmsオーダーのサンプリングタイムステップで制御されるのではないかと思います。その場合、MATLAB PC を含むシステムではリアルタイム制御はできないと考えてよいです。
Instrument Control Toolboxなどを用いてシリアル送信を行い、Arduinoにデータを渡すことはできますが、PCはリアルタイム動作に向いていません。
センサを直接Arduinoに接続することを検討された方がよいかと思います。
0 Comments
More Answers (0)
See Also
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!