Hello everyone.
I have tried most of the functions in my Stalker V2.2 and almost everything works (PWM, analog readings, write to the SD card, etc). But now im trying to use the example “Data logger Demonstration using Stalker V2.1” and “now”. Compiles fine, but never pass this line RTC.begin();
here the code for “now” from the example for stalker V2.1
[code]
#include <Wire.h>
#include “DS3231.h”
char weekDay[][4] = {“Sun”, “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat” };
DS3231 RTC; //Create the R8025 object
void setup ()
{
Serial.begin(57600);
Wire.begin();
RTC.begin();
Serial.print("iniciado");
}
void loop ()
{
DateTime now = RTC.now(); //get the current date-time
Serial.print(now.year(), DEC);
Serial.print('/');
Serial.print(now.month(), DEC);
Serial.print('/');
Serial.print(now.date(), DEC);
Serial.print(' ');
Serial.print(now.hour(), DEC);
Serial.print(':');
Serial.print(now.minute(), DEC);
Serial.print(':');
Serial.print(now.second(), DEC);
Serial.print(' ');
Serial.print(weekDay[now.dayOfWeek()]);
Serial.println();
Serial.print("Seconds since 1/1/2000: ");
//print time stamp as 'long'.
Serial.print(now.get(),DEC);
//This is useful token for datalogging
Serial.println();
delay(1000);
}[/code]
Any idea, I exend a lot of time trying to solve this, so any ideas will be very welcome.
Thanks,
Christian