2

I cannot find the answer from official document and also surprised no one asked the same question.

What is the default baud rates if I didn't call Serial.begin?

1 Answer 1

7

There is no default baud rate. When the sketch starts, the serial port is disabled (thus non-functional). Calling Serial.begin() enables the port.

2
  • Really appreciate! I just found even though I use Serial.println in loop function. The TX LED light won't blink unless I added Serial.begin in setup function. May 8, 2022 at 8:52
  • 1
    Just for completeness: On some alternative boards that are also compatible with Arduino IDE (like e.g. ESP8266 and ESP32 boards), some information is transmitted on serial before your sketch even starts. The default baud rate then is dependent on the chip and/or board.
    – orithena
    May 9, 2022 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.