Is it possible to send data from MATLAB GUI to esp8266 wired with Arduino?
Show older comments
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
Walter Roberson
on 29 Oct 2017
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.
Ahmer Ahmed
on 30 Oct 2017
Walter Roberson
on 30 Oct 2017
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.
Ahmer Ahmed
on 30 Oct 2017
Ahmer Ahmed
on 30 Oct 2017
Ahmer Ahmed
on 30 Oct 2017
Ahmer Ahmed
on 30 Oct 2017
Walter Roberson
on 30 Oct 2017
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.
The article https://blogs.mathworks.com/iot/2017/10/27/collecting-resting-heart-rate-data-using-thingspeak/ might help.
Answers (0)
Communities
More Answers in the ThingSpeak Community
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!