RTC problems between Arduino Mega n DLS

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Nemo3009
 
Posts: 10
Joined: Fri May 20, 2011 3:07 pm

RTC problems between Arduino Mega n DLS

Post by Nemo3009 »

hi
i get a data logger shield n i have an Arduina Mega board
i was testing the shield beginning with the RTC part, i copy the sketch from the xample but
i get the same when i upload the first sketch n when i uncoment the line for adjusting the time.

i never get the line "RTC is NOT running!"
even when i take off the DS1307

i dont know where the problem is =(

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: RTC problems between Arduino Mega n DLS

Post by adafruit_support_bill »

The RTC uses I2C for communication and the Mega uses different pins for I2C. (digital 20 & 21 instead of analog4 & 5)

One way is to run jumpers to the Mega I2C pins. Another option is "SoftI2C": http://forums.adafruit.com/viewtopic.php?f=25&t=13722

Nemo3009
 
Posts: 10
Joined: Fri May 20, 2011 3:07 pm

Re: RTC problems between Arduino Mega n DLS

Post by Nemo3009 »

thnx a lot, that solve my problem =)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”