MATLAB: Problem of developing with arduino

arduinoarduino unobluetooth modulebluetooth module hc-05hc-05

Hi everybody, my name is andrea and I'm trying to create a small home automation project. I would like to command LEDs via my android smartphone via arduino one, a hc-05 bluetooth module and the use of matlab (it would be better simulink). Using an application I would like to be able to connect to the bluetooth module and to control my LEDs. I managed to do the skecth with the arduino software, but with matlab I'm having some problems. I absolutely have to develop the program on matlab, on the request of my teacher who will be present at the exam !!!! Help me guys !!

Best Answer

There is a Simulink example for the use case.
Bluetooth support is not there currently in the support packages for Arduino and Android.
If you want to do it only using MATLAB, you will need an Android app running on the Android phone. From there you can send data to MATLAB via TCP/UDP. In MATLAB, listen to the TCP/UDP messages from the Android. Based on the message received on the phone, send the command to the Arduino.
Related Question