🔌Serial Port (UART)
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
Example code
cpp
Serial.begin(9600);
Serial.println(analogRead(A0));Common mistake
Key takeaways
- 1Two wires. Send crosses to receive.
- 2No clock. Both sides agree on a speed.
- 3One to one. It joins just two devices.