Pages: 1 [2]   Go Down
Author Topic: digitalWrite - alarmRepeat  (Read 1237 times)
0 Members and 1 Guest are viewing this topic.
Temple, Texas
Offline Offline
Sr. Member
****
Karma: 14
Posts: 361
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
void LCDprintDigits(int LCDdigits)
{
  lcd.print(":");
  if(LCDdigits < 10)
    Serial.print('0');
  lcd.print(LCDdigits);
}

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

John
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4232
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.




Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4232
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How are they connected now ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now, it is without RTC.

i need rtc for power failure
Logged

Pages: 1 [2]   Go Up
Jump to: