Pages: [1]   Go Down
Author Topic: [Arduino Mega] Wire Problem / defect ?  (Read 360 times)
0 Members and 1 Guest are viewing this topic.
Germany, Osnabrück
Offline Offline
God Member
*****
Karma: 30
Posts: 659
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 636
Posts: 34574
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Germany, Osnabrück
Offline Offline
God Member
*****
Karma: 30
Posts: 659
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
:-(
« Last Edit: July 13, 2009, 04:42:09 am by Jomelo » Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

-j
Logged

Pages: [1]   Go Up
Jump to: