I'm new to I2c, and I have a sort of weird setup. Not sure how to wire these together:
I have 1 master arduino mega with its own power source, 1 slave arduino uno with its own power source, and a barometric pressure sensor. I want the uno and the pressure sensor to communicate with the mega through I2c.
How do I wire this together? When I connect all of the SCL and SDA wires together, the pressure sensor stops working.
The Mega and the Uno share a common ground. Is it a problem that they have separate power supplies?
Long cables are 20cm+. I2C is not designed for rang. Although a lot of people use it with a couple of meters without a problem, to exclude this as the error only use short wires.
And as far as I can tell the module has all the level shifting on it so should work fine with 5V.
So, define does not work. How did you try to use it? Which sketches (multiple, both the Mega and Uno!).