Interface

I2C Pins: SDA and SCL at a Glance

The I2C lines of boards, microcontrollers, sensors and connectors, taken straight from the pinout data.

I2C (Inter-Integrated Circuit, also called IIC or TWI) connects one controller to many devices over just two wires: SDA carries the data and SCL the clock. Both lines are open-drain and need pull-up resistors to VCC, typically 4.7 kΩ at 100 kHz and 2.2 kΩ at 400 kHz. Every device has a 7-bit address, so sensors, EEPROMs, real-time clocks and displays can share the same bus.

The table lists the SDA and SCL pins of every part. On boards such as the Raspberry Pi Pico or the Raspberry Pi 4, the I2C functions can be routed to several GPIOs; the table then shows the first options followed by the number of further pins. Display connectors appear as well: HDMI, DVI and VGA carry the monitor identification (EDID) over the DDC channel, which is electrically an I2C bus.

Watch the voltage when wiring. A 5 V Arduino and a 3.3 V sensor need a level shifter if the pull-ups go to 5 V. Click any part to open the full pinout with all alternate functions and the datasheet.

I2C pins by part

PartSDASCL
Arduino Uno R3Arduino13 · A431 · SDA14 · A532 · SCL
Arduino Nano V3Arduino23 · A424 · A5
Arduino Mega 2560 R3Arduino26 · D20 / SDA49 · D20 / SDA25 · D21 / SCL50 · D21 / SCL
Arduino Pro Mini (ATmega328P)SparkFun / Arduino25 · A426 · A5
ESP32 DevKit V1 (38-Pin)Espressif Systems25 · IO2122 · IO22
NodeMCU V2 (ESP8266 / ESP-12E)Espressif Systems18 · D217 · D1
Seeed Studio XIAO ESP32-C3 Development BoardSeeed Studio / Espressif12 · D413 · D5
Raspberry Pi Pico (RP2040)Raspberry Pi Ltd1 · GP04 · GP26 · GP4+92 · GP15 · GP37 · GP5+9
Raspberry Pi Pico W (Wi-Fi & Bluetooth)Raspberry Pi Ltd1 · GP04 · GP26 · GP4+102 · GP15 · GP37 · GP5+9
Raspberry Pi 4 Model BRaspberry Pi Ltd3 · GPIO215 · GPIO2219 · GPIO10+55 · GPIO316 · GPIO2321 · GPIO9+6
Raspberry Pi 5Raspberry Pi Ltd3 · GPIO215 · GPIO2219 · GPIO10+45 · GPIO316 · GPIO2321 · GPIO9+5
STM32F103C8T6 'Blue Pill' BoardSTMicroelectronics / Generic15 · PB717 · PB925 · PB1114 · PB616 · PB826 · PB10
PJRC Teensy 4.0 (ARM Cortex-M7)PJRC24 · 1725 · 182523 · 1626 · 1924
ATmega328P 8-Bit AVR Microcontroller (DIP-28)Microchip / Atmel27 · PC428 · PC5
ATmega328P 8-Bit AVR MicrocontrollerMicrochip / Atmel27 · PC428 · PC5
ATmega32U4 8-Bit Microcontroller with USB (TQFP-44)Microchip / Atmel19 · PD118 · PD0
ATtiny85 8-Bit AVR Microcontroller (DIP-8)Microchip / Atmel5 · AREF/PB07 · PB2
ATtiny84 8-Bit AVR Microcontroller (DIP-14)Microchip / Atmel6 · PA79 · PA4
PIC16F886 28-Pin Flash Microcontroller with nanoWatt (DIP-28)Microchip Technology15 · RC414 · RC3
BME280 Environmental Sensor ModuleBosch Sensortec4 · SDA3 · SCL
BMP280 Digital Barometric Pressure SensorBosch Sensortec4 · SDA3 · SCL
AHT20 Digital Temperature & Humidity SensorASAIR (Guangzhou Aosong Electronics)2 · SDA4 · SCL
SHT31-D Digital Temperature & Humidity SensorSensirion AG4 · SDA3 · SCL
BH1750FVI Digital Ambient Light Sensor (GY-302)ROHM Semiconductor4 · SDA3 · SCL
MPU-6050 6-Axis MotionTracking IMU (GY-521)TDK InvenSense4 · SDA5 · XDA3 · SCL6 · XCL
VL53L0X Time-of-Flight (ToF) Distance SensorSTMicroelectronics4 · SDA3 · SCL
INA219 High-Side Current & Power Sensor ModuleTexas Instruments4 · SDA3 · SCL
INA226 Precision Current/Power MonitorTexas Instruments5 · SDA6 · SCL
ADS1115 16-Bit 4-Channel Precision ADC ModuleTexas Instruments4 · SDA3 · SCL
PCF8591 8-Bit 4-Channel ADC and 1-Channel DAC (I2C)NXP Semiconductors9 · SDA10 · SCL
MCP4725 12-Bit DAC with I2C Interface and EEPROMMicrochip Technology4 · SDA5 · SCL
DS1307 64 x 8 Serial Real-Time Clock (I2C)Maxim Integrated / Analog Devices5 · SDA6 · SCL
DS3231 Extremely Accurate I2C Integrated RTC/TCXO/CrystalMaxim Integrated / Analog Devices15 · SDA16 · SCL
PCF8563 Real-Time Clock/CalendarNXP Semiconductors5 · SDA6 · SCL
MCP23017 16-Bit I/O Expander with I2C InterfaceMicrochip Technology13 · SDA12 · SCL
PCF8574 Remote 8-Bit I/O Expander for I2C BusNXP Semiconductors / Texas Instruments15 · SDA14 · SCL
PCF8575 16-Bit I2C I/O ExpanderNXP Semiconductors23 · SDA22 · SCL
TCA9548A 8-Channel I2C MultiplexerTexas Instruments6 · SD08 · SD110 · SD2+67 · SC09 · SC111 · SC2+6
PCA9685 16-Channel 12-Bit PWM / Servo DriverNXP Semiconductors / Adafruit4 · SDA3 · SCL
SSD1306 0.96" I2C / SPI OLED Display ModuleSolomon Systech / Generic4 · SDA3 · SCL
24LC16B 16Kb I2C Serial EEPROMMicrochip Technology5 · SDA6 · SCL
24LC256 256Kb I2C Compatible 2-Wire Serial EEPROMMicrochip Technology5 · SDA6 · SCL
AT24C32 32-Kbit I2C Serial EEPROMMicrochip / Atmel5 · SDA6 · SCL
HDMI Type-A 19-Pin InterfaceHDMI Forum / HDMI Licensing Administrator16 · SDA15 · SCL
Micro HDMI (Type D) 19-Pin InterfaceHDMI Forum / HDMI Licensing Administrator16 · SDA15 · SCL
DVI-D Single Link Digital Video ConnectorDDWG (Digital Display Working Group)7 · DDC DATA6 · DDC CLK
DVI-I Single Link Integrated (Digital + Analog) Video ConnectorDDWG (Digital Display Working Group)7 · DDC DATA6 · DDC CLK
VGA (DE-15 / D-Sub 15-Pin Interface)IBM / VESA12 · SDA15 · SCL
M.2 (NGFF) Key M Connector (NVMe SSD)PCI-SIG42 · SMB_DATA40 · SMB_CLK

Pin number · pin name. "+n" = further pins with the same function.

All parts (49)

Board
Arduino

Arduino Uno R3

The flagship microcontroller board based on the ATmega328P featuring 14 digital I/O pins (6 PWM), 6 analog inputs, 16 MHz quartz crystal, USB connection, power jack, and ICSP header.

Board
Arduino

Arduino Nano V3

Compact, breadboard-friendly 8-bit AVR development board based on the ATmega328P with 30-pin dual-inline layout, mini-USB / USB-C, 8 analog inputs, and onboard 5V regulator.

Board
Arduino

Arduino Mega 2560 R3

Microcontroller board based on the ATmega2560 featuring 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 hardware UART serial ports, a 16 MHz crystal oscillator, USB connection, a power jack, an ICSP header, and a reset button.

Board
SparkFun / Arduino

Arduino Pro Mini (ATmega328P)

Minimalist 8-bit AVR microcontroller board based on the ATmega328P running at 16 MHz (5V) or 8 MHz (3.3V) with no onboard USB, optimized for permanent installation and low power.

Board
Espressif Systems

ESP32 DevKit V1 (38-Pin)

Widely used 2.4 GHz Wi-Fi and Bluetooth development board powered by the dual-core Tensilica Xtensa 32-bit LX6 microprocessor with 38 total pins.

Board
Espressif Systems

NodeMCU V2 (ESP8266 / ESP-12E)

Popular Wi-Fi development board powered by the ESP8266 32-bit Tensilica L106 microcontroller running at 80/160 MHz, with integrated USB-UART, 4MB Flash, and 30 breadboard-friendly pins.

Board
Seeed Studio / Espressif

Seeed Studio XIAO ESP32-C3 Development Board

Thumb-sized (21 x 17.5 mm) IoT development board powered by the Espressif ESP32-C3 32-bit RISC-V single-core processor at up to 160 MHz. Features 2.4GHz Wi-Fi 4, Bluetooth 5.0 (BLE), integrated battery charging management, USB-C, and 14 breadboard-friendly GPIO pins.

Board
Raspberry Pi Ltd

Raspberry Pi Pico (RP2040)

High-performance microcontroller board built around the Raspberry Pi RP2040 dual-core ARM Cortex-M0+ processor at 133 MHz with 2MB QSPI flash, 26 multifunction GPIOs, 3 ADCs, and Programmable I/O (PIO).

Board
Raspberry Pi Ltd

Raspberry Pi Pico W (Wi-Fi & Bluetooth)

High-performance wireless microcontroller board built around the RP2040 dual-core ARM Cortex-M0+ processor and an Infineon CYW43439 wireless chip supporting 2.4GHz 802.11n Wi-Fi 4 and Bluetooth 5.2 (BLE). Features 26 multifunction GPIOs, 3 ADC channels, 2MB onboard flash, and 8 Programmable I/O (PIO) state machines.

Board
Raspberry Pi Ltd

Raspberry Pi 4 Model B

Popular single-board computer featuring a 1.5 GHz 64-bit quad-core ARM Cortex-A72 processor (Broadcom BCM2711), dual 4K micro-HDMI, Gigabit Ethernet, USB 3.0, and 40-pin GPIO header.

Board
Raspberry Pi Ltd

Raspberry Pi 5

Latest single-board computer featuring a 2.4 GHz 64-bit quad-core ARM Cortex-A76 processor (Broadcom BCM2712), dual micro-HDMI, Gigabit Ethernet, USB 3.0, PCIe 2.0 x1, and 40-pin GPIO header.

Board
STMicroelectronics / Generic

STM32F103C8T6 'Blue Pill' Board

Popular low-cost 32-bit ARM Cortex-M3 development board featuring 72 MHz clock, 64KB Flash, 20KB SRAM, USB 2.0 Full Speed, and 40 breadboard-friendly pins.

Board
PJRC

PJRC Teensy 4.0 (ARM Cortex-M7)

Ultra high-performance development board featuring an ARM Cortex-M7 processor at 600 MHz (NXP i.MX RT1062), 2048K Flash, 1024K RAM, 40 total I/O pins, and hardware floating-point support.

Chip
Microchip / Atmel

ATmega328P 8-Bit AVR Microcontroller (DIP-28)

20MHz, 32kB Flash, 2kB SRAM, 1kB EEPROM, DIP-28

Chip
Microchip / Atmel

ATmega328P 8-Bit AVR Microcontroller

High performance, low power 8-bit AVR RISC-based microcontroller with 32KB flash, standard on Arduino Nano and Uno.

Chip
Microchip / Atmel

ATmega32U4 8-Bit Microcontroller with USB (TQFP-44)

16MHz, 32kB Flash, 2.5kB SRAM, 1kB EEPROM, USB 2.0, TQFP-44

Chip
Microchip / Atmel

ATtiny85 8-Bit AVR Microcontroller (DIP-8)

20MHz, 8kB Flash, 512B SRAM, 512B EEPROM, debugWIRE, DIP-8

Chip
Microchip / Atmel

ATtiny84 8-Bit AVR Microcontroller (DIP-14)

20MHz, 8kB Flash, 512B SRAM, 512B EEPROM, debugWIRE, DIP-14

Chip
Microchip Technology

PIC16F886 28-Pin Flash Microcontroller with nanoWatt (DIP-28)

8K Flash, 256B SRAM, 256B EEPROM, XLP, DIP28

Sensor
Bosch Sensortec

BME280 Environmental Sensor Module

Precision digital environmental sensor measuring relative humidity, barometric pressure, and ambient temperature via I2C and SPI interfaces.

Chip
Bosch Sensortec

BMP280 Digital Barometric Pressure Sensor

High-precision, low-power digital barometric pressure and temperature sensor with I2C/SPI interface, commonly used for altitude estimation and weather stations.

Chip
ASAIR (Guangzhou Aosong Electronics)

AHT20 Digital Temperature & Humidity Sensor

Digital I2C temperature and humidity sensor with factory calibration and low power consumption, widely used as a modern successor to the DHT11/DHT22 series.

Chip
Sensirion AG

SHT31-D Digital Temperature & Humidity Sensor

High-accuracy, fully calibrated digital I2C temperature and humidity sensor with two selectable addresses and an ALERT pin for humidity/temperature threshold monitoring.

Sensor
ROHM Semiconductor

BH1750FVI Digital Ambient Light Sensor (GY-302)

Digital 16-bit ambient light sensor IC with I2C bus interface for illuminance measurements from 1 to 65535 lx with human eye spectral response.

Sensor
TDK InvenSense

MPU-6050 6-Axis MotionTracking IMU (GY-521)

Widely used 6-axis MotionTracking device combining a 3-axis gyroscope and a 3-axis accelerometer with an onboard Digital Motion Processor (DMP) and auxiliary I2C master.

Sensor
STMicroelectronics

VL53L0X Time-of-Flight (ToF) Distance Sensor

Laser-ranging Time-of-Flight (ToF) sensor module measuring absolute distances up to 2 meters independent of target reflectance and color.

Sensor
Texas Instruments

INA219 High-Side Current & Power Sensor Module

Bidirectional current and power monitor with I2C-compatible interface, capable of measuring high-side voltages up to +26V and currents up to 3.2A with 0.1 ohm shunt.

Chip
Texas Instruments

INA226 Precision Current/Power Monitor

Bidirectional current, voltage, and power monitor with I2C/SMBus interface and a programmable alert pin, offering higher resolution and accuracy than the popular INA219.

Module
Texas Instruments

ADS1115 16-Bit 4-Channel Precision ADC Module

Ultra-small, low-power 16-bit precision Analog-to-Digital Converter with internal reference, oscillator, programmable gain amplifier (PGA), and I2C interface.

Chip
NXP Semiconductors

PCF8591 8-Bit 4-Channel ADC and 1-Channel DAC (I2C)

Single-chip, single-supply low-power 8-bit data acquisition device with four analog inputs, one analog output (DAC), and an I2C-bus interface.

Chip
Microchip Technology

MCP4725 12-Bit DAC with I2C Interface and EEPROM

Low-power, high accuracy, single channel, 12-bit voltage output Digital-to-Analog Converter (DAC) with integrated non-volatile EEPROM and 2-wire I2C interface. Stores power-on reset output settings directly in on-board EEPROM.

Chip
Maxim Integrated / Analog Devices

DS1307 64 x 8 Serial Real-Time Clock (I2C)

64 x 8, Serial, I2C Real-time clock, 4.5V to 5.5V VCC, 0°C to +70°C, DIP-8

Chip
Maxim Integrated / Analog Devices

DS3231 Extremely Accurate I2C Integrated RTC/TCXO/Crystal

Extremely Accurate I2C-Integrated RTC/TCXO/Crystal SOIC-16

Chip
NXP Semiconductors

PCF8563 Real-Time Clock/Calendar

Low-power CMOS Real-Time Clock/Calendar with I2C interface, programmable clock output, alarm and timer functions, backed by a 32.768kHz crystal oscillator.

Chip
Microchip Technology

MCP23017 16-Bit I/O Expander with I2C Interface

16-bit general purpose parallel I/O port expander with high-speed I2C interface (up to 1.7 MHz), configurable interrupt output pins, and 100k internal pull-ups.

Chip
NXP Semiconductors / Texas Instruments

PCF8574 Remote 8-Bit I/O Expander for I2C Bus

General-purpose 8-bit quasi-bidirectional I/O expander for the two-line bidirectional I2C-bus with open-drain interrupt output, widely used in HD44780 LCD I2C backpacks.

Chip
NXP Semiconductors

PCF8575 16-Bit I2C I/O Expander

Remote 16-bit I2C-bus general purpose parallel input/output expander with interrupt output, offering quasi-bidirectional I/O across two 8-bit ports (P0, P1), the 16-bit sibling of the PCF8574.

Chip
Texas Instruments

TCA9548A 8-Channel I2C Multiplexer

8-channel bidirectional I2C/SMBus switch with reset, used to resolve address conflicts between identical I2C sensor breakouts by isolating each device on its own sub-bus.

Module
NXP Semiconductors / Adafruit

PCA9685 16-Channel 12-Bit PWM / Servo Driver

I2C-bus controlled 16-channel LED and PWM controller optimized for RGB/RGBA color backlighting and 12-bit servo motor control up to 1.6 kHz.

Module
Solomon Systech / Generic

SSD1306 0.96" I2C / SPI OLED Display Module

Standard monochrome 128x64 dot matrix OLED display module driven by the SSD1306 controller with built-in charge pump and support for 4-pin I2C and 7-pin SPI pinouts.

Chip
Microchip Technology

24LC16B 16Kb I2C Serial EEPROM

I2C Serial EEPROM, 16Kb (2048 x 8), 2.5–5.5V, DIP-8/SOIC-8/TSSOP-8. Address pins A0–A2 are No Connect (NC), block addressing is handled internally via the I2C address byte.

Chip
Microchip Technology

24LC256 256Kb I2C Compatible 2-Wire Serial EEPROM

I2C Serial EEPROM, 256Kb (32768 x 8), 2.5–5.5V, DIP-8/SOIC-8/TSSOP-8/DFN-8. Up to 8 devices on one bus via A0–A2 address pins.

Chip
Microchip / Atmel

AT24C32 32-Kbit I2C Serial EEPROM

32-Kbit (4096 x 8) serial I2C EEPROM with hardware write protection, 32-byte page write, and 1 million write endurance. Commonly paired with DS3231 RTC modules.

Connector
HDMI Forum / HDMI Licensing Administrator

HDMI Type-A 19-Pin Interface

Standard 19-pin interface for uncompressed digital audio and video transmission (TMDS / FRL), Consumer Electronics Control (CEC), and DDC/HDCP display communication.

Connector
HDMI Forum / HDMI Licensing Administrator

Micro HDMI (Type D) 19-Pin Interface

Miniaturized 19-pin HDMI connector (Type D) with the same electrical signal assignment as HDMI Type-A, used on cameras, tablets, and single-board computers like the Raspberry Pi Zero and Pi 4.

Connector
DDWG (Digital Display Working Group)

DVI-D Single Link Digital Video Connector

Digital-only DVI connector with 24 signal pins plus 1 ground blade for single-link TMDS signaling. Supports resolutions up to 1920x1200 at 60Hz (single link) or 2560x1600 (dual link).

Connector
DDWG (Digital Display Working Group)

DVI-I Single Link Integrated (Digital + Analog) Video Connector

Integrated DVI connector carrying both digital TMDS and analog VGA signals. 24 digital pins plus 5 analog pins (4 analog contacts + 1 ground blade). Supports single-link resolutions up to 1920x1200 at 60Hz.

Connector
IBM / VESA

VGA (DE-15 / D-Sub 15-Pin Interface)

Standard 15-pin 3-row D-Sub connector for analog RGB component video signals, horizontal/vertical synchronization, and DDC2B (I2C) display communication.

Connector
PCI-SIG

M.2 (NGFF) Key M Connector (NVMe SSD)

Standard 75-position M.2 Key M edge connector interface (notch at pins 59-66) supporting PCIe 3.0/4.0/5.0 x4 lanes, SATA III, SMBus, and 3.3V power for high-performance NVMe Solid-State Drives.