For my project I am trying to simultaneously run two devices with the same address though the I2C bus onto the arduino.
Device :
From my research I know it is impossible to simultaneously run two of the same devices on the I2C bus so I am trying to use a multiplexer:
I am using the lilypad arduino and I am using the digital pins 12 and 13 as outputs for the select and enable pins on the MUX.
The problem I am having is that when I initialize the libraries I have for my two devices it seems to override all the digital pins and there is now output when i set them to high
The multiplexer complements inputs into outputs. Did you account for that?
Sorry, I posted up the wrong MUX, it is the 257 which doesn't invert its outputs:
Also, the I2C bus is two way. How are you connecting the multiplexer to the bus (assuming you had a non-inverting output)?
I am inputting the SDA and SCL from device one into the A1 and A2 inputs of the MUX
I am inputting the SDA and SCL from device one into the B1 and B2 inputs of the MUX
Output Y1 is connected to analogue pin 4 (default SDA)
Output Y2 is connected to analogue pin 5 (default SCL)