Hello guys!
My name is simone, I have recently descovered blynk. I need your help for my projet.
I want to connect my arduino UNO board to esp8266-01 but, when i try to connect esp8266 to my wi-fi network i have connection problems: “Failed to disable echo” but I can not understand why. The firmware of ESP is:
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
Try switching Tx/Rx wires. Also software serial is not the best. Do the baudrates on the ESP and Arduino match? E.g. are they both 9600? (I wouldn’t go any higher with software serial anyway).
#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[] = "xxxxxxxxxxxxxxx";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxxxxxxxx";
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
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!
}
Same, you hook up the Tx from ESP to the Rx of the convertor. However, the ESP uses 3.3v logic, so make sure your convertor uses that too!!! If it uses 5v logic you may damage your ESP.
To be honest, all things considered, you are better off buying a Wemos D1 Mini. It has all the things built in, you can hook up a USB cable, program it with the Arduino IDE and never worry about that stupid ESP connections again. I use them all the time.
Awesome, that means you ESP is working fine! I assume you entered the same baudrate in the Arduino as now in the serial monitor for connecting to the ESP.
And yes, the Wemos is fully compatible, but soooo much easier to work with than the standalone ESP.
Are you still running Windows 3.1? No, that’s the reason to update.
Close the IDE. Copy and paste the 0.4.6 libraries to a new location for safe keeping. Delete the old 0.4.6 libraries. Copy and paste the 0.4.8 libraries to the same location as the original 0.4.6 libraries.[quote=“smone, post:18, topic:15283”]
after upgrade i’ll to change something?
[/quote]
Yes you will still have work to do but you will benefit from a nice new error message rather than the “failed to disable echo” message.