Skip to content

PCA9671 GPIO Expander

Dave Williams | DitroniX | G8PUO edited this page Jun 1, 2025 · 3 revisions

The PGEZ PCA9671 GPIO Expander Zero features an onboard PCA9671 GPIO Expander. This provides:

  • 5V tolerant I/O's
  • 16 bit I/O GPIO Expander (Quasi-bidirectional Port)
  • 64 I2C Addresses (default address 0x20)
  • Configurable 5V or 3V3 header pin VCC
  • Configurable LED indicators on each GPIO Pin
  • Each I/O Drive up to 30mA
  • Flexible STACKABLE Interface
    • You can stack up to a theoretical 64 x 16 GPIOs (1024 Inputs or outputs).
    • With suitable DC power source

Overview Information

The device used is a NXP Semicon, PCA9671 GPIO Expander.

  • Part Number: PCA9671BS,118 (HVQFN-24-EP(4x4))
  • Drop in upgrade for the PCF8575 or MCP23017. Similar libraries.
    • PCA9671 does not include the Configurable Interrupt Output Pins
  • Overall Maximum of 400mA Total Sink (Across all 16 I/O's).
    • With suitable DC power source
  • I2C Commands
  • Supported by Various Libraries

DIP Switches

The PGEZ has THREE DIP Switch Banks, each with FOUR selectable Switches.

  • Default is 0x20 when all switches are OFF
  • If only using a single board, then you can use the default address.
  • The addressing has three banks A, B and C. Each bank has four switches, so 16 settings on each switch.

To change a switch setting, simply slide the switch using a pen or pencil. Switch Settings can be found here.

NB. The 'Yellow' protective film, which maybe still on the DIP switches from production, maybe removed using sellotape and lifting up, or simply left in place.

Stacking

The PGEZ PCA9671 GPIO Expander Zero board, can stack up to a theoretical 64 x 16 GPIOs (1024 Inputs or outputs).

NB. You will need to ensure that you have a sufficient DC power source for this.

PGEZ PCA9671 GPIO Expander Zero on ESPuno Pi Zero

PGEZ on ESPuno Pi Zero Stacked with Straight and Angled GPIO Pin Headers PGEZ on ESPuno Pi Zero Stacked with Straight and Angled GPIO Pin Headers

Datasheets

PCA9671 Datasheet

PCA9671 Datasheet

PCF8575 Datasheet

MCP23017 Datasheet

Clone this wiki locally