Is it possible to send data from MATLAB GUI to esp8266 wired with Arduino?

Hi everyone! I have a GUI already created for home automation using Bluetooth of laptop and HC-05 hooked up with arduino on the other side. I was able to do small stuff with simple buttons on GUI and controlling appliances wirelessly. But now I want to shift my project to IoT. I plan to use ESP8266 instead of HC-05 and make it server(or whatever) and make my laptop connected to that ESP8266 and send commands from GUI to ESP8266 from anywhere on Earth.
Is it possible? If yes, what are the steps? Explain briefly or refer to any links.

9 Comments

Ahmer Ahmed: Do you mean that you are programming the ESP8266 itself, with its 64 Kb of program space and 96 Kb of data space (if so, then what role is the Arduino playing, other than providing power?) Or do you mean that you are using the ESP8266 for its WiFi stack to connect remotely to the Arduino? Those are very different tasks.
Thanks for your time, Walter.
I am using the ESP8266 for its WiFi stack to connect remotely to the Arduino. I want my GUI in MATLAB to send data to that Arduino(could be located anywhere) where I have coded what to do when receive any kind of data. So basically it's a IoT project.
Is it possible?
Sure. Just use the links from the other Question to install the drivers. After that, just make sure you assign a public IP address and fixed port to the device. Once that is done, the situation is no different between having the host and device next to each other on the same table or having the two on the other side of the world.
Any links? Which drivers you are pointing to?
I have MATLAB 2013, so is it possible using 2013 edition of MATLAB?
What will be my path? I am a bit confused. Do correct if I am wrong in any of steps.
1- OBJ = udp('RHOST'); In this command, which IP address I will have to specify in RHOST parameter? The IP address of ESP8266 server located on remote site or the IP address of my router?
Unfortunately, with R2011a to R2013b, arduino support is through the "legacy" package, https://www.mathworks.com/matlabcentral/fileexchange/32374-legacy-matlab-and-simulink-support-for-arduino which I do not know as much about.
"OBJ = udp('RHOST'); In this command, which IP address I will have to specify in RHOST parameter?"
The public IP address you configured into the ESP8266.

Sign in to comment.

Answers (0)

Communities

More Answers in the  ThingSpeak Community

Categories

Products

Asked:

on 29 Oct 2017

Edited:

on 7 Nov 2017

Community Treasure Hunt

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

Start Hunting!