Hi all,
I've successful tested the connection of a TFT display to my Arduino (using A4 and A5 for i2c data and i2c clock).
I've also successful tested the connection of a BMP180 pressure sensor (i2c too).
The question is: is it possible to connect both the apparatus to the same Arduino since both of them use A4 and A5?
I don't think so but...
If this is not possible, how could I apply some sort of work around?
Diabolicus23:
Hi all,
I've successful tested the connection of a TFT display to my Arduino (using A4 and A5 for i2c data and i2c clock).
I've also successful tested the connection of a BMP180 pressure sensor (i2c too).
The question is: is it possible to connect both the apparatus to the same Arduino since both of them use A4 and A5?
I don't think so but...
If this is not possible, how could I apply some sort of work around?
Yes, The I2C bus is designed to support multiple devices at the same time, as long as each device has a different address they will work.
The bus needs one 4.7k resistor from the SDA line to VCC, one 4.7k resistor from the SCL line to VCC(the pullups).
I have an an Uno with 7 24LC512, 2 MCP23008, 1 MMA8451, MCP79410, PCA9545A.
The specification say the bus will support 127 devices, I have never went over 10.
Chuck.
you can verify with an I2C scanner, there are several to choose from
see - http://playground.arduino.cc/Main/I2cScanner -