Required Hardware
The MCP23017 is a 16-bit, general purpose parallel I/O port expander for I2C bus applications. The 16-bit I/O port functionally consists of two 8-bit ports (PORTA and PORTB). The MCP23017 can be configured to operate in 8-bit or 16-bit modes.
Wiring
To wire your MCP23017 Expander to your Arduino, connect the following pins:
- Pin 15 (A0) –> Arduino Ground
- Pin 16 (A1) –> Arduino Ground
- Pin 17 (A2) –> Arduino Ground
- Pin 18 (Reset) –> Arduino +5V
- Pin 19 (Int B) –> N/C
- Pin 20 (Int A) –> N/C
- Pin 21 – 28 –> Led Pin(+) via 470ohm Resistor
- Pin 1 – 8 –> N/C
- Pin 9 (Vdd) –> Arduino +5V
- Pin 10 (Vss) –> Arduino Ground
- Pin 11 –> N/C
- Pin 12 (Scl) –> Arduino Pin A5
- Pin 13 (Sda) –> Arduino Pin A4
- Pin 14 –> N/C
Don’t forget to wire all the Ground Pins of each Led to the Arduino Ground.
Recommended Software
- none
Leave a Reply