Hi,
I am trying to connect my esp with arduino uno. My firmware version is showing
AT+GMR
AT version:0.50.0.0(Sep 18 2015 20:55:38)
SDK version:1.4.0
compile time:Sep 18 2015 21:32:07
OK
But, after uploading the code and powering esp ,it is showing
19]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/ v0.5.4 on Arduino Uno
[527] Connecting to Huda
AT
[1537] ESP is not responding
AT+CIPCLOSE=1
AT+CIPCLOSE=1
AT+CIPSTART=1,“TCP”,“blynk-cloud.com”,80
AT+CIPCLOSE=1
AT+CIPCLOSE=1
Tried to connect RX/TX with voltage divider and also direct. and my ESP is powering with external 3.3 V source. I just use RX/TX of arduino to ESP and TX/RX.
Below 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[] = "483be2aca4d94569af1d945e027836e2";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Huda";
char pass[] = "70245815";
// 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 115200
ESP8266 wifi(&Serial);
void setup()
{
// Debug console
Serial.begin(9600);
delay(10);
// Set ESP8266 baud rate
Serial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
}
void loop()
{
Blynk.run();
}
I’d suggest to put the Debug or ESP on a soft-serial interface - as indicated in the comments in your example code - to have two independent interfaces.
You can’t have the mighty Serial Monitor with the connection method you have chosen without additional hardware i.e. USB2TTL adaptor.
So if you don’t have an adaptor you have to work “blind” i.e. without Serial Monitor.
Look at the narrative in the sketch regarding Mega’s and Uno’s etc.
hey, i am able to interface with serial monitor, as i put the data’s which are shown in the monitor. I have a CP2102 usb to ttl, which i used for flash. Monitor is showing the communication, but esp is not responding. Is my firmware version okay or could you suggest any modification on sketch
//Comment this out to disable prints and save space */
#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[] = "483be2aca4d94569af1d945e027836e2";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Huda";
char pass[] = "70245815";
// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1
// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial Serial1(2, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200
ESP8266 wifi(&Serial);
void setup()
{
// Debug console
Serial.begin(9600);
Serial1.begin(115200);
delay(10);
// Set ESP8266 baud rate
Serial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
}
void loop()
{
Blynk.run();
}
Software Serial isn’t capable of reliability supporting communication at that high a baud rate. You should use 9600.
But, your ESP needs to be configured to talk to your ESP at the same baud rate. This needs to be done via an AT command.
There is lots of information about this on the forum, so I’d suggest that you search for “Arduino ESP-01” and do your research.