BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Error - esp is not responding


#1

I am using Arduino Uno and Esp8266 wifi module
Here is my code =

 #define BLYNK_PRINT Serial


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

 // You should get Auth Token in the Blynk App.
 // Go to the Project Settings (nut icon).
 char auth[] = "f5836b45973e43a1b4c8d6ed42aa5417";

 // Your WiFi credentials.
 // Set password to "" for open networks.
 char ssid[] = "Juan Felix";
 char pass[] = "1234567890";

 // Hardware Serial on Mega, Leonardo, Micro...
 //#define EspSerial Serial1

 // or Software Serial on Uno, Nano...
 #include <SoftwareSerial.h>

 SoftwareSerial EspSerial(0, 1); // RX, TX

 // Your ESP8266 baud rate:
 #define ESP8266_BAUD 115200
 ESP8266 wifi(&EspSerial);`

 // Attach virtual serial terminal to Virtual Pin V1
 WidgetTerminal terminal(V1);

 // You can send commands from Terminal to your hardware. Just use
 // the same Virtual Pin as your Terminal Widget
 BLYNK_WRITE(V1)
 {

   // if you type "Marco" into Terminal Widget - it will respond: "Polo:"
   if (String("Marco") == param.asStr()) {
     terminal.println("You said: 'Marco'") ;
     terminal.println("I said: 'Polo'") ;
   } else {

     // Send it back
     terminal.print("You said:");
     terminal.write(param.getBuffer(), param.getLength());
     terminal.println();
   }

   // Ensure everything is sent
   terminal.flush();
 }

 void setup()
 {
   // Debug console
   Serial.begin(9600);
   // Set ESP8266 baud rate
   EspSerial.begin(ESP8266_BAUD);
   delay(10);

   Blynk.begin(auth, wifi, ssid, pass);
   // You can also specify server:
   //Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 8442);
  // Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8442);

   // This will print Blynk Software version to the Terminal Widget when
   // your hardware gets connected to Blynk Server
   terminal.println(F("Blynk v" BLYNK_VERSION ": Device started"));
   terminal.println(F("-------------"));
   terminal.println(F("Type 'Marco' and get a reply, or type"));
   terminal.println(F("anything else and get it printed back."));
   terminal.flush();
 }

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

It can use for upload data to arduino uno. When i want to connect it i got this error

error


#2

I fixed your post as per the directions…

As for your issue, please search this forum for keywords like Arduino, UNO, ESP-01, Shield, and so on… every conceivable issue has been discussed and resolved multiple times.

In your case, you are using the wrong pins for SoftwareSerial… pins 0 & 1 are needed for USB programing and the IDE Serial Monitor.

You are also using the wrong BAUD rate… stick with 9600 for best reliability with SoftwareSerial… and that is probaly what your ESP is preset for anyhow.

Blynk - RE-SEAR-CH


#3

Then i should change it back to 2 and 3 ?


#4

Whatever compatible pins you want.

https://www.arduino.cc/en/Reference/SoftwareSerial


#5

after i change it i get this error
error


#6

Now it is 1605 error


#7

Sorry, I don’t wish to repeat all my past suggestions about using ESP as shield more than a couple of dozen times over the year… so please search this forum as suggested, and try all the options until you don’t get that error anymore :wink:

PS, the number between the brackets is the milliseconds since power up, it is not an error number.