MCP23017 I/O expander module
16 extra GPIO on an I2C breakout.
Function16-bit I/O expander
Supply voltage1.8 to 5.5 V
InterfaceI2C (0x20 to 0x27)
Logic levelMatches supply
InterfacesReviewedMPN MCP23017 moduleUsed in 3 projects
In short
What is the MCP23017 I/O expander module and what is it used for?
16 extra GPIO on an I2C breakout. Makers use it for many buttons or LEDs.
How it works
An I2C chip with 16 configurable I/O pins and internal pull-ups.
Key specifications
| Interface module spec | Value |
|---|---|
| Function | 16-bit I/O expander |
| Supply voltage | 1.8 to 5.5 V |
| Interface | I2C (0x20 to 0x27) |
| Logic level | Matches supply |
Pinout
VCC GND1.8 to 5.5 V
SDA SCLI2C
A0 A1 A2Address (0x20 to 0x27)
RESETMust be pulled high
GPA0 to GPA7 GPB0 to GPB7I/O
INTA INTBInterrupts
How to use it
Use Adafruit_MCP23X17. Tie RESET high or it will not answer. Microchip's current datasheet says GPA7 and GPB7 should be used as outputs only, so put inputs on other pins.
Applications
Many buttons or LEDs
Builds that use it
Alternatives
- PCF8574 I/O expander moduleEight pins, simpler
- MCP23017 16-bit I/O expanderBare chip
Common questions
What is the MCP23017 I/O expander module used for?
In maker projects: many buttons or LEDs.
How does the MCP23017 I/O expander module work?
An I2C chip with 16 configurable I/O pins and internal pull-ups.
What voltage does the MCP23017 I/O expander module need?
1.8 to 5.5 V.
How do I connect the MCP23017 I/O expander module to an Arduino or ESP32?
I2C (0x20 to 0x27). Pins: VCC GND (1.8 to 5.5 V), SDA SCL (I2C), A0 A1 A2 (Address (0x20 to 0x27)), RESET (Must be pulled high), GPA0 to GPA7 GPB0 to GPB7 (I/O), INTA INTB (Interrupts).
What can I use instead of the MCP23017 I/O expander module?
PCF8574 I/O expander module and MCP23017 16-bit I/O expander.
