ESP8266-01disconnect and connect

Hi!
I am using the using the ESP8266-01, but it connects then disconnects continuously in the APP. I try to turn on a led an to send an email , but only it work sometimes.I dont now which is the probem.
I am using Arduino leonardo and i choose the next figures:

Arduino LEONARDO with ESP8266-01
Blynk 2.27.1 version
APP settings:HADWARE MODEL:ARDUINO LEONARDO
CONNECTION TYPE:WIFI

ARDUINO SETTING:BOARD:ARDUINO LEONARDO

#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>


char auth[] = "3859c00afb3b4ddeabeac179be498541";
char ssid[] = "WIFI ";
char pass[] = "946255638";




#include <SoftwareSerial.h>
SoftwareSerial EspSerial(10, 11); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

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", 80);
  //Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}

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





Far too fast for softwareSerial.

Set your ESP-01 to 9600 using an AT command and use that in your sketch.
Also, make sure you’re using a separate, beefy, PSU for your ESP and that’s you connect the grounds together with your Arduino PSU.

Pete.

1 Like

now is working
thank you for your advice

1 Like