Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Chaining I2C devices

Anything that doesn't fit our other forums goes here.
8 postsPage 1 of 1
8 postsPage 1 of 1

Chaining I2C devices

Post by alonsoBrain » Fri Oct 05, 2007 3:03 pm

Post by alonsoBrain
Fri Oct 05, 2007 3:03 pm

Hi!

Is it posible to build a bus of I2C devices with the same ID?
How can I read 2 devices of the same type????
Hi!

Is it posible to build a bus of I2C devices with the same ID?
How can I read 2 devices of the same type????
alonsoBrain
Robot Builder
Robot Builder
User avatar
Posts: 13
Joined: Wed Sep 20, 2006 1:00 am

Post by JonHylands » Fri Oct 05, 2007 3:29 pm

Post by JonHylands
Fri Oct 05, 2007 3:29 pm

Most I2C devices have a way of choosing between one of several ID's, typically by pulling up or down several pins on the device.

You can't use 2 devices on the same bus with the same ID...

- Jon
Most I2C devices have a way of choosing between one of several ID's, typically by pulling up or down several pins on the device.

You can't use 2 devices on the same bus with the same ID...

- Jon
JonHylands
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 512
Joined: Thu Nov 09, 2006 1:00 am
Location: Ontario, Canada

Post by i-Bot » Fri Oct 05, 2007 4:16 pm

Post by i-Bot
Fri Oct 05, 2007 4:16 pm

Most I2C devices allow the ID to be changed. This is by hardware (links) or in the eeprom if it is a programmed device.

What devices were you think of using ?
Most I2C devices allow the ID to be changed. This is by hardware (links) or in the eeprom if it is a programmed device.

What devices were you think of using ?
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Post by alonsoBrain » Mon Oct 08, 2007 9:07 am

Post by alonsoBrain
Mon Oct 08, 2007 9:07 am

i-Bot wrote:What devices were you think of using ?

I'm using a Nintendo Nunchuck Wii device.
I've implemented this
http://www.windmeadow.com/node/42
and now I like to modify it to read 2 Nunchuck devices...

Is it posible?
Or must I use another microcontroller to read the data :-( ?
i-Bot wrote:What devices were you think of using ?

I'm using a Nintendo Nunchuck Wii device.
I've implemented this
http://www.windmeadow.com/node/42
and now I like to modify it to read 2 Nunchuck devices...

Is it posible?
Or must I use another microcontroller to read the data :-( ?
alonsoBrain
Robot Builder
Robot Builder
User avatar
Posts: 13
Joined: Wed Sep 20, 2006 1:00 am

Post by NovaOne » Mon Oct 08, 2007 8:09 pm

Post by NovaOne
Mon Oct 08, 2007 8:09 pm

Have you got i2c comms with a single nunchuk working yet?

I'm sure you know that the nunchuk has a default slave address of 0x52 and looking at the PCB http://wiire.org/Wii/nunchuk U1 is a custom controller, so i may be impossible to alter this address?

If you bit banging on general purpose i/o lines(?) and have two spare lines why not bit bang the second nunchuk separately.

Good luck
Have you got i2c comms with a single nunchuk working yet?

I'm sure you know that the nunchuk has a default slave address of 0x52 and looking at the PCB http://wiire.org/Wii/nunchuk U1 is a custom controller, so i may be impossible to alter this address?

If you bit banging on general purpose i/o lines(?) and have two spare lines why not bit bang the second nunchuk separately.

Good luck
NovaOne
Savvy Roboteer
Savvy Roboteer
Posts: 405
Joined: Thu Jul 05, 2007 7:30 am

Post by Robo1 » Tue Oct 09, 2007 11:46 am

Post by Robo1
Tue Oct 09, 2007 11:46 am

I would say quicker and easier to use to microcontrollers and then use and use the spare ports of r other things.

Would love to see that you going to use it for have you got the remote working to.

Bren
I would say quicker and easier to use to microcontrollers and then use and use the spare ports of r other things.

Would love to see that you going to use it for have you got the remote working to.

Bren
Robo1
Savvy Roboteer
Savvy Roboteer
Posts: 501
Joined: Fri Jun 30, 2006 1:00 am
Location: UK - Bristol

Post by Robo1 » Tue Oct 09, 2007 11:55 am

Post by Robo1
Tue Oct 09, 2007 11:55 am

Hi me again.

Just finished reading the link. Very interesting I have a couple of Arduino so might give it a try. might even see if I can make it wireless. I would still use two Arduino mini's have them mounted on bot then you could use them to pre-process the data and as analogy inputs.

Bren
Hi me again.

Just finished reading the link. Very interesting I have a couple of Arduino so might give it a try. might even see if I can make it wireless. I would still use two Arduino mini's have them mounted on bot then you could use them to pre-process the data and as analogy inputs.

Bren
Robo1
Savvy Roboteer
Savvy Roboteer
Posts: 501
Joined: Fri Jun 30, 2006 1:00 am
Location: UK - Bristol

Post by NovaOne » Wed Oct 10, 2007 7:57 pm

Post by NovaOne
Wed Oct 10, 2007 7:57 pm

Ignore my earlier post, I missed the point. :?

I like the sound of your wireless idea Bren :)

For £15 I will definitely buy one to play with. (may be put a plug on the side of my PS1 controller for an alternative control method)

alonsoBrain -I may be mad but i would consider replacing the microcontroller in one (master) nunchuck and read the analogue signals from the accelerometers directly. You could then also optionally fit a bluetooth or zigbee transmitter inside the master nunchuck, while reading the second slave (unmodified) nunchuck via i2c. :roll: Possibly not the cheapest or best option for you :?:

Chris
Ignore my earlier post, I missed the point. :?

I like the sound of your wireless idea Bren :)

For £15 I will definitely buy one to play with. (may be put a plug on the side of my PS1 controller for an alternative control method)

alonsoBrain -I may be mad but i would consider replacing the microcontroller in one (master) nunchuck and read the analogue signals from the accelerometers directly. You could then also optionally fit a bluetooth or zigbee transmitter inside the master nunchuck, while reading the second slave (unmodified) nunchuck via i2c. :roll: Possibly not the cheapest or best option for you :?:

Chris
NovaOne
Savvy Roboteer
Savvy Roboteer
Posts: 405
Joined: Thu Jul 05, 2007 7:30 am


8 postsPage 1 of 1
8 postsPage 1 of 1