How to connect arduino with Matlab using HC-05 bluetooth module

8 Ansichten (letzte 30 Tage)
Selva
Selva am 9 Dez. 2014
Kommentiert: Adel Djellal am 20 Apr. 2017
I wish to build a wheeled robot based on arduino that is controlled wirelessly using HC-05 Bluetooth module which gets signals from MATLAB.
MATLAB -> ArduinoIDE -> Arduino UNO [ Accomplished via USB and using adio.pde]
ArduinoIDE -> HC05 Bluetooth -> Arduino Board [ Accomplished using a sample code downloaded online... TX, RX working seamless]
*MATLAB -> HC05 Bluetooth -> Arduino [ HELP NEEDED ]*
All help is appreciated ... Feel free to ask further details so that you help me
  2 Kommentare
Ismail  Turan
Ismail Turan am 8 Dez. 2016
hi, if you find the solution for this problem, could you share with us ?
Adel Djellal
Adel Djellal am 20 Apr. 2017
hello, use:
>> B = Bluetooth('HC-05', 1); %to open bluetooth port
>> fopen(B); %to open bluetooth port
>> fwrite(B,'commmand'); %send controls to arduino via bluetooth, commands can be 'UP' 'DOWN' etc.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Test and Measurement finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by