Chaining multiple MCP23017 on i2c bus

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Chaining multiple MCP23017 on i2c bus

Postby Rahatmaini » Sun Feb 24, 2013 8:53 pm

How do I (through software and wiring) chain together multiple MCP23017 chips on i2c on Arduino? There was a little section on this site briefly mentioning it is possible but did not provide much more information.

How do I do this? :D
Rahatmaini
 
Posts: 142
Joined: Wed Aug 29, 2012 4:15 pm

Re: Chaining multiple MCP23017 on i2c bus

Postby adafruit_support_mike » Sun Feb 24, 2013 10:07 pm

Every I2C device has an address. When the device in control (called the 'bus master') sends an I2C command, the first thing it sends is the address of the device it wants to talk to.

The MCP23017 has three pins (15, 16, and 17) which set the address for that device. You wire the pins high or low for 8 different addresses on the same bus.

The datasheet for the chip (http://www.adafruit.com/datasheets/mcp23017.pdf) has more details.
When you void a product warrany, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 1322
Joined: Thu Feb 11, 2010 1:51 pm


Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]