Hi,
i bought this real time clock module:
http://www.ebay.de/itm/261043197718?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
but i have problems to get it running, first of all like 90% of all libraries were pre 1.0 after changing the commands i still could not compile..
then i found another library with an example that did compile but its still not working.
Could anyone please tell me where i could find the latest libraries and instructions?? :-/
and i would love just a simple example that shows me the current time and date of the clock.
examples that did compile just show the same date and time over and over again, maybe thats intendet or not i dont know
As only repeating output from serial i get from chronodot lib with example:
2011/04/04 22:07:00
and temp values.
Time and other values r not changing at all
plz help
this is the code from a compiling example with lib chronodot:
// Date, time and temperature functions using
// a Chronodot RTC connected via I2C and Wire lib
#include <Wire.h>
#include "Chronodot.h"
Chronodot RTC;
void setup () {
Serial.begin(9600);
Serial.println("Initializing Chronodot.");
Wire.begin();
RTC.begin();
if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
// following line sets the RTC to the date & time this sketch was compiled
RTC.adjust(DateTime(__DATE__, __TIME__));
}
}
void loop () {
DateTime now = RTC.now();
Serial.print(now.year(), DEC);
Serial.print('/');
if(now.month() < 10) Serial.print("0");
Serial.print(now.month(), DEC);
Serial.print('/');
if(now.day() < 10) Serial.print("0");
Serial.print(now.day(), DEC);
Serial.print(' ');
if(now.hour() < 10) Serial.print("0");
Serial.print(now.hour(), DEC);
Serial.print(':');
if(now.minute() < 10) Serial.print("0");
Serial.print(now.minute(), DEC);
Serial.print(':');
if(now.second() < 10) Serial.print("0");
Serial.print(now.second(), DEC);
Serial.println();
Serial.print(now.tempC(), 1);
Serial.println(" degrees Celcius");
Serial.print(now.tempF(), DEC);
Serial.println(" degrees Farenheit");
Serial.println();
delay(3000);
}
On DS1307new_v1.23 library and example i get a similar output like this:
DS1307 Testsketch
Format is "hh:mm:ss dd-mm-yyyy DDD"
MEZ=0, MESZ=1 : 1
22:07:00 08-04-2011 FRI seconds since 1.1.2000:355615620 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 0 - Clock was set!
22:07:00 08-04-2011 FRI seconds since 1.1.2000:355615620 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 1 - Clock was set!
22:07:00 08-04-2011 FRI seconds since 1.1.2000:355615620 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 2 - Clock was set!
22:07:00 08-04-2011 FRI seconds since 1.1.2000:355615620 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 3 - Clock was set!
nothing is changing....
and monitor example just shows:
DS1307 Monitor (enable LF/CR, type 'h' for help)
on h +enter nothing happens at all
please help, im so frustrated