And if you enter AT+UART_DEF=115200,8,1,0,0
this should set it to that BAUD rate, which is what you had your sketch set for.
ΠΠΊ ΠΏΠΎΠΏΡΠΎΠ±ΡΡ. ΠΠΎ Π½Π°ΡΠΊΠΎΠ»ΡΠΊΠΎ Ρ ΠΏΠΎΠ½ΡΠ» ΡΡΠΎ ESP ΡΠΆΠ΅ Π½Π°ΡΡΡΠΎΠ΅Π½ Π½Π° ΡΠΊΠΎΡΠΎΡΡΡ 115200 ΡΠ°ΠΊ ΠΊΠ°ΠΊ ΠΊΠΎΠΌΠ°Π½Π΄Ρ Ρ Π΅ΠΌΡ ΠΎΡΠΏΡΠ°Π²Π»ΡΡ Π½Π° ΡΠΊΠΎΡΠΎΡΡΠΈ 115200.
Oh, I thought you had it set for 74800 for some reason.
I guess you can progressively lower the BAUD in both ESP and sketch until it either works or you reach 9600, whichever comes first.
Not sure what else to suggest as I am not really understanding your hardware setup.
Π ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ ΠΏΡΠΎΠ±Π»Π΅ΠΌΠ° Ρ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΎΠΉ? ΠΠΎΠΆΠ΅Ρ ΠΊΠ°ΠΊΠΈΠ΅ ΡΠΎ ΠΊΠΎΠΌΠ°Π½Π΄Ρ Π±ΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠΈ ΠΎΠ½ Π½Π΅ ΠΏΠΎΠ½ΠΈΠΌΠ°Π΅Ρ? ΠΈΠ»ΠΈ Π½Π΅ ΡΡΠΏΠ΅Π²Π°Π΅Ρ ΠΏΠΎΠ½ΡΡΡ? ΠΡ Π·Π½Π°Π΅ΡΠ΅ Ρ ΠΊΠ°ΠΊΠΎΠΉ ΠΏΡΠΎΡΠΈΠ²ΠΊΠΎΠΉ Blynk ΡΠΎΡΠ½ΠΎ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ?
No⦠it works well for others using ESP as shield⦠with many different AT firmware versions that I have seen.
It is a basic serial communication, match the TX/RX pins, voltages, BAUD and it just works.
Π ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΠΊ ESP
ATMEGA ESP
TX - RX
RX - TX
Π’Π°ΠΊ?
Your picture shows what looks a custom setupβ¦ I have mentioned this before, but since nothing else seems to be workingβ¦
Are you sure you are using the correct pins for Serial2?
Are you connecting the ATMEGAβs 5v TX directly the the ESPβs 3.3v RX?
Can you confirm Arduino/ESP connection with any other Arduino sketch? For example I use this one on my MEGA when i want to make adjustments to the ESP-01 connected to it (I use Serial1β¦ adjust accordingly)
/*
Accessing AT commands on ESP8266-01 with integrated WiFi login.
ESP connected to Serial1 on Mega
AT commands via IDE Serial monitor.
*/
// ===== VOID SETUP LOOP =====
void setup()
{
Serial.begin(115200); // Set IDE Monitor baud rate
Serial1.begin(115200); // Set ESP8266 baud rate
delay(10);
Serial1.println("AT+CIFSR"); // just displays network connection IP and MAC so I know it is online.
}
void loop()
{
// read from port 1, send to port 0:
if (Serial1.available()) {
int inByte = Serial1.read();
Serial.write(inByte);
}
// read from port 0, send to port 1:
if (Serial.available()) {
int inByte = Serial.read();
Serial1.write(inByte);
}
}
Π― ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ:
Serial1 - max485
Serial2 - ESP
Serial3 - none
Serial4 - none
ΠΠ° ΠΏΡΠ΅Π΄ΡΠ΄ΡΡΠ΅ΠΉ Π²Π΅ΡΡΠΈΠΈ ΠΏΠ»Π°ΡΡ Π²ΡΠ΅ ΡΠ°Π±ΠΎΡΠ°Π»ΠΎ. ΠΠΠΊΠ°ΠΊΠΈΡ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ Ρ Π½Π΅ Π²Π½ΠΎΡΠΈΠ». Π‘ Π΄ΡΡΠ³ΠΎΠ³ΠΎ ΠΏΠΎΡΡΠ° ΡΠΎΠΆΠ΅ Π½Π΅ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ. ΠΡΠ΄Π°Π΅Ρ ΡΠΎΠΆΠ΅ ΡΠ°ΠΌΠΎΠ΅.
ΠΠΎΠ³Π΄Π° Ρ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ°Ρ ESP ΠΊ ATMEGA, ΡΠΎ ESP ΡΡ ΠΎΠ΄ΠΈΡ Π² ΠΎΡΠΈΠ±ΠΊΡ. Π Π½Π° ΠΠ’ ΠΊΠΎΠΌΠ°Π½Π΄Ρ ΠΎΡΠ²Π΅ΡΠ°Π΅Ρ ERORR. ΠΠΎΡΠ΅ΠΌΡ ΡΠ°ΠΊΠΎΠ΅ ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ?
Can you expand on this statement⦠are you using same Blynk sketch or something different? What error? Do you have serial monitor info you can show
Π‘ΠΊΠ΅ΡΡ ΠΎΠ΄ΠΈΠ½ ΠΈ ΡΠΎΡ ΠΆΠ΅ Π²ΠΎΡ ΠΎΠ½:
#define BLYNK_PRINT Serial3
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// You should get Auth Token in the Blynk App.
char auth[] = "123"; //ΠΠ»ΡΡ Π΄Π»Ρ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΡ ΠΊ WiFi
char ssid[] = "123"; //ΠΠΎΠ³ΠΈΠ½ Π΄Π»Ρ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΡ ΠΊ WiFi
char pass[] = "123"; //ΠΠ°ΡΠΎΠ»Ρ Π΄Π»Ρ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΡ ΠΊ WiFi
#define EspSerial Serial2
#define ESP8266_BAUD 115200
ESP8266 wifi(&EspSerial);
void setup()
{
pinMode(12, OUTPUT);
Serial3.begin(9600);
delay(10);
EspSerial.begin(ESP8266_BAUD);
Blynk.begin(auth, wifi, ssid, pass);
}
void loop(){
Blynk.run();}
Please remember to format posted codeβ¦
As for whatever is wrong,I have no further answers regarding the Blynk connection⦠it looks correct and should work as long at he physical, voltage, BAUD etc. stuff is fine. So is the AT version near as I can tell.
Still waiting your clarification on the results of other non-Blynk sketches⦠do they connect or not?
ΠΠ°ΠΊΠΈΠ΅ Ρ ΠΌΠΎΠ³Ρ Π΄ΡΡΠ³ΠΈΠ΅ ΡΡΠΊΠΈΠ·Ρ ΠΏΠΎΠΏΡΠΎΠ±ΠΎΠ²Π°ΡΡ?
I just posted one above⦠Google might have others.
ΠΡ ΠΎΠ± ΡΡΠΎΠΌ?
/*
Accessing AT commands on ESP8266-01 with integrated WiFi login.
ESP connected to Serial1 on Mega
AT commands via IDE Serial monitor.
*/
// ===== VOID SETUP LOOP =====
void setup()
{
Serial.begin(115200); // Set IDE Monitor baud rate
Serial1.begin(115200); // Set ESP8266 baud rate
delay(10);
Serial1.println("AT+CIFSR"); // just displays network connection IP and MAC so I know it is online.
}
void loop()
{
// read from port 1, send to port 0:
if (Serial1.available()) {
int inByte = Serial1.read();
Serial.write(inByte);
}
// read from port 0, send to port 1:
if (Serial.available()) {
int inByte = Serial.read();
Serial1.write(inByte);
}
}
It is the only code i posted in this topic so yesβ¦
As commented, It works with the MEGA and an ESP connected to one of the Hardware Serial ports.
If the connection is good, then it can be used to run AT commands, such as for setting BAUD rates and such. Or just as a simple βThe connection to the ESP is OKβ test
ΠΠΊ ΠΏΠΎΠΏΡΠΎΠ±ΡΡ. ΠΠΎ Π² ΡΠ΅Π»ΠΎΠΌ ΠΏΡΠΎΡΠΈΠ²ΠΊΠ° ΠΌΠΎΠΆΠ΅Ρ Π΄Π°Π²Π°ΡΡ ΡΠ°ΠΊΠΎΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ ΠΊΠ°ΠΊ ESP is not responding
This is a Blynk message (from the Blynk Library, running on the Mega, not the ESP)β¦ and that is literally what it means. As for the whysβ¦ wellβ¦