Hello! I am building a new house and i have arduino mega with 36 relays controlling the house form bluetooth with my smartphone but i decided to upgrade it and i want to control the house from the internet so i perchased esp8266 and arduino uno separately to try the new module to see how it works.
So lets hop to the problem i am trying to connect arduino to blynk with esp8266 as wifi shild but i get the same error every time. ESP8266 responds to AT commands and i can coonect it to my internet successfully i also have changed the baud rate to 9600 so it can comunicate with the arduino i have installed the latest librarys and used the code from blynk example fiiling all my information. So if the esp can connect to my internet and responds to AT commands it is working and it is wired properly so the problem has to be with my code
#define BLYNK_TEMPLATE_ID "TMPL4baeWAra"
#define BLYNK_TEMPLATE_NAME "IOT HOME"
#define BLYNK_AUTH_TOKEN "**********************"
#define BLYNK_DEBUG
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
char ssid[] = "Anchevi";
char pass[] = "7203074460";
// 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 9600
ESP8266 wifi(&EspSerial);
void setup()
{
// Debug console
Serial.begin(9600);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass);
// You can also specify server:
// Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}
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!
}
Thats the error i am getting i have tryied with 3 different brand new esp8266 and still the same rasalt and i am fighting with this error 3 months
sorry for my English it is not my first language
17:33:36.510 -> ___ __ __
17:33:36.510 -> / _ )/ /_ _____ / /__
17:33:36.510 -> / _ / / // / _ \/ '_/
17:33:36.510 -> /____/_/\_, /_//_/_/\_\
17:33:36.510 -> /___/ v1.2.0 on Arduino Uno
17:33:36.510 ->
17:33:36.510 -> #StandWithUkraine https://bit.ly/swua
17:33:36.510 ->
17:33:36.510 ->
17:33:37.023 -> [521] Connecting to Anchevi
17:33:38.046 -> [1536] ESP is not responding