Hi,
I am trying to connect 2 arduino's (2 Uno's or 1 Uno and 1 Ethernet) with an I2C sensor (Temperatur Sensor TMP102) and communicate via I2C.
What works:
- 2 Arduinos communicating with each other in Master/Slave or Multiple Master configuration without problem
- 1 Arduino and the Sensor (works with either Arduino)
What does not work:
As soon as I have both Arduinos and the Sensor connected, the bus hangs. This is observed via the Serial Window where the first Arduino prints out the temperature readings. As soon as the second Arduino is connected, the window hangs immediately.
My Set-up:
- all GND's are connected (sensor and both arduinos)
- The sensor is connected to 3.3V
- The SDA/SCL lines are conected via 4.7k Ohm resistors to 5V
- I have also tried without the pull-up resistors
- All wires are very short, no long connections
- I have also successfully connected 1 Arduino with 5 different I2C sensors
- I Wire.read the temperature from the TMP102 once per second
- The Second Arduino does not do anything. The code on the first Arduino (the one polling the TMP102) hangs as soon as I connect the SCL/SDA lines from the second Arduino to the bus. Resetting, different sequence, etc all have the same result. As soon as the 2nd Arduino is connected, it stalls.
Has anyone successfully connected multiple Arduinos and 3.3V I2C sensors? If so, would be really great to share your set-up, I am at a loss here, having banged my head against it for quite some time now...
Thank you so much for your kind help.
Peter