I have been using the Photon for the past 1 month and for my project, I have to attach 2 I2C devices 2 each. So it’s like 4 devices on D0, D1. Is there any way to do this?
I know that I have to change address’ of the same device. How can I do this? The sensors which I am usng are- IR Temp and Range Finders both by Sparkfun.
Can someone help me out? Or has somebody tried this?
@skasat, neither of these parts have programmable I2C addresses so you can only have one of each on a bus. To use pairs of these on the same bus you will need an I2C multiplexer which “hides” each I2C device from the others on the bus. You simply select the device you want to connect to (like a channel) and then do the I2C transactions as you normally would. Adafruit has a good one which has 8 channels: