Shop OBEX P1 Docs P2 Docs Learn Events
Distance between devices when using I2C protocol on wire? — Parallax Forums

Distance between devices when using I2C protocol on wire?

WBA ConsultingWBA Consulting Posts: 2,935
edited 2009-10-13 20:02 in General Discussion
I am looking at a device that uses standard I2C communication but won't have a breakout board for it for a couple weeks. I have found a few different things on the internet, but nothing concrete in regards to real life experience with non-trace distance using I2C. What I mean by non-trace, is how far has someone communicated using I2C across wires? From what I have found so far, 8" is the farthest. I am hoping for 16".

thanks

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andrew Williams
WBA Consulting
WBA-TH1M Sensirion SHT11 Module
Special Olympics Polar Bear Plunge, Mar 20, 2010

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-10-10 04:07
    You'll probably find the best information in some application notes from Philips, now NXP. You should be able to find some links by going to their website and the page introducing I2C. I vaguely remember one that discussed recommendations for various distances, particularly where to put pullups and what values to use.
  • TimmooreTimmoore Posts: 1,031
    edited 2009-10-10 04:23
    I have used 12-20" before without problem.
  • Erik FriesenErik Friesen Posts: 1,071
    edited 2009-10-10 10:53
    I have gone 10 feet using a temp sensor and telephone wire. The power has to be on the inside wires or it won't work. It is not ideal however, and there are occasional errors. Crosstalk in the wires is a big killer with i2c.
  • T ChapT Chap Posts: 4,223
    edited 2009-10-11 20:48
    I use I2C with unshielded ribbon cable on projects over 12' everyday no problem.
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2009-10-13 20:02
    Thanks for the feedback, that's what I was hoping to hear. I'll have PCBs soon and will get to try this out later this month. The project will be a well documented and end up in the completed projects forum or the customer applications section on the website.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andrew Williams
    WBA Consulting
    WBA-TH1M Sensirion SHT11 Module
    Special Olympics Polar Bear Plunge, Mar 20, 2010
Sign In or Register to comment.