Skip to content
BENIBIX Learn

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.

Development🔌 Embedded & IoT

Inter-Integrated Circuit (I2C)

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

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.
Full entry
Development🔌 Embedded & IoT

Serial Peripheral Interface (SPI)

A fast link where one chip picks a part with its own wire, then swaps data.

SPI is a fast way for one main chip to swap data with nearby parts. It uses a clock wire, one data wire each way, and a select wire for each part. The main chip pulls one part's select wire to pick it. Then data flows both ways at once, in time with the clock. It is faster than I2C but needs more wires.

Example
A small colour screen and an SD card share SPI wires on Lucy's board. Each one has its own select wire.
Why it matters
Screens and memory cards need lots of data quickly. SPI gives them the speed.
Full entry

In one line

Inter-Integrated Circuit (I2C)
Two shared wires that let one chip talk to many parts. Each has its own address.
Serial Peripheral Interface (SPI)
A fast link where one chip picks a part with its own wire, then swaps data.