Please help me to to get RTC working data logging shield ( deek-robot datalogging shield v1.0)
I have it on arduino mega2560,
The SD card is working but i need the time to my datalogger...
I have tried many example codes but no success...
Promising one hasbeen TimeLib.h
With TimeLib.h TimeRTCset example i only get:
"Unable to sync with the RTC"
ad the time keeps running but it is
"0:00:02 1 1 1970"
I can change it by serial monitor: T1357041600
And then it is
"12:00:01 1 1 2013"
When i upload the TimeRTC serial monitor says:
"Unable to sync with the RTC" "The time has not been set. Please run the Time"); "TimeRTCSet example, or DS1307RTC SetTime example."
You probably have to cut the I2C lines, because they are on pins 20 and 21 not on A4 and A5.
I wonder how you made the SD card work, because the SPI is on different pins also
(my shield did not have a connection to the ISP, I had to add that for a Leonardo).