3

Hello guys I have my ESP8266 connected to my Arduino. Then I typed in AT in the serial monitor. It confirmed this command with OK. After that I typed in AT+UART=9600, 8, 1, 0, 0 which gave me the response ERROR. Then I googled what I could do, which told me that I should try change the baud rate permanently with the command AT+IPR=9600. I did this but I got no response. After that I wondered if everything was ok so I typed in AT. No response. Now I'm a little bit sad because everything started to be great but I don't know how I can fix the whole problem. I also tried to upgrade its firmware with XTCOM Utility but it says it can't connect.

#include <SoftwareSerial.h>

SoftwareSerial ESPserial(2, 3); // RX | TX

void setup() {
  Serial.begin(115200); // communication with the host computer
  
  //while (!Serial) { ; }
  
  // Start the software serial for communication with the ESP8266
  
  ESPserial.begin(115200);
  
  Serial.println("");
  
  Serial.println("Remember to to set Both NL & CR in the serial monitor.");
  
  Serial.println("Ready");
  
  Serial.println("");

}

void loop() {
  // listen for communication from the ESP8266 and then write it to the serial monitor
  
  if ( ESPserial.available() ) { Serial.write( ESPserial.read() ); }
  
  // listen for user input and send it to the ESP8266
  
  if ( Serial.available() ) { ESPserial.write( Serial.read() ); }
}

This is my code. I tried it with both 9600 and 115200 but if I use 115200 the serial monitor just shows some garbage signs. It's kind of frustrating because I can't even interact with the serial monitor as my typed commands don't show up anymore. Do you have any idea how I could fix this problem?

6
  • did you use ESPserial.begin(9600);? Commented Sep 12, 2021 at 15:15
  • 1
    Yes I tried that but it still gives me the same problem. It didn't gave me the rubbish like with 115200 but it still doesn't respond Commented Sep 12, 2021 at 15:53
  • 1
    It is quite common for changing the baud rate to cripple an ESP-01. The only cure is to reflash it. Commented Sep 12, 2021 at 18:17
  • If you feel lucky you can play around with different baud rates and see if you find one. The part has a default baud but I do not remember it but it is in the literature. Commented Sep 12, 2021 at 20:17
  • Alright so how do I reflash it? Commented Sep 13, 2021 at 13:20

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.