Arduinoへのリアルタイム実装
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
聖悟 松岡
am 12 Jul. 2022
Beantwortet: Toshinobu Shintai
am 12 Jul. 2022
DataLITEという無線の筋電センサを使用していて,一応MATLABのワークスペース上にデータを保存することができたのですが,そのデータを元にリアルタイムでArduinoに繋がっているモータを制御する方法が分かりません.
イメージとしてはセンサ(Arduinoに繋がっていない)⇒MATLAB⇒(SimulinkやInstrument Control Toolboxなど?⇒)Arduino⇒サーボモータという流れです.そもそもリアルタイムで制御可能でしょうか.
0 Kommentare
Akzeptierte Antwort
Toshinobu Shintai
am 12 Jul. 2022
サーボモーター制御ということなので、おそらくmsオーダーのサンプリングタイムステップで制御されるのではないかと思います。その場合、MATLAB PC を含むシステムではリアルタイム制御はできないと考えてよいです。
Instrument Control Toolboxなどを用いてシリアル送信を行い、Arduinoにデータを渡すことはできますが、PCはリアルタイム動作に向いていません。
センサを直接Arduinoに接続することを検討された方がよいかと思います。
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!