TechBuzzPro

Serial Monitor in Arduino: What It Is and How to Use It

· 6 min read · Windows & PC

In this article
  1. Background: Where the Term Comes From
  2. How the Serial Monitor Works
  3. What You Actually Use It For
  4. Step by Step: Opening and Using It
  5. Common Problems and Fixes
  6. Serial Monitor vs. Serial Plotter and Other Tools
  7. Frequently Asked Questions
  8. Practical Tips

The Serial Monitor is a built-in tool in the Arduino IDE that opens a two-way text channel between your computer and the Arduino board over USB. It lets you see messages your sketch prints with Serial.print() and send text back to the board with Serial.read(). In short: it is the simplest way to debug an Arduino program and to interact with it while it runs.

Background: Where the Term Comes From

The word "serial" refers to serial communication, the method of sending data one bit at a time over a single wire pair. Arduino boards have used a hardware serial port (UART) since the earliest designs. On the classic Uno, that port is shared with the USB connection through a separate USB-to-serial chip, so the same port that uploads your sketch can also carry text to and from the Serial Monitor. The term "Serial Monitor" is standard, not slang: it is the official name used in the Arduino IDE and in Arduino's own documentation. It is also sometimes called the serial console or serial terminal, but "Serial Monitor" is the name you will see in the software.

The tool is not a separate program. It is a panel inside the Arduino IDE. In the current IDE it opens with the magnifying-glass icon in the top-right corner or with the keyboard shortcut Ctrl+Shift+M on Windows and Linux (Cmd+Shift+M on macOS). Menu labels can differ slightly between IDE versions, so if you cannot find it, look for the Serial Monitor icon or the Tools menu.

How the Serial Monitor Works

When you open the Serial Monitor, the IDE connects to the board's serial port at a chosen baud rate. The baud rate is the speed of the link, measured in bits per second. Both ends must use the same value. In your sketch you set it once in setup():

void setup() {
  Serial.begin(9600);
}

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

Then you select 9600 baud in the Serial Monitor's dropdown. If the dropdown says a different speed, you will see readable text mixed with garbage characters, or nothing at all. Common speeds are 9600 and 115200; 115200 is often used because it is faster and works well for boards that reset quickly. The board is usually reset when the Serial Monitor opens, so your sketch starts again from the top.

Data flows in both directions. Serial.print() and Serial.println() send text to the monitor. The monitor's input field sends text to the board, which your sketch reads with Serial.read(), Serial.readString() or Serial.parseInt(). This makes the monitor useful for simple commands, such as typing a number to set a delay or a letter to switch a mode.

What You Actually Use It For

  • Checking that a sketch reached a certain point, by printing a label like "sensor read" or "loop start".
  • Printing sensor values to see whether a reading is plausible before you build logic around it.
  • Watching for error conditions, such as a failed sensor read or an unexpected value.
  • Sending simple commands to the board, such as a character that starts or stops a motor routine.
  • Confirming the baud rate and that the correct port is selected.

A common misconception is that the Serial Monitor is a full terminal emulator or a general-purpose serial tool. It is deliberately simple: it shows text, accepts text, and offers a few display options such as autoscroll and a timestamp toggle in newer IDE versions. It does not plot graphs (the Serial Plotter is a separate tool) and it does not save a log file by default. For long recordings or binary data, a dedicated serial terminal program is a better fit.

Step by Step: Opening and Using It

  1. Connect the board with a USB cable that carries data, not a charge-only cable.
  2. In the Arduino IDE, select the correct board under Tools > Board and the correct port under Tools > Port. On Windows the port usually appears as COM followed by a number; on macOS and Linux it looks like /dev/cu.usbmodem... or /dev/ttyACM0.
  3. Add Serial.begin(9600); (or another speed) to setup().
  4. Add Serial.print() or Serial.println() calls where you want output. Use println when you want each message on its own line.
  5. Upload the sketch.
  6. Open the Serial Monitor and set the baud dropdown to the same number you used in Serial.begin().
  7. Type into the input field and press Enter or click Send to send text to the board.

If you see nothing, the first checks are the baud rate, the selected port, and whether the sketch actually contains a Serial.begin() call. A missing Serial.begin() is one of the most common causes of a blank monitor.

Common Problems and Fixes

  • Garbage characters: the baud rate in the monitor does not match Serial.begin(). Set both to the same value.
  • Nothing appears: wrong port selected, board not connected, or Serial.begin() missing from setup().
  • Upload fails while the monitor is open: on boards with a single shared serial port, the monitor can hold the port. Close it, upload, then reopen it.
  • Text appears only once: the sketch may be stuck in a loop or waiting on a condition. Add prints before and after the suspected line to narrow it down.
  • Input is ignored: the sketch must actually read from Serial; typing text does nothing unless your code calls a read function.

On boards with more than one serial port, such as the Mega, you can use Serial1 and others for external devices while Serial stays connected to the monitor. On boards where the USB port is handled by the main microcontroller, opening the monitor may reset the board; that is normal behavior, not a fault.

Serial Monitor vs. Serial Plotter and Other Tools

The Serial Plotter, also in the Arduino IDE, draws numeric values as a graph over time. Use the monitor for text and commands; use the plotter when you want to see a waveform or trend. A general-purpose serial terminal can log to a file, send binary data, and handle line endings more flexibly, but it requires you to configure the port and baud rate yourself. The Serial Monitor is the quickest option for a beginner because it is already part of the IDE.

Frequently Asked Questions

What baud rate should I use?

Use the same number in the monitor and in Serial.begin(). 9600 is a common default; 115200 is common on faster boards. If the values differ, you will see unreadable characters.

Why does my Serial Monitor show nothing?

Check three things first: the correct port is selected, the baud rate matches, and the sketch calls Serial.begin(). Also confirm the USB cable carries data.

Can I send data from the Serial Monitor to the board?

Yes. Type in the input field and press Enter or click Send. Your sketch must read it with a Serial read function for anything to happen.

Does opening the Serial Monitor reset the board?

On many boards it does, because the USB connection toggles the reset line. The sketch restarts, which is why you often see startup messages again.

Is the Serial Monitor the same as the Serial Plotter?

No. The monitor shows text and accepts input; the plotter graphs numeric values over time. They are separate tools in the IDE.

Practical Tips

Print a short startup line in setup() so you can tell when the board has reset. Use Serial.println() rather than Serial.print() for messages you want on separate lines. Avoid printing inside very tight loops without a delay, because the output can flood the monitor and slow the sketch. When you are done debugging, remove or comment out the print statements if timing matters, since serial output itself takes time.