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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by