Skip to content
BENIBIX Learn

Serial Port (UART)

Development🔌 Embedded & IoTDevice Communication

Also known as UART, Universal Asynchronous Receiver-Transmitter, Serial Communication, Baud Rate, Serial Monitor

A simple two-wire link. It sends data one bit at a time between two devices.

Think of it like

It is like two kids passing notes through two tubes, one for each way.

Example

Emma's Arduino sketch starts serial at 9600 baud. Her laptop opens the serial monitor at the same speed and reads the sensor values.

Why it matters

It is how most boards print messages while you build them. When something breaks, this is where you look.

Definition

A UART sends data between two devices one bit at a time over two wires. One wire sends and the other receives, so the wires cross between the two sides. There is no shared clock wire. Both sides agree on a speed, called the baud rate, before they start. It is the simplest way for a board to talk to a computer.

Example code

cpp
Serial.begin(9600);
Serial.println(analogRead(A0));
Start the serial link at 9600 baud, then send one reading to the laptop.
UART, on the left: two wires that cross and no clock.

Common mistake

Setting different speeds on the two sides. The bytes still arrive, but they show as rubbish.

Key takeaways

  1. 1
    Two wires. Send crosses to receive.
  2. 2
    No clock. Both sides agree on a speed.
  3. 3
    One to one. It joins just two devices.