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

So close to being able to use Jled sequences natively, if I could figure out how to calculate the number of times to repeat for a given step length.

This looks helpful (https://arduino.stackex…

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

To send a cycle, we need to set up the duration of each repeating message.

  • Need entries (#8) for
    • step length
    • cycle ID
    • number of transmitters
  • Need a function…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-08 15:02:25 -05:00
Set up scheduled program cycles

I thought I had typed this all out, but

  • Alarm2 has only minute resolution
  • Alarm1 has second resolution

So when I set up Alarm2 but turn off cycle, if I turned cycle back on within the…

W1CDN commented on issue W1CDN/vulpes#33 2023-09-08 14:21:30 -05:00
Set RTC alarm (run program) more than a month in advance

Using timespans might work to fix this and #35 if I can fix #27.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-08 14:01:36 -05:00
Set up scheduled program cycles
W1CDN opened issue W1CDN/vulpes#35 2023-09-08 13:16:36 -05:00
Make it clear in UI that start time only matters once continuous is switched on
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-08 12:59:00 -05:00
Set up scheduled program cycles

Before I too far, consider just comparing rtc.now() and the start time in loop() to trigger the scheduled program.

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-08 11:12:18 -05:00
Set up scheduled program cycles
  • add to webform that start time is only accurate to day of month
W1CDN opened issue W1CDN/vulpes#34 2023-09-08 11:03:33 -05:00
Wire up SQW pin on real board
W1CDN opened issue W1CDN/vulpes#33 2023-09-08 11:03:01 -05:00
Set RTC alarm (run program) more than a month in advance
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-08 11:01:18 -05:00
Set up scheduled program cycles

Confirming that I can't set an alarm more than a month in advance (or maybe ~2 months if the current month has 30 days and the next month has 31 days, and you set it for the 31st). Wild.

https:/…

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

Feel slightly better:

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

I can set Alarm2 and have SQW notify of the alarm. I tried

  • setting, turning off the ESP32, waiting past alarm time, and it does not trigger on boot (this is good)
  • setting, rebooting ESP32,…
W1CDN opened issue W1CDN/vulpes#32 2023-09-08 10:19:49 -05:00
Sleep until RTC alarm
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-08 09:28:36 -05:00
Set up scheduled program cycles

I tried the same if ((rtc.alarmFired(2) == true) ) code on the breadboard version and get the same results (crash on form submission).

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

Changed true to 1 and it is not crashing.

Also, even though I get stuff like this, the RTC time seems to be right:

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

It's this bit that's causing the i2cCheckLineState() error and reboot:

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

I'm getting weird dates again. I will look at the hardware connections tomorrow.

It's also worth considering using the SQW pin: https://garrysblog.com/2020/07/05/using-the-ds3231-real-time-clock…

W1CDN commented on pull request W1CDN/vulpes#24 2023-09-07 21:51:44 -05:00
Set up scheduled program cycles

RTC alarms seem to fire at the next opportunity, even if they happened when ESP32 was off. This is a problem I wanted to avoid.

Reset the alarm in setup() if it's in the past?

W1CDN opened issue W1CDN/vulpes#31 2023-09-07 21:12:05 -05:00
License