Go Down

Topic: [Arduino Mega] Wire Problem / defect ? (Read 368 times) previous topic - next topic

Jomelo

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

Grumpy_Mike

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.

Jomelo

#2
Jul 13, 2009, 11:40 am Last Edit: Jul 13, 2009, 11:42 am by Jomelo Reason: 1
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.
:-(

kg4wsv

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

-j

Go Up