Central MN, USA
Online
Faraday Member
Karma: 38
Posts: 6054
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« on: December 03, 2011, 03:19:09 pm » |
I was checking how far an I2C bus can extend and found this online: http://www.edaboard.com/thread80459.htmlI am not looking for some long distance in meters or feet, more or less half a foot or 15cm jumper wires length. In the past I've always had I2C devices on PCB or on arduino shield. Just checking with I2C experts that if I run 100MHz I2C (default arduino setting, right?) on a 15cm/0.5ft jumper wire, I'm not going to screw up. I am not using any solder-less breadboards, just jumpers and male/female headers. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Newcastle, England
Offline
Sr. Member
Karma: 2
Posts: 489
Always learning!
|
 |
« Reply #1 on: December 03, 2011, 03:30:28 pm » |
Just checking with I2C experts that if I run 100MHz I2C (default arduino setting, right?)
I don't know much about I2C, but the arduino runs at 16MHz, so I would expect the frequency to be 100KHz (or some other frequency. 100KHz was just a guess). Onions.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 6
Posts: 1398
Arduino rocks
|
 |
« Reply #2 on: December 03, 2011, 03:45:01 pm » |
From wikipedia: http://en.wikipedia.org/wiki/I%C2%B2CThe maximum number of nodes is limited by the address space, and also by the total bus capacitance of 400 pF, which restricts practical communication distances to a few meters.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 38
Posts: 6054
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #3 on: December 03, 2011, 05:03:33 pm » |
thanks florinc. I guess you can use an EEPROM over I2C for device identification over a cable less than 1 few meters. I'll be operating way shorter wires than that.
For the software side, I have one EEPROM slot on my phi-panel, an arduino-driven user interface panel. I also have a regular arduino. I'd like to use the regular arduino to write info to the EEPROM located on the panel over jumper wires and then have the panel read the messages.
So there are two masters and one slave connected to the I2C and the masters definitely don't talk together. I guess I can just connect the I2C pins together, right?
|
|
|
|
|
Logged
|
|
|
|
|
Worcester, MA
Offline
God Member
Karma: 2
Posts: 619
Arduino rocks
|
 |
« Reply #4 on: December 04, 2011, 03:22:36 pm » |
You should be fine. I would recommend using external pullup resistors instead of relying on the internal pullups.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 38
Posts: 6054
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #5 on: December 05, 2011, 07:48:45 pm » |
You should be fine. I would recommend using external pullup resistors instead of relying on the internal pullups.
Thanks wayneft. I will have a 2K pull-up on board with the EEPROM (24LC256).
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 75
Posts: 6975
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #6 on: December 06, 2011, 12:33:16 am » |
100MHz I2C He he, not in our lifetime  I'm guessing that was a typo. There are chips (eg PCA9600, PCA9525, P82B715) that will drive I2C for a long way, the P82B715 states over 50 meters. They all drive about 10x the line capacitance the standard allows for. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26030
Solder is electric glue
|
 |
« Reply #7 on: December 06, 2011, 09:50:37 am » |
So there are two masters and one slave connected to the I2C and the masters definitely don't talk together. I guess I can just connect the I2C pins together, right? If you do then you will need to ensure that each of the Masters are using multi master driving software in place of the normal single master software. Otherwise there will be a clash when both masters try and talk at the same time. Also note that multi master systems are more susceptible to disruption by noise as any noise can be seen by a master as the other master talking.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 38
Posts: 6054
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #8 on: December 07, 2011, 12:04:18 pm » |
100MHz I2C He he, not in our lifetime  I'm guessing that was a typo. There are chips (eg PCA9600, PCA9525, P82B715) that will drive I2C for a long way, the P82B715 states over 50 meters. They all drive about 10x the line capacitance the standard allows for. ______ Rob Rob, I can't tell between K, M, G and T since I've lived through all them in computer storage and memory capacities. I keep making mistakes of saying 32MB tablets or 4MB memory 
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 6
Posts: 1398
Arduino rocks
|
 |
« Reply #9 on: December 07, 2011, 07:38:20 pm » |
I can't tell between K, M, G and T I make the same mistake with money 
|
|
|
|
« Last Edit: December 07, 2011, 07:39:53 pm by florinc »
|
Logged
|
|
|
|
|
|