My ESP-01 is not respoding with Arduino mega

I’m doing a project with esp - 01 and arduino mega, but when i upload and opened my serial monitor appeared " [1609] ESP is not responding". My ESP firmware is At version: 1.1.0.0; SDK version: 1.5.4 (this version came with the ESP) I read that this is the version that blynk tested, so i do not know what is the problem with my project.
Another information:

  • I’m using ESP-01 Adatper
  • My connections are:
    gnd → gnd
    vcc → 5v
    tx → tx1 18
    rx → rx1 19

Isn’t ESP-01 running on 3.3 V? :thinking:

Anyhow, search the forum. Similar questions have been asked and answered many times before! :slight_smile:

What does your serial monitor show?

Pete.


This is my serial monitor

i’m using the adapter to connect directly on 5v

The Tx pin on the board has to go to the Rx pin on the ESP-01 and vice-versa.

Pete.

thanks, but i changed and keep showing up the same error

I’d suggest that you post your full sketch, correctly formatted with triple backticks at the beginning and end of the code.
Triple backticks look like this:
```

Pete.

Okay, follow my code:



#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[] = "dpIzSePNszzISpUPC60J58lUfoaB8xAe";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "MARTINI";
char pass[] = "FSBTmartini";

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

// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 38400

ESP8266 wifi(&EspSerial);

BlynkTimer timer;

// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void myTimerEvent()
{
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V5, millis() / 1000);
}

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);

  // Setup a function to be called every second
  timer.setInterval(1000L, myTimerEvent);
}

void loop()
{
  Blynk.run();
  timer.run(); // Initiates BlynkTimer
}```

Is this the baud rate that your ESP is actually using?

Pete.

isn’t, is 115200, i changed and now it’s working. thank you for helping.

1 Like