MCP23008

0x20

The MCP23008 is an alternative to the MCP23017 with 8 GPIOs instead of 16.

This gives it a considerable footprint advantage compared to the MCP23017, in particular the QFN package variant which made it possible for us to squeeze two huge 30A relays onto our 30A Relay HAT.

Easy Installer

Our easy installer takes care of the setup process automatically.

sudo wget https://git.plasmadan.com/install.sh
sudo sh install.sh

This script will automatically enable I2C, install the required packages and setup the Web GUI.

Alternatively, you can install manually. See our setup guide.

Boards

  • Physical pin
  • WiringPi pin
  • Currently ,
Toggle Output All On All Off

WiringPi Guide

Read

gpio -x mcp23008:100:0x20 read 108

Write

gpio -x mcp23008:100:0x20 mode 108 out
gpio -x mcp23008:100:0x20 write 108 1
  • Operating voltage: - 1.8V to 5.5V
  • Maximum current into VDD pin: 125mA
  • Maximum current out of VSS pin: 150mA

Address Selection

Address A2 A1 A0
0x20
0x21
0x22
0x23
0x24
0x25
0x26
0x27