Table of Contents

lamaPLC: PCF857x I/O Expander chip/modul with I²C communication

CF857x I/O Expander chip/modul with I²C communication The PCF857x series consists of I²C-based general-purpose I/O (GPIO) expanders manufactured by NXP and Texas Instruments. They allow microcontrollers (such as Arduino, ESP32, or Raspberry Pi) to control multiple digital pins with only two wires: Serial Data (SDA) and Serial Clock (SCL).

FeaturePCF8574 / PCF8574APCF8575
GPIO Count8-bit (8 pins)16-bit (16 pins)
I²C Base Address0x20 (PCF8574) / 0x38 (PCF8574A)0x20
Max Devices on 1 Bus8 units16 units
Operating Voltage2.5V to 6V2.5V to 5.5V
Interrupt OutputYes (Open-drain INT)Yes (Open-drain INT)

The current limits of the PCF857x are heavily lopsided because of its quasi-bidirectional architecture. It handles current entirely differently depending on whether you are sinking current (outputting 0/LOW) or sourcing it (outputting 1/HIGH).

The I²C LCD adapter utilizes the PCF8574.

PCF857x Pinout

8/16-Bit I/O Extension Pins

PCF857x Reverse side of the module

PCF857x I/O Expander chip/modul reverse side

PCF857x Vcc and Vdd

PinFunctionTypical TargetVoltage Role
VCCMicrocontroller (Logic) SideConnect to your MCU's power pin (e.g., 3.3V or 5V).Sets the operating reference voltage for the I²C communications line (SDA/SCL).
VDDPeripheral (Device) SideConnect to the external hardware power (e.g., 5V).Directly sets the high voltage logic level of the 16 target output/input pins (P00–P17).

The Crucial Condition: Check the Solder Jumper

For this dual-voltage (3.3V/5V) configuration to work safely, the onboard VCC-VDD solder jumper must be open (disconnected).

PCF857x module's addressing

To assign a specific 7-bit hex address, use a soldering iron to connect the center pad of each group to either GND or VCC.

A2 StatusA1 StatusA0 StatusResulting Binary OffsetHex I²C Address
GND (Open)GND (Open)GND (Open)0000x20 (Default)
GND (Open)GND (Open)VCC (Bridged)0010x21
GND (Open)VCC (Bridged)GND (Open)0100x22
GND (Open)VCC (Bridged)VCC (Bridged)0110x23
VCC (Bridged)GND (Open)GND (Open)1000x24
VCC (Bridged)GND (Open)VCC (Bridged)1010x25
VCC (Bridged)VCC (Bridged)GND (Open)1100x26
VCC (Bridged)VCC (Bridged)VCC (Bridged)1110x27

PCF857x using I/O pin

Sinking Current (Output LOW / Connecting to Ground)

Sourcing Current (Output HIGH / Connecting to VCC)

This is the weak mode meant mostly for sensing state changes.

How to Correctly Wire Components

PCF8575 I/O How to Correctly Wire Components

If you'd like to support the development of the site with the price of a coffee — or a few — please do so here.

Here's a handy tip: you can quickly save this page as a PDF by clicking “export to PDF” in the menu on the right side of the screen.

2026/02/14 23:38

PCF857x wiring with relay modules

Connecting optocoupled relay modules to the PCF8575 is a common practice, but it requires strict electrical care. Because of the chip's asymmetrical quasi-bidirectional ports, a mistake in how you trigger the relay will prevent it from working entirely.

The Triggering Rule: Active LOW Only

For example, the HL-54 (4-channel 3.3V optocoupled relay module) can be directly connected to the PCF8575. Because the HL-54 is hardwired as an Active LOW module, it is perfectly suited to the PCF8575's current limits.

I²C topics on lamaPLC

PageDateTags
2026/04/23 21:51, , , , , , ,
2025/09/23 21:25, , , , , ,
2026/04/15 19:34, , , , , , ,
2026/03/22 03:14, , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/05/12 18:40, , , , , , ,
2026/05/13 00:06, , , , , , ,
2026/04/12 00:34, , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2025/05/31 23:32, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2025/11/22 00:07, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2023/07/01 17:29, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2026/03/22 01:44, , , , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , ,
2026/04/23 21:51, , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/02/14 18:27, , , , , , , , , ,
2026/04/23 21:52, , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/05/08 00:03, , , , , , , , , , ,
2026/05/14 15:21, , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/05/12 16:20, , , , ,
2026/05/12 17:06, , , , , ,
2026/05/12 21:06, , , , , , ,
2026/05/12 18:58, , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/15 19:41, , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/02/14 23:47, , , ,
2026/05/20 16:17, , , , , , , , , , , , ,
2026/02/14 23:51, , , , , ,
2026/02/14 18:26, , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/05/15 15:17, , , , , , , , , , , , , ,
2026/03/05 21:19, , , , , , , , , , , , , , , , ,
2026/02/14 18:27, , , , , , ,




This page has been accessed for: Today: 1, Until now: 127