Arduinoへのリアルタイム実装
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
聖悟 松岡
el 12 de Jul. de 2022
Respondida: Toshinobu Shintai
el 12 de Jul. de 2022
DataLITEという無線の筋電センサを使用していて,一応MATLABのワークスペース上にデータを保存することができたのですが,そのデータを元にリアルタイムでArduinoに繋がっているモータを制御する方法が分かりません.
イメージとしてはセンサ(Arduinoに繋がっていない)⇒MATLAB⇒(SimulinkやInstrument Control Toolboxなど?⇒)Arduino⇒サーボモータという流れです.そもそもリアルタイムで制御可能でしょうか.
0 comentarios
Respuesta aceptada
Toshinobu Shintai
el 12 de Jul. de 2022
サーボモーター制御ということなので、おそらくmsオーダーのサンプリングタイムステップで制御されるのではないかと思います。その場合、MATLAB PC を含むシステムではリアルタイム制御はできないと考えてよいです。
Instrument Control Toolboxなどを用いてシリアル送信を行い、Arduinoにデータを渡すことはできますが、PCはリアルタイム動作に向いていません。
センサを直接Arduinoに接続することを検討された方がよいかと思います。
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!