[SOLVED] Blynk with esp8266 arduino uno help

i am getting this error
“Failed to disable echo”

I have tried to search the internet and i found solutions online but none of them seems to work
I flashed the ESp8266 with the 0.22 firmware:

AT+GMR

AT version:0.22.0.0(Mar 20 2015 10:04:26)
SDK version:1.0.0
compile time:Mar 20 2015 11:00:32

AT commands works just fine i just cant connect to the internet i think from the ESP. ( i am using a hotspot from a mobile phone)

My code is:

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Android AP";
char pass[] = "12345678";

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

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

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

void setup()
{
  // Debug console
  Serial.begin(115200);

  delay(10);

  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
}

void loop()
{
  Blynk.run();
}

I did connect the ESP8266 like this
Vcc -> 3.3V
CH_PD ->3.3V
RST -> 3.3V
GPIO 0 -> 3.3V via a resistor 2k
GPIO 2 -> 3.3V via a resistor 2k
GND -> GND
Tx -> Tx
Rx -> Rx

I tried to connect it like the tutorial on the web but none of them worked with at commands, so i connectet it like this

I am just trying to get this working thanks

115200 is almost certainly way to fast for the super slow Uno.

Start with 9600 but there is also an AT command to set the ESP’s baud rate to the same 9600.

The 115200 you see in the sketch is for decent Arduino’s like the Mega that has additional hardware serial pins.

I did now change to 9600 with AT commands, i was also now succeding in connectet the ESP8266 to the phone only using AT commands, but when i run this code

my error is still

[603] Connecting to AndroidAP
[1619] Failed to disable Echo

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

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

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

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

// Your ESP8266 baud rate:
 #define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);

void setup()
{
  // Debug console
  Serial.begin(9600);

  delay(10);

  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
}

void loop()
{
  Blynk.run();
}

I also now connected the esp8266 like this and got at commands working
Vcc -> 3.3V
CH_PD ->3.3V
RST -> not connectet
GPIO 0 -> not connectet
GPIO 2 ->not connectet
GND -> GND
Tx -> Tx
Rx -> Rx

You changed the wrong baud.

I added two more backticks to your code, you need three to make it look nice :wink:

I uploaded the wrong code sorry, fixed now
take a look at it now

Are you using pin 0 and 1 for Software serial? That’s not gonna work because that is the hardware serial port on the uno. Try pins 2 and 3 :slight_smile:

1 Like

I got it to work thank you very much

One of the quickest “failed to disable echo” fixes on record, well done @Mark_Rohrbeck

2 Likes

Hey Costas, now all this works just fine, now i have to read some sensor values and get them in to the blynk app, its a ntc resistor and a LRD. This is a final year student project, but this part i really need help for. I would love to pay you for helping me if you want that, it would only require half an hour or less of your time

Thanks - Mark

@Mark_Rohrbeck student grants must be better than they were in my day :slight_smile:
I’ll PM my IBAN and Swift code for my Swiss Bank account.
Do you know the hourly rate of a good coder?

1 Like

I am not asking for more than 30 minutes of your time on skype or so, i could paypal you the money, or IBAN and swift, does not matter to me? how much do you want for it?

I have sent you a PM.

Maybe I should become a University Lecturer in Blynkification :slight_smile:

2 Likes

@Costas, fyi, even the chinese fake arudino unos what i use all work perfectly with 115200 baud. at least this is what i use in all my projects with arduinos for serial monitor on pc. what it matters, a good quality and not too long usb cable.

(also, if you look carefully, when uploading sketch with verbose output, the default baud rate listed is 115200)

@wanek software serial baud between Arduino and ESP not Arduino and PC.

ah, ok. i missed that. my bad!