I’m doing a project with esp - 8266 and arduino mega, but when i upload and opened my serial monitor appeared " [1659] 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 also changed the baud rate of my ESP to 9600.
I believe everything is connected correctly
RX > D18
TX > D19
VCC > 3.3V (alternate power supply)
GND > GND
I’ve read other forum posts and I cannot figure it out for the life of me
This is my code
// See the Device Info tab, or Template settings
#define BLYNK_TEMPLATE_ID "TMPLNuy3YkX3"
#define BLYNK_DEVICE_NAME "Bioreactor"
#define BLYNK_AUTH_TOKEN "AUDK4qyLRZhr01zcJeeX1d-nPHxVTWwd"
// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
char auth[] = BLYNK_AUTH_TOKEN;
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Whitesky-2-344";
char pass[] = "56423928";
// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
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", 80);
//Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}