Sharing Nunchucky with MCP23017 i2c

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

Moderators: adafruit_support_bill, adafruit

Sharing Nunchucky with MCP23017 i2c

Postby Rahatmaini » Wed Feb 20, 2013 9:58 pm

I have asked about sharing i2c pins on this forum before, unfortunately the response was not as helpful as I would have liked. I would like to know how I can share the A4 and A5 pins (i2c bus) with multiple devices.

The concept just seems weird. Sharing 2 pins used together with multiple devices, controlling individually with software.

Thanks. :?:
Rahatmaini
 
Posts: 154
Joined: Wed Aug 29, 2012 4:15 pm

Re: Sharing Nunchucky with MCP23017 i2c

Postby adafruit_support_rick » Thu Feb 21, 2013 10:27 am

I2C is a non-arbitrated master-slave bus architecture. Each device on the bus must have a unique 7-bit address. On each transaction, the master (i.e., the arduino) sends out the address of the device it wants to talk to. Only that device will respond.

It's very Victorian. Devices will only speak when spoken to. :wink:
User avatar
adafruit_support_rick
 
Posts: 3152
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY



Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: No registered users and 6 guests

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


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
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[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]