# Universal Serial Bus (USB)

> A cable and plug that join a board to a computer. It carries power and data.

**Field:** Software Development  
**Category:** Embedded & IoT  
**Also known as:** USB, USB-C, USB Cable, USB Port

## Think of it like

It is like one plug that fits many things. The same hole charges, sends files and talks.

## Definition

USB is the standard plug and cable that joins devices to a computer. One cable can carry power and data at the same time. It joins keyboards, drives, phones and small boards like an Arduino. On a board, USB is how you send new code to the chip and read what it prints. USB-C is the newer plug that fits either way up.

## Example

Emma plugs her ESP32 into her laptop with a USB cable. The same cable powers the board and carries her code onto it.

## Why it matters

It is how most boards get power and code while you build. A bad cable is a common reason a board is not found.

## Common mistake

Using a cable that only charges. Some cheap cables carry power but no data, so the computer never sees the board.

## Three principles

- **Power and data.** One cable carries both at once.
- **Code goes in.** New firmware reaches the board this way.
- **Output comes back.** What the board prints shows on your laptop.

## Related terms

- [Serial Port (UART)](https://learn.benibix.com/term/development/uart)
- [Firmware](https://learn.benibix.com/term/development/firmware)
- [Arduino](https://learn.benibix.com/term/development/arduino)
- [ESP32 Microcontroller](https://learn.benibix.com/term/development/esp32)

![Two rows. The top row: your code goes to a compiler on your laptop, which makes one firmware file, which travels over a USB cable into the chip's flash memory. The bottom row shows an update over the air with two slots, so a failed update can go back to the old version.](https://learn.benibix.com/diagrams/em-firmware-flash.svg)

---

Source: https://learn.benibix.com/term/development/usb
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.
