MCP23017 - i2c

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

Moderators: adafruit_support_bill, adafruit

MCP23017 - i2c

Postby Rahatmaini » Thu Nov 29, 2012 4:32 pm

I understand that Adafruit has a library for this, however, I do not know how to assemble this and wire it correctly. Is there anyplace that has detailed instructions for utilization of this chip, I do not know much about arduino as I am very new to this.
Rahatmaini
 
Posts: 155
Joined: Wed Aug 29, 2012 4:15 pm

Re: MCP23017 - i2c

Postby tldr » Sun Dec 02, 2012 10:30 am

start with the datasheet. it's linked from the product page.

pin nine is power and pin ten is ground.

pins 15,16 and 17 are address pins. just them to ground.. if you are going to put multiple mcp23017's on the same bus you can connect some of these pins to 5v to form up to seven additional addresses.

pins 12 and 13 are your i2c bus. 12 is the clock line and 13 is data. you might want pullups on these lines, though the arduino is supposed to take care of that.

pins 21-28 will be referred to as pins 0-7 in your code. pins 1-8 on the chip will be pins 8-15 in your code.

aaaargh. what am i doing? all of this is explained in the example code in the library.

@#?!&
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
tldr
 
Posts: 406
Joined: Thu Aug 30, 2012 12:34 am

Re: MCP23017 - i2c

Postby Rahatmaini » Wed Dec 05, 2012 4:23 pm

Thanks so much! Very helpful indeed, so i2c is just a fancy word for A4 and A5 on the arduino, huh? Tricky.
Rahatmaini
 
Posts: 155
Joined: Wed Aug 29, 2012 4:15 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 [113]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
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[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


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