I am trying to connect Arduino Uno with Blynk using ESP Wifi module.
After uploading the program I am getting the message as “ESP is not responding” in Serial Monitor.
I am not able to find the baud rate of the ESP Module. When I connected the module through UART converter typed AT in the serial monitor and press enter is showing error.
Below is my code. Can anyone please help me?
#define BLYNK_TEMPLATE_ID "TMPLfdffG-fr1qXE"
#define BLYNK_DEVICE_NAME "esp01wifi"
#define BLYNK_AUTH_TOKEN "8lNrmbCAIKC56cSdfdfUjQ0PIO4CIcSxhNe9"
// 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[] = "";
char pass[] = "";
// 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);
void setup()
{
// Debug console
Serial.begin(115200);
// 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();
}