Chat freely about anything...

User avatar
By perigalacticon
#58013 I am an Arduino user new to programming with WIFI I just got a esp8266 module. I'm not sure I got the right one. I want interface with a robot that is running a Mega2650 and a long sketch that controls it. I want to provide input to the Mega2650 from a smartphone through WIFI. The sketch on the Mega2650 does the control work, I want to send input commands to it from the smartphone. I saw the Blynk app, I am wondering, can this be used to do this? It appears the entire sketch has to be the Blynk program? Is there a good overview of esp8266 and which boards and systems can be used in a situation like this? Thanks.
User avatar
By Terraformer
#58102 Hi,

I don't know the Blynk app but as far as I know it should be (easily) possible to connect the Mega and ESP via serial. Have you already installed the ESP8266 core for Arduino IDE? https://github.com/esp8266/Arduino
It should take the route: wifi command via browser -> ESP webserver (see #include <ESP8266WebServer.h>) -> ESP serial TX -> Mega RX. The Mega could parse the input and act on that.
May this is a starting point: http://www.martyncurrey.com/arduino-to-esp8266-serial-commincation/

Best!