# Inter-Integrated Circuit (I2C)

> Two shared wires that let one chip talk to many parts. Each has its own address.

**Field:** Software Development  
**Category:** Embedded & IoT  
**Also known as:** I2C, I²C, IIC, TWI, Two-Wire Interface

## Think of it like

It is like a class where many kids share one phone line. You say a name first, and only that kid answers.

## Definition

I2C is a way for one chip to talk to many small parts over just two shared wires. One wire carries the data, called SDA. The other carries the clock, called SCL. Each part on the wires has its own address. The main chip calls an address, and only that part answers.

## Example

On an Arduino Uno, I2C uses pins A4 and A5. Jack hangs a screen and a heat sensor on the same two wires.

## Why it matters

Many sensors share two pins. That leaves the other pins free on a small board.

## Common mistake

Putting two parts with the same address on one bus. Both answer at once and the data is garbage.

## Three principles

- **Two wires.** Data and clock, shared by all.
- **Addresses.** Each part has its own number.
- **Many parts.** One bus serves many sensors.

## Related terms

- [Serial Peripheral Interface (SPI)](https://learn.benibix.com/term/development/spi)
- [Serial Port (UART)](https://learn.benibix.com/term/development/uart)
- [Microcontroller (MCU)](https://learn.benibix.com/term/development/microcontroller)
- [General-Purpose Input/Output (GPIO)](https://learn.benibix.com/term/development/gpio)

## Told apart from

- [I2C vs SPI](https://learn.benibix.com/compare/i2c-vs-spi): People think I2C and SPI are two names for one way to wire up a sensor. Both link one main chip to many parts, but in different ways. I2C uses two shared wires and calls each part by its address. SPI picks each part with its own select wire and moves data faster. Use I2C to save pins, and SPI for screens and memory cards.

![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/i2c
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.
