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?

Juraj
18.3k4 gold badges31 silver badges49 bronze badges
asked May 8, 2022 at 8:45

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.

answered May 8, 2022 at 8:49
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. Commented 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. Commented May 9, 2022 at 8:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.