# Serial Port (UART)

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

**Field:** Software Development  
**Category:** Embedded & IoT  
**Also known as:** UART, Universal Asynchronous Receiver-Transmitter, Serial Communication, Baud Rate, Serial Monitor

## Think of it like

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

## 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

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

## Example code

```cpp
Serial.begin(9600);
Serial.println(analogRead(A0));
```

Start the serial link at 9600 baud, then send one reading to the laptop.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Inter-Integrated Circuit (I2C)](https://learn.benibix.com/term/development/i2c)
- [Serial Peripheral Interface (SPI)](https://learn.benibix.com/term/development/spi)
- [Microcontroller (MCU)](https://learn.benibix.com/term/development/microcontroller)
- [Arduino](https://learn.benibix.com/term/development/arduino)
- [Byte](https://learn.benibix.com/term/development/byte)

![Three panels. UART: two devices joined by two wires that cross, transmit to receive, with no clock and an agreed speed. I2C: two shared lines, data and clock, with three small chips hanging off them, each with its own address. SPI, lit up: one main chip with a clock line, a data out line and a data in line shared by two parts, plus a separate select wire to each part.](https://learn.benibix.com/diagrams/dev4-device-buses.svg)

---

Source: https://learn.benibix.com/term/development/uart
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
