BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Arduino uno+esp8266 not connecting to cloud server


#1

I am trying to setup my arduino uno+esp8266 shield
Once i upload my code to the arduino it looks like it is connected but when i check my android phone app it says “wasnt online yet”

here is my code

#define BLYNK_PRINT Serial


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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Elion-48A759";
char pass[] = "653B4EBB98";

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

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

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

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,com", 8442);
  //Blynk,begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8442);
}

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!
}

and here is what it says in the serial monitor after uploading the code

[9] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.5.2 on Arduino Uno

[516] Connecting to Elion-48A759
AT
[1527] ESP is not responding
AT+CIPCLOSE=1
AT+CIPCLOSE=1
AT+CIPSTART=1,"TCP","blynk-cloud.com",80
AT+CIPCLOSE=1
AT+CIPCLOSE=1
AT+CIPSTART=1,"TCP","blynk-cloud.com",80

#2

I fixed you post formatting, as per the directions you erased when posting here :wink:


#3

Search this site for keywords like UNO ESP Shield… every conceivable solution has already been mentioned in multiple topics.

For example, don’t use the primary serial port for the shield… or you will have problems connecting, programming and debugging as they all try to use the same port. Use SoftwareSerial as recommended in the comments for the UNO