I2C communication with a device with a fix adress
hello everyone,
i communicate 2 or more of these proximity sensors :
https://www.sparkfun.com/products/10901
the datasheet says have fix adress (0x13).
my question : possible change adress in order communicate 2 or more sensors using same sda , scl pins ?
if i'm using leonardo or mega (which have additional i2c pins) can wire 1 sensor sda , scl pins , second sensor sda1 , scl1 pins ?
then able communicate both sensors despite fix address ?
thank in advance
i communicate 2 or more of these proximity sensors :
https://www.sparkfun.com/products/10901
the datasheet says have fix adress (0x13).
my question : possible change adress in order communicate 2 or more sensors using same sda , scl pins ?
if i'm using leonardo or mega (which have additional i2c pins) can wire 1 sensor sda , scl pins , second sensor sda1 , scl1 pins ?
then able communicate both sensors despite fix address ?
thank in advance
the address fixed, can't change it.
you can use 2 different i2c buses, yes.
to end, use chip:
http://www.nxp.com/products/interface_and_connectivity/i2c/i2c_multiplexers_switches/series/pca9547.html
there may breakout board or other chip similar functionality.
you can use 2 different i2c buses, yes.
to end, use chip:
http://www.nxp.com/products/interface_and_connectivity/i2c/i2c_multiplexers_switches/series/pca9547.html
there may breakout board or other chip similar functionality.
Arduino Forum > Using Arduino > Microcontrollers > I2C communication with a device with a fix adress
arduino
Comments
Post a Comment