Pages: [1]   Go Down
Author Topic: 2 I2C devices same adress  (Read 480 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

I'm having a problem smiley-confuse ... I'm trying to connect 2 I2C devices to one microcontroller , but with the same address, so with an Arduino UNO it is impossible. I've tried something not proper : to carry the power supply of each sensor with a digital pin to disconnect the device, but it appears that I can't do that : the devices doesn't respond if one is connected the ground.

So one solution is probably to connect my devices to an other board, as the Arduino DUE with to i2C connections. (I've one card that I can use.)

But the Arduino Due works at 3.3V, my sensors at 5V, I guess it's an issue... How can I interface them ??? Directly or should I use a logic converter ?

Thank you for your help (and sorry for my English  smiley-red)
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 111
Posts: 5242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can try another solution: a I2C multiplexer like the LTC4312 (http://www.linear.com/product/LTC4312). This way you don't have to switch your Arduino.
Logged

Earth
Offline Offline
Edison Member
*
Karma: 53
Posts: 1881
My browser no longer is binding static IP, Floating is the way to go.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are 3 ways to configure I2C device's address

  • fixed address. no change allowed.
  • address pin(s), connect with gnd or vc to set address.
  • configurable address stored in EEPROM or FLASH registers.

Check I2C device's data sheet to see which case you are, a I2C multiplexer will be backup plan even you are out of luck.
« Last Edit: June 17, 2013, 10:40:48 am by sonnyyu » Logged

Pages: [1]   Go Up
Jump to: