PCF8574 — i2c address & wiring
8-bit quasi-bidirectional I/O expander — the classic LCD-backpack chip.
Key facts
PCF8574 at a glance
| i2c address | 0x200x210x220x230x240x250x260x27 address-selectable via pins/jumpers |
|---|---|
| Logic voltage | 2.5–6 V |
| Type | expander |
| Part | TI/NXP PCF8574 |
| Ships with | generic modules — plain 0.1″ headers, no connector system |
| Datasheet | TI/NXP PCF8574 — manufacturer documentation ↗ |
The chip
What the TI/NXP PCF8574 actually is
8-bit quasi-bidirectional GPIO expander with an i2c interface and open-drain interrupt output. Provides simple digital input and output expansion with minimal software overhead — the chip behind LCD backpacks, keypad scanners and general-purpose I/O boards.
Watch out: Two variants, two address ranges: the PCF8574 answers at 0x20–0x27, the PCF8574A at 0x38–0x3F — and modules get sold interchangeably. If your scan shows 0x3F where you expected 0x27, you have the A variant. Watch 0x38, too: it collides with the AHT20.
Wiring
How to connect the PCF8574
The PCF8574 talks i2c at address 0x20 (up to 8 selectable addresses, handy when you need more than one on the same bus). It runs at 2.5–6 V, so match your host's logic level — if your host is 5 V and a board on the bus is 3.3 V-only, add a level shifter. Use the compatibility checker to confirm the exact cable for your setup.
Because the address is selectable, you can run several PCF8574 boards on one bus by setting each to a different address — no extra wiring beyond the shared SDA/SCL.
Wiring is the usual four: power, ground, SDA and SCL, plus pull-up resistors — almost always already fitted on the breakout. Nothing showing up? Run an i2c scan first; if the bus is silent, the 7-step checklist finds it faster than guessing.
Go deeper
Guides covering the PCF8574
Alternatives
Other gpio expander boards
Watch the bus
Boards that clash with the PCF8574
These want an address the PCF8574 also answers (0x23), so they can't share a bus with it untouched. If one is address-selectable, strap it elsewhere; if not, the conflict guide covers the multiplexer and second-bus routes, and the collision roundup explains why a scan won't warn you.
Get one
Questions
PCF8574 i2c FAQ
What is the PCF8574's i2c address?
The PCF8574 uses 0x20 or 0x21 or 0x22 or 0x23 or 0x24 or 0x25 or 0x26 or 0x27, selected with an address pin or solder jumper on the board. If a scan turns up something unexpected, our i2c address list names the usual suspect for every address.
What voltage does the PCF8574 run at?
2.5–6 V logic. That range covers both 3.3 V and 5 V hosts, so it drops onto a Pi, ESP32 or Arduino without a level shifter.
Can I use two PCF8574s on one i2c bus?
Yes — set each one to a different address (0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27) using its address pin or jumper, then wire both to the same SDA/SCL. That gives you up to 8 on a single bus before you need a multiplexer.
Does the PCF8574 come as a plug-together breakout?
Not in the mainstream connector ecosystems — PCF8574 modules are generic boards with 0.1″ headers, so you'll be soldering headers and running jumper wires to SDA, SCL, power and ground.
What should I watch out for with the PCF8574?
Two variants, two address ranges: the PCF8574 answers at 0x20–0x27, the PCF8574A at 0x38–0x3F — and modules get sold interchangeably. If your scan shows 0x3F where you expected 0x27, you have the A variant. Watch 0x38, too: it collides with the AHT20.