Sharing Nunchucky with MCP23017 i2c
Moderators: adafruit_support_bill, adafruit

Sharing Nunchucky with MCP23017 i2c

by rahatmaini on Wed Feb 20, 2013 10: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: 165
Joined: Wed Aug 29, 2012 5:15 pm

Re: Sharing Nunchucky with MCP23017 i2c

by adafruit_support_rick on Thu Feb 21, 2013 11: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:

adafruit_support_rick
 
Posts: 13907
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Sharing Nunchucky with MCP23017 i2c

by stroffduino on Thu Feb 21, 2013 7:58 pm

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