Why doesnt DS1307 work on my arduino? Answered
I am trying hard to get a DS1307 clock chip to work with my arduino... and i've gotten nothing thus far...
My setup: (for DS1307),
VCC connected to +5v on arduino,
Clock pins connected to a 32.768khz crystal
Battery pin connected to arduino 3.3v output,
SDA and SCL pins pulled up with 1.8k resistors to +5v and then to respective A4 and A5 on arduino
Arduino is connected to my macintosh via USB. The atmega 328 on it is plugged into an UNO board but the chip is running the Duemilanove bootloader.
All I get when running Adafruits RTClib sketch is this:
since midnight 1/1/1970 = 1402703185s = 16234d
now + 7d + 30s: 2014/6/20 23:46:55
complete junk readings, and the same no matter what the heck I try. Any ideas guys? I must admit I got my chip from a low cost thailand company (taydaelectronics), but I've tried 2 clock chips and 3 crystals and get the same results....???