DS1307 issue

Hey guys.

Ive got a DS1307 RTC hooked up to a Arduino Uno, it compiles fine, I open the serial monitor and it initially displays the correct time. The problem is, the time doesn’t change, it just prints the same time over and over (the seconds don’t even change). Tried Serial.begin with 57600 and 9600, same results. Tried this with an UNO and MEGA, tried it with 2 different DS1307 chips…

This is the setup:

and code:

#include <Wire.h>
#include "RTClib.h"
RTC_DS1307 RTC;

void setup () {
Serial.begin(57600);
Wire.begin();
RTC.begin();
RTC.adjust(DateTime(__DATE__, __TIME__));
}

void loop () {
DateTime now = RTC.now();
Serial.print(now.year(), DEC);
Serial.print('/');
Serial.print(now.month(), DEC);
Serial.print('/');
Serial.print(now.day(), DEC);
Serial.print(' ');
Serial.print(now.hour(), DEC);
Serial.print(':');
Serial.print(now.minute(), DEC);
Serial.print(':');
Serial.print(now.second(), DEC);
Serial.println();
delay(1000);
}

I’m probably missing something dumb… cookie for the person who figures out the problem

PLEASE DELETE THIS POST. had a loose connection. -.-

I suspect that you may also need to remove this line

RTC.adjust(DateTime(DATE, TIME));

As DATE and TIME will be always be set to your compile date / time every time the board starts