Matt W1CDN
  • Joined on 2023-04-08
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-11 20:08:57 -05:00
Set up scheduled program cycles

Switching from continuous to off: image

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-11 19:36:05 -05:00
Set up scheduled program cycles

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().

W1CDN commented on issue W1CDN/vulpes#36 2023-09-11 19:06:39 -05:00
Check for cycle drift

I ran it for 8.5 hours today and it was off 2-3 seconds by the end.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-10 09:04:20 -05:00
Set up scheduled program cycles

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…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-10 08:52:51 -05:00
Set up scheduled program cycles

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…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-10 08:40:48 -05:00
Set up scheduled program cycles

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)
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 21:02:06 -05:00
Set up scheduled program cycles

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,…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 20:27:38 -05:00
Set up scheduled program cycles

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

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 19:26:33 -05:00
Set up scheduled program cycles

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…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 19:05:15 -05:00
Set up scheduled program cycles

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)
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 18:54:38 -05:00
Set up scheduled program cycles

Maybe this could be a function?

  if(startProgram == true){
  //auto morse_cycle = morseEffectMOS;
    int period = morse_cycle.Period();
    int repeats = step_length / period;
    int…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 18:50:44 -05:00
Set up scheduled program cycles

Um, no, the program doesn't seem to survive a reboot. Fun.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 17:01:33 -05:00
Set up scheduled program cycles
  • 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.
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 16:51:05 -05:00
Set up scheduled program cycles

So close. Trying to let the user change the cycle message and running to problems.

Things like morse_cycle = morseEffectMOE; just don't work.

W1CDN opened issue W1CDN/vulpes#37 2023-09-09 16:04:01 -05:00
Show on webform when cycle/program is active (programRunning == true)
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 16:02:10 -05:00
Set up scheduled program cycles

My use of "cycle" and "program" are very confused right now, but making progress.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 12:57:43 -05:00
Set up scheduled program cycles

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…
W1CDN opened issue W1CDN/vulpes#36 2023-09-09 12:36:22 -05:00
Check for cycle drift
W1CDN closed issue W1CDN/vulpes#34 2023-09-09 12:34:26 -05:00
Wire up SQW pin on real board
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-09 11:03:34 -05:00
Set up scheduled program cycles

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.