[Arduino Mega] Wire Problem / defect ?

Hi,

i bought a new Arduino and try to get I2C to run.

I use the "Wire" Libary on pin 20/21 but nothing happens.

The programm stops at:

Wire.endTransmission();

Have someone ideas ?

Pull-Up Resitors are 1k8 Ohm.

Sorry vor my bad english.
Jomelo

That pull up is a bit low for 5V, I would use 4k7.

Have you connected the I2C lines to analogue 4 & 5? It needs to be this rather than the digital 4 & 5.

Hi,
i test 1k8, 4K7 and 10k Ohm nothing happens.

On Arduino Mega the SDA and SCL Pins are on Pin 20 / 21 not at 4 / 5.
:frowning:

I have used a DS1307 I2C RTC with the mega; it worked fine.

-j