Adding remote button to mega wifi

Hi, i have a sketch running on a mega 2650 that has 5 momentary pushbuttons to activate functions. Ive just obtained a wifi mega with the builtin esp8266. I have a basic understanding of the arduino board, but esp’s are a whole new ballgame. Is there a way to upload a sketch to the esp section of the board and control the buttons over wifi. I don’t understand any of the tutorials, talking about webhooks, and servers. Is there a basic tutorial that covers this without temperature sensors( alot of tutorials mention these).

you have to set the DIP switches to select which processor Mega or ESP8266 to program etc
have a look at Mega-WiFi_R3_ATmega2560_ESP8266 and Programming Wemos Mega + WiFi R3

I understand that, its the code that baffles me, and the definition of things.

they are indepent microcontrollers connected via a serial communications link (Mega Serial3)
try loading example code into the Mega and ESP8266, e.g.

  1. File>Examples>Basics into Mega
  2. File>Examples>ESP8266WiFi>WiFiScan into ESP8266

once you have them working try receiving the serial output of the ESP8266 using Serial3 of the Mega and display it

have a look at adding-remote-button-to-mega-wifi

They arnt, i wanted to use an app like blynk or a webpage.

the link in my last email was faulty
have a look at arduino-mega-and-esp01-for-web-server-question

Control the buttons themselves? Probably not, unless you have some sort of mechanical actuators to press the buttons for you.
Receiving commands to control the functions that are controlled by the buttons, that would be possible. In a lot of cases, you would not program the ESP8266 itself, but instead use the serial connection to control it the same as an external ESP8266 module.

No the physical buttons are for testing, they just pull the pin to ground to activate the function.

Ok well i guess you are correct they arnt controlling physical buttons. So far ive got the mega and esp to communicate to each other and its linked to the blynk app, so now i just need to fiddle around with the coding to mimic what the push button does on the board.

This was solved using blynk app and coding virtual pins to pull the pins low. Thanks for all the responses

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.