Sharing Nunchucky with MCP23017 i2c

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Sharing Nunchucky with MCP23017 i2c

Post by rahatmaini »

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. :?:

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Sharing Nunchucky with MCP23017 i2c

Post by adafruit_support_rick »

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:

stroffduino
 
Posts: 4
Joined: Sat Oct 23, 2010 2:58 pm

Re: Sharing Nunchucky with MCP23017 i2c

Post by stroffduino »


Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”