BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       👉 SKETCH BUILDER

Arduino Uno + ESP8266 Wifi Module

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

You might want to start by reading this…

Pete.

I’d suggest using esp32 instead, it’s cheaper, more powerful, and has more GPIO pins.

2 Likes

Yes You are right. But for college projects they are not allowing ESP32 and ESP8266 board. They want to use Arduino Uno with WiFi module. Please help me.

Are you supplying enough power to the esp8266 wifi module ?
Have you tried external 3.3v power source ?
Are you sure that the wifi module is connected correctly ? Rx to TX, Tx to Rx etc.

Show us your schematic.