I'm trying to connect matlab to arduino. Instead of using the usb cable, I'm using the hc-06 bluetooth. I use the serial function to connect them. I make sure that I change my com port to the bluetooth com port. However, every time I run the program, it keeps giving me error that my com port is not available.

3 件のコメント

Star Strider
Star Strider 2017 年 11 月 15 日
To the best of my knowledge, you need the Instrument Control Toolbox to communicate using Bluetooth (link).
I do not have the Toolbox, so I can only provide a link to the documentation.
Muykim Ly
Muykim Ly 2017 年 11 月 17 日
I was able to get the bluetooth function to work. However, I was wondering if I can use the fwrite function to tell the arduino what to do.
Maitreyee Mordekar
Maitreyee Mordekar 2017 年 11 月 27 日
Hi Muykim,
Could you please provide more information on your workflow? A snapshot of the error that you receive will help understand the issue better.
Also, could you explain more about ' I was wondering if I can use the fwrite function to tell the arduino what to do.' statement? What are you are trying to implement on the Arduino?
Best, Maitreyee

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeArduino Hardware についてさらに検索

タグ

質問済み:

2017 年 11 月 15 日

コメント済み:

2017 年 11 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by