When using DelayAfter()
, need to take that into account for remainer_wait
and total_wait
math, because it's outside of the duration returned by morse_cycle.Period()
.
Only took 14 hours to "fix" this, I guess: W1CDN/vulpes#24 (comment).
Now it looks like the alarm will work after removing/adding power (because the time…
After some refreshes in the browser, looks like that one is the correct time. I did the same modification to the other one and it seems to be working similarly.
These are DS3231M chips, so…
It seems to have worked (turned on at 8:36 AM):
RTC time on startup: 1694353011
2023-09-10T13:36:51
Alarm 1 set for at 02:16:00 Wed, 10 May 2000 (only HH:MM:SS day-of-month are accurate)
I tore the charging circuit resistor out, but still seeing weird results. The chip remembers something because it's showing a time. But why that time? I unplugged it and took the battery out,…
Sounds like these might be fake/counterfeit DS3231 or just bad design with the charging circuit. I guess I can sacrifice one to see if it works better without the charging circuit: https://www.amaz…
Don't know if this is good/relevant info or not (https://arduino.stackexchange.com/a/84893):
So you disconnect the 5V to the DS3231, but keep the SDA and SCL pins connected? By doing that, you…
Sigh. RTC is off on reset. That's no good.
RTC time on startup: 2023-09-09T18:28:48
Alarm 1 set for at 23:58:00 Tue, 09 May 2000 (only HH:MM:SS day-of-month are accurate)
Maybe this could be a function?
if(startProgram == true){
//auto morse_cycle = morseEffectMOS;
int period = morse_cycle.Period();
int repeats = step_length / period;
int…
- test power cycle between when start time is set and start time is reached. Does it work the way it should? It should start the program at the scheduled time with no input from the webform.
So close. Trying to let the user change the cycle message and running to problems.
Things like morse_cycle = morseEffectMOE;
just don't work.
My use of "cycle" and "program" are very confused right now, but making progress.
This is basically working. Observations:
- message and timing are hardcoded for now
- need to update in loop, based on webform entry
- no gap between end of message repeat and beginning of…
I am debugging this in Sites/jled/
and there may be a bug with using DelayAfter()
in a sequence: https://github.com/jandelgado/jled/issues/122.