Free shipping on orders over $99 · Prices locked while stock lasts
SupplyDealBroker

Components

I2C vs SPI vs UART: Choosing a Communication Protocol

The three most common ways microcontrollers talk to sensors, explained simply.

· 3 min read

Key takeaways

  • I2C uses two wires and supports many devices.
  • SPI is fastest but needs more pins.
  • UART is simple point-to-point serial.

I2C

Two wires (SDA and SCL) connect many sensors, each with an address. Great for low-speed sensors.

SPI

Uses clock, data in, data out and a chip-select per device. Ideal for displays and SD cards.

UART

Two wires, one device. Common for GPS, LiDAR and debug consoles.

Frequently asked questions

Products mentioned in this article

Micro LiDAR ToF Sensor
Hot deal-43%

Components

Micro LiDAR ToF Sensor

$33.60

$59.00

Only 5 left at this price

STM32F411 Black Pill (5-pack)
-41%

Components

STM32F411 Black Pill (5-pack)

$26.40

$45.00

Shop the category:Components →

Keep reading