Skip to content
BENIBIX Learn

Inter-Integrated Circuit (I2C)

Development🔌 Embedded & IoTDevice Communication

Also known as I2C, I²C, IIC, TWI, Two-Wire Interface

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

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.

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.

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.
I2C, in the middle: many parts share two wires and answer by address.

Common mistake

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

Key takeaways

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

Compare