Matt W1CDN
  • Joined on 2023-04-08
W1CDN created pull request W1CDN/vulpes#38 2023-09-13 20:13:42 -05:00
Use ardiunomorse instead of Jled
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-13 11:58:18 -05:00
Set up scheduled program cycles

Hmm. morses_sequence_blink_test->Forever().Update();

Backtrace: 0x400d1c32:0x3ffb1f40 0x400e2799:0x3ffb1fb0 0x4008a39a:0x3ffb1fd0
  #0  0x400d1c32:0x3ffb1f40 in jled::TJLedSequence<jl…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-12 21:28:32 -05:00
Set up scheduled program cycles

Lol, if I comment out the division, I can at least run the function.

  int ms_per_dit = 60;//1000 * (60 / (50 * wpm));
  int repeats = 2;//step_length / period;

So tomorrow I can…

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

Get a little more information with monitor_filters = esp32_exception_decoder in platformio.ini.

Guru Meditation Error: Core  0 panic'ed (IntegerDivideByZero). Exception was unhandled.
Core…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-12 21:13:05 -05:00
Set up scheduled program cycles

The igniter code works pretty well when stripped down, even if I don't understand it.

The problem is that for Morse, I need to know the duration of the message, which means that the `MorseEffect…

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

Here's an example, I think: https://github.com/dariomas/igniter/blob/97ad8480f750b6efcd990ec890027ba8026a4a44/igniter.ino#L118

JLedSequence* changePeriod(JLedSequence* seq, unsigned int…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-12 18:26:53 -05:00
Set up scheduled program cycles

https://github.com/ArduinoGetStarted/led (ezLED) is interesting, but I get errors on build. See Sites/ezLED.

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

This causes it to reboot over and over:

JLedSequence make_sequence(int gpio, const char* message, int wpm, int step_length, int n_transmitters){
  int ms_per_dit = 1000 * (60 / (50 *…
W1CDN commented on pull request W1CDN/vulpes#24 2023-09-11 21:48:04 -05:00
Set up scheduled program cycles

I'm going to look for JLed alternatives, or maybe ask for help developing this function.

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

Back to this:

E (37611) ledc: ledc_set_duty(402): channel argument is invalid
E (37616) ledc: ledc_update_duty(334): channel argument is invalid

I am trying to write a function to…

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

I'm beginning to think there really is no way to update/replace a Jled sequence on the fly in loop(). So I could set up some basic options and let people choose from a list, until I can figure…

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…