ESP8226 sending nonsense to serial monitor

I was testing a ESP8266 D1 mini's serial com's and getting nonsense, though my baud matched my code.

Finally got it working, by mismatching the speed, with the baud set to 115200 and the ESP8226 set to the following:
Serial.begin(74880);

Not sure what's going on here, or if this is a weird bug. Figured I'd put a post up here in case anyone else comes across this confusing situation.

on powerup or reset the ESP8266 transmits some bootup information at 74880 baud which you can ignore - it will then switch to what your setup() is, e.g.

void setup() {
  Serial.begin(115200);
  Serial.print("D1 mini Pro blink pin D0 = GPIO");

if Serial Monitor is 115200baud prints a line of garbage then "D1 mini Pro blink pin D0 = GPIO"

1 Like

Thanks for your response.

It doesn't seem to print anything during start-up, only what I programmed in.

it does start off garbled if I don't add a delay after serial begins.

Below is my code.


void setup() {
  Serial.begin(74880);
  delay(1000);
  Serial.println("STARTING");
}

void loop() {
  Serial.println("HELLO WORLD");
  delay(1000);
}

This is only readable if the baud in Arduino IDE is set to 115200.

If I load the same code onto my ESP32, is works as expected and is readable with the baud set to 74880

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.