Problem with connection beetwen Arduino and computer via Bluetooth module HC-06

1 vue (au cours des 30 derniers jours)
grigory yashin
grigory yashin le 9 Juin 2017
Commenté : grigory yashin le 1 Déc 2017
I have a problem. I try to connect computer (Windows 10) to Arduino UNO by using Bluetooth module HC-06. For this task I implemented two methods. Command arduinosetup doesn't work for library "MATLAB Support Package for Arduino Hardware version 16.2.1". I can't connect computer with Arduino via Bluetooth (HC-06). When I try to use following commands: instrhwinfo('Bluetooth','HC-06') b = Bluetooth('HC-06',1) fopen(b) a=arduino('COM4','UNO') I got following error: Cannot program board Uno (COM4). Please make sure the board is supported and the port and board type are correct. Can anybody help me with this?

Réponses (1)

Cyrus Salehi
Cyrus Salehi le 27 Sep 2017
you need to set up the HC-06 and test the connection while programming the aurduino. There is very useful guide in MATLAB explaining how to connect the HC-06 and program it. once connection confirmed during set up, you can type a=aurduino in MATLAB to connect via Bluetooth.
I can send you a lot of details, need to go now. if the issue still exist, please let me know.
  1 commentaire
grigory yashin
grigory yashin le 1 Déc 2017
Thank you. The problem is solved, but not as desired. It was necessary to install the version of MATLAB R2017a or higher.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by