Device isn't online yet

 /** Voice controlled house lights with Google Assitant
 *  Instructable contest
 *  Mridul Mahajan
  Download latest Blynk library here:

#define BLYNK_PRINT Serial
#define EspSerial Serial1

#include <SoftwareSerial.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
char auth[] = "guwbokZWg1UNAuyUcXYtk_GI3s2ck2R2";

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

SoftwareSerial EspSerial(2, 3); // RX, TX of ESP8266

String s;    //to store incoming text ingredient

BLYNK_WRITE(V0)     // it will run every time a string is sent by Blynk app
  Serial.print(s); //string sent by Blynk app will be printed on Serial Monitor
    digitalWrite(7, LOW);       //Pin 7 has been set in setup()
  else if(s=="off")
    digitalWrite(7, HIGH);
    Serial.print("Say on or off");
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

void setup()
  // Debug console
  pinMode(7,OUTPUT);       //Pin 7 is set to output
  // Set ESP8266 baud rate
  Blynk.begin(auth, wifi, ssid, pass);

void loop()

The aim of my project is to be able to make a switch which can be controlled by google assistant…:
I’ve used

  1. 5V relay
  2. esp8226
  3. arduino UNO
    I’ve created an IFTTT Applet and blynk project in the app.

This line of code shouldn’t be in your sketch, as the Uno doesn’t have a Serial1 port.

What type of ESP8266 board are you using, and how have you wired that and the Uno together?


Thanks for replying Pete!!!
ESP8266 wifi board is what I’ve used
Connections between Arduino,ESP8266 and relay module:

Arduino <-----------------------------------------------> ESP/Relay

Pin 7 ------------------------------------------------------- IN of relay

Pin 2 -------------------------------------------------- RX pin of ESP

Pin 3 -------------------------------------------------- TX pin of ESP

RESET-------------------------------------------- RESET pin of ESP

GND 1 -------------------------------------------- Ground pin of ESP

GND 2 -------------------------------------------- Ground pin of relay

+3.3V ------------------------------------------------------ Vcc of ESP

+5V ------------------------------------------------------ Vcc of relay

With serial communications you always connect Rx —> Tx and vice versa, so pin 2 of your Uno (SoftwareSerial Rx) needs to go to Tx on your ESP-01

Your connection of the two Reset pins is a new one on me and makes no sense to me, but you seems to be missing a connection between CH-PD on the ESP-01 and 3v3


I was initially guided by : … so could you please help me with this one…

And 3v3 pin of the esp is connected to 5V port of the UNO

I think you should discuss that with the author of the instructable.


Well thanks for the advice Pete!
But since he isn’t responding can we find out our own version of the solution for this problem…

I’ve given you my thoughts on what’s wrong, but your response was “but the guide I’m following says to do this instead…”


Oh! Okay Gotcha Thanks!
Have a Nice day!