Mega+esp8266+ blynk 2

That usually means that you are using the wrong value for your ESP8266_BAUD or you have your DIP switches/jumpers in the wrong position.

Pete.

Dear Pete,
Well, thanks always answering, helping.
Need to change baund from arduino code or from firmwave ?

Maybe you should go back and re-read the serial port tutorial.

Pete.

Dear Pete,
Problem with coding of blynk
Please check this -

this code give error that esp not responding

#define BLYNK_TEMPLATE_ID "TMPLeQhT-_6M"
#define BLYNK_DEVICE_NAME "Led blynk"
#define BLYNK_AUTH_TOKEN "wRZVtneAREKNNv-pxmodc1vfGIgxrM5O"

// Send Blynk user messages to the hardware serial port…
#define BLYNK_PRINT Serial 

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

char auth[] = BLYNK_AUTH_TOKEN;

char ssid[] = "KamranIbadov";
char pass[] = "celil160819";

// Define your ESP8266 baud rate:
#define ESP8266_BAUD 115200

// Tell the Blynk library to use the  Hardware Serial port 1 for WiFi..
ESP8266 wifi(&Serial1);
#define led 10  //D2

BLYNK_WRITE(VPIN_BUTTON_0) {
  
    digitalWrite(led, HIGH);
  
  
}

void setup()
{
 // Initialise the debug serial port
 Serial.begin(115200);

 // Initialise the Hardware serial1 port…
 Serial1.begin(ESP8266_BAUD);
 delay(10);

 Blynk.begin(auth, wifi, ssid, pass);
}

void loop()
{
 Blynk.run();
} ```

I’m not sure what you’re trying to show with your screenshots, but please replace them with copied and pasted text, with triple backticks.

I’m also not clear what your last comment means.

Clearly, you are using the wrong ESP baud rate in the sketch which gives the “not responding” error.

The last sketch, which is using the correct ESP baud rate, is a total mess, and you should stay well clear of it.

Pete.

Dear Pete,
replace Serial 1 to Serial 3 from your topic
In that case no give error esp not responding

I still don’t understand.
Is the problem solved now?

Pete.

Yes, after changing Serial 1 to Serial 3 (code from your tutorial-FAG) everything working fine.

1 Like