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

조회 수: 8 (최근 30일)
Selva
Selva 2014년 12월 9일
댓글: Adel Djellal 2017년 4월 20일
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
Ismail  Turan
Ismail Turan 2016년 12월 8일
hi, if you find the solution for this problem, could you share with us ?
Adel Djellal
Adel Djellal 2017년 4월 20일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Test and Measurement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by