Author Topic: Multiple i2c devices that have their own pull ups.  (Read 2031 times)

0 Members and 1 Guest are viewing this topic.

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
Multiple i2c devices that have their own pull ups.
« on: October 10, 2016, 03:26:48 am »
Say I want to use a bunch (6 or more) LCDs with those i2c backpacks that are pretty common. The back packs have their own pull ups. I imagine this puts a limit on how many of these devices I can have on one bus before the parallel resistance of all the pull ups becomes too small.  I haven't actually looked to see what value pull ups are on the things.

For my idea to work, do I need to ditch the backpacks, and just get the individual expander chips?
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1237
  • Country: nz
Re: Multiple i2c devices that have their own pull ups.
« Reply #1 on: October 10, 2016, 03:29:30 am »
Perhaps desolder the pullups on all and add the pullups at your MCU.
Typical value is 4K7 but it can vary a bit.

Edit: Forgot to say... 6 backpacks? Do they support 6 different I2C addresses...?
« Last Edit: October 10, 2016, 03:31:10 am by Mr.B »
I approach the thinking of all of my posts using AI in the first instance. (Awkward Irregularity)
 

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
Re: Multiple i2c devices that have their own pull ups.
« Reply #2 on: October 10, 2016, 03:39:19 am »
The pins for setting addresses are brought out  on pads. You don't get the full range of addresses that are possible though. I think it's more than six, but I can't remember how many address pins are available. It's definitely a possible limiting factor on my plan.

EDIT: three address pins. My math says five combinations. So much for six screens!
« Last Edit: October 10, 2016, 03:43:20 am by Dan Moos »
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1237
  • Country: nz
Re: Multiple i2c devices that have their own pull ups.
« Reply #3 on: October 10, 2016, 03:48:46 am »
3 bit address.
My math says 8 addresses.
Thats not to say the device supports all 8.

URL for spec sheet?
Photo?
I approach the thinking of all of my posts using AI in the first instance. (Awkward Irregularity)
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1237
  • Country: nz
Re: Multiple i2c devices that have their own pull ups.
« Reply #4 on: October 10, 2016, 03:52:11 am »
Depending upon the device it could be a lot more than 8 - although unlikely for an LCD.
Some devices these days are using a sort of tri-state address pin combination.
e.g. one pin supports three addresses - High, Low and Floating.
I approach the thinking of all of my posts using AI in the first instance. (Awkward Irregularity)
 

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
Re: Multiple i2c devices that have their own pull ups.
« Reply #5 on: October 10, 2016, 05:20:37 am »
Yer right, three makes eight.

Pretty sure no tri state. The chip is a pcf8574. The board brings the address pins out on pads. There are also three corresponding pads that are go to either pull ups, or pull downs (can't remember as I sit away from the lab) so you can conveniently bridge different combos to get the address you want. I would assume having low/high/tri state would require a more elaborate setup. 
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1237
  • Country: nz
Re: Multiple i2c devices that have their own pull ups.
« Reply #6 on: October 10, 2016, 06:15:37 am »
One last piece of advice...
Six devices on an I2C bus can be problematic.
Keep your bus lengths as short as possible. 
« Last Edit: October 10, 2016, 06:17:13 am by Mr.B »
I approach the thinking of all of my posts using AI in the first instance. (Awkward Irregularity)
 

Offline Neilm

  • Super Contributor
  • ***
  • Posts: 1546
  • Country: gb
Re: Multiple i2c devices that have their own pull ups.
« Reply #7 on: October 10, 2016, 06:48:23 pm »
One last piece of advice...
Six devices on an I2C bus can be problematic.
Keep your bus lengths as short as possible.

Just make sure that your rise times are in spec for the chips - this might mean putting the pull up resistors somewhere you didn't didn't expect to. I have had five on a bus that was about 1m long. Fortunately, it went over several boards, so the one in the middle ended up with the pull up resistors.
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein
Tesla referral code https://ts.la/neil53539
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf