Hello friends, I’m using arduino with SD shield c/w RTC (ds1307). When I plug arduino, the RTC works fine. When unplugged, the RTC stops keeping time. When I plug in again the clock starts where it left off. It’s supposed to keep time with the B/U battery and return the right time/date even after a few days, but it doesn’t.
Is there some initialization that needs to be done other than initial time/date
i.e.: RTC.adjust(DateTime(DATE, TIME));
I’m thinking specifically of oscillator CH bit7 which must be set to 0 for initialization, as per data sheet.
Problem solved, it was my fault, I did not follow initialization properly.