How to monitor and control arduino based drone through matlab ?

34 ビュー (過去 30 日間)
Paul
Paul 2025 年 11 月 30 日 11:11
コメント済み: dpb 2025 年 11 月 30 日 19:56
Hi,
I am trying to build a student project with a drone using arduino nano IOT/BLE and matlab. The goal is that the drone should be able to send data from the IMU to matlab with the latter performing a PID action to control the drone. Ideally , all IMU variables can be monitored and controlled online by matlab or simulink.
The problem so far :
  • I can connect the Nano Iot or BLE using an USB cable for setting up a wifi or bluetooth connection via arduinosetup, but after unplugging the cable , re-connecting to the arduino is impossible using just a powered usb. On the menu of the arduino configuration in matlab, the port (COM4) does not show up anymore. I have followed some guidelines (also question was raised in the forum) but the problem persists. I am guessing that if the USB is unplugged, the matlab server code is erased from the arduino but then I don't see the point of it.
I am actually not sure this is the right way to do it. Are there tutorials for this kind of project or is it not possible ?
Any help would be appreciated !
Cheers
  3 件のコメント
Paul
Paul 2025 年 11 月 30 日 19:38
So once programmed, simulink allows to access variables from the program even if the arduino is not connected anymore by usb?
dpb
dpb 2025 年 11 月 30 日 19:50
I know nothing about Simulink, sorry...just looking at what I could find that might be pertinent to your query...

サインインしてコメントする。

回答 (1 件)

dpb
dpb 2025 年 11 月 30 日 18:49
  2 件のコメント
Paul
Paul 2025 年 11 月 30 日 19:34
Arduino Nano IoT and BLE are both supported for BLE. I can connect to them this is not the problem.

サインインしてコメントする。

カテゴリ

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