How to recive in matlab arduino's data by serial comunication with bluetooth

3 ビュー (過去 30 日間)
Nerea Perez Odriozola
Nerea Perez Odriozola 2020 年 3 月 31 日
回答済み: Harshendra Shah 2020 年 4 月 8 日
Hello everyone,
I'm trying to connect my Arduino Hardware to Matlab by Bluetooth. My proyect needs to read the dat Arduino writes in the serial monitor by matlab, I manage to do so this way:
delete (instrfind ({'Port'},{'COM3'}));
s=serial ('COM3');
s.BaudRat=9600;
warning ('off','MATLAB:serial:fscanf:unsuccessfulRead');
fopen (s);
but I would like to conect this by bluetooth and not by USB, but I can not find a code to do so.

回答 (1 件)

Harshendra Shah
Harshendra Shah 2020 年 4 月 8 日
You can setup the arduino board to connect to MATLAB via Bluetooth using the following command in the MATLAB Command Window:
>> arduinosetup
This will launch Arduino hardware setup interface.
After executing this command, you can refer to the following documentation page for step by step instructions of configuring your Arduino hardware to communicate via Bluetooth:
I hope this helps.

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by