Go Down

Topic: digitalWrite - alarmRepeat (Read 1 time) previous topic - next topic

johncc

Quote
24 hours is ok, but 48 hours then it like stops and keeps old values. Short test it works correctly.

So you're saying that at 6:30 am 48 hours later, both the Serial Monitor and the LCD still says 23:31 or something like that?

Code: [Select]

void LCDprintDigits(int LCDdigits)
{
  lcd.print(":");
  if(LCDdigits < 10)
    Serial.print('0');
  lcd.print(LCDdigits);
}


(also you probably want lcd.print() here)

John

UKHeliBob


The argument types don't exactly match the signatures for analogWrite() and digitalWrite(), but I don't suppose we're too concerned about type safety here.


I wondered about how to pass HIGH and LOW when I suggested the function.  What is the correct way to pass them ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

oringo


So you're saying that at 6:30 am 48 hours later, both the Serial Monitor and the LCD still says 23:31 or something like that?


Last sketch stops in 48 hours, but not with last command - Alarm.alarmRepeat(23,31,30, H23M30);

New sketch:
i reset arduino yesterday evening at 22.00.
I checked it at 07.00 am and everything was ok.
before 18.00 was last alarm already done - Alarm.alarmRepeat(23,31,30, H23M30);
LCD.print was loop H23M30 print "...GOODBYE..."
LCD clock time was correct.





oringo

Sketch is correct if it is without RTC.

setTime(20,53,55,12,30,12);

Maybe problem is circuit or something in RTC settings.
DS1307 board and LCD display are connected parallel from sensor shield SDA, SCL, VCC, GDN

Please suggest how connect correctly RTC and LCD.

UKHeliBob

How are they connected now ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

oringo

Now, it is without RTC.

i need rtc for power failure

Go Up