Paul__B:
Kadin_S:
I am planning on using 4 I2C devices, not just the one. I wanted to get the code working for a single device first so that I could understand what I was doing.Dead right. You then need a 74HC4052. Two channels, SDA and SCL, four devices, don't worry about tying things together. You need pull-ups on each I2C slave when using a multiplexer in this fashion. Clearly you have to wait for each transaction to fully complete before switching, but otherwise should be no problem.
I've ordered two 74HC4052 multiplexers, and am waiting for them to arrive now. These look like exactly what I need, thanks for pointing them out.
Another question though, what is the difference between the 74HC4052 and one of these: http://www.dsscircuits.com/i2c-multiplexer
Is it just the addition of the interrupt inputs and output? And if so, what could make one of them preferable to a 74HC4052?
raschemmel:
@OP,
Have you tried any basic troubleshooting techniques like isolating 3 of the 4 devices and trying to run the code with only ONE device on the bus ? (and rotate devices until you have tested all four ?)
Yeah I have tried this, but with no luck unfortunately.