How to connect arduino with Matlab using HC-05 bluetooth module
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!