# PCF8574 I/O expander: 8 pins over I2C, 2.5 to 6 V

> An I2C port expander that adds eight pins: supply, standby current, quasi-bidirectional I/O and interrupt, and how to wire LEDs to it.

Canonical: https://roboticsengineering.in/components/pcf8574-io-expander/ | Published: 2026-11-03 | Updated: 2026-11-03

**The PCF8574 is an I2C-to-parallel port expander: two wires give you eight extra input/output pins, powered from 2.5 to 6 V with a standby current of at most 10 µA.** It is the chip behind the small backpack on most character LCDs, and it is a quick fix when a robot runs out of GPIO. Figures are from the Texas Instruments PCF8574 datasheet SCPS068K.

## Key specifications

| Function | 8-bit I2C I/O expander |
| --- | --- |
| Supply | 2.5–6 V |
| Standby | 10 µA max |
| I/O | 8 quasi-bidirectional pins |
| Interrupt | open-drain output |
| Power-on | all pins high |

## What the datasheet promises

| Item | Datasheet value |
| --- | --- |
| Function | 8-bit I2C to parallel-port expander |
| Supply voltage | 2.5 to 6 V |
| Standby current | 10 µA maximum |
| I/O | 8 quasi-bidirectional pins (P0 to P7); each can be an input or an output with no direction register |
| Outputs | Latched, with high-current drive for directly driving LEDs |
| Interrupt | Open-drain interrupt output |
| Power-on state | All I/O high, with only a weak current source to VCC active |
| Packages | TVSOP, SOIC, PDIP, TSSOP and VQFN |

“Quasi-bidirectional” means a pin is read as an input by writing a 1 to it first, which leaves only the weak pull-up active so an external signal can pull it low. Drive current is much stronger when pulling low than when pulling high, so wire LEDs from the supply to the pin, not from the pin to ground.

## Using it on a robot

- Connect SDA and SCL to the I2C bus with pull-ups, and set the three address pins; keep the address clear of other devices such as the [MPU6050](https://roboticsengineering.in/components/mpu6050-imu/).
- Use the interrupt pin to avoid polling buttons or limit switches over I2C.
- For more than eight outputs, a [74HC595](https://roboticsengineering.in/components/sn74hc595-shift-register/) costs fewer bus transactions; for an address clash use the [TCA9548A](https://roboticsengineering.in/components/tca9548a-i2c-multiplexer/).
- Do not drive motors or relays from a pin directly; use a driver such as the [ULN2003A](https://roboticsengineering.in/components/uln2003a-darlington-driver/).

## Sources and further reading

- [Texas Instruments PCF8574 datasheet (SCPS068K)](https://www.ti.com/lit/ds/symlink/pcf8574.pdf) — the supply, standby current, I/O behaviour, interrupt and packages above.

Last reviewed: November 2026. Limits are from the Texas Instruments datasheet; backpack boards vary. No price is quoted because it has not been checked.
