sparkfun / OpenLog_Artemis

The OpenLog Artemis is an open source datalogger the comes preprogrammed to automatically log IMU, GPS, serial data, and various pressure, humidity, and distance sensors. All without writing a single line of code!
https://www.sparkfun.com/products/15846
Other
87 stars 46 forks source link

is it possible to have an "activity schedule"? #137

Closed jerabaul29 closed 2 years ago

jerabaul29 commented 2 years ago

We were discussing with @tnn77 and wondering: does the OLA support having an "activity schedule"? I.e. for example:

In addition, we want to have a schedule like:

Not sure, is that doable with the firmware as of today? If not, any hope a functionality like this could be added? This would be super useful in geo sciences.

ryanneve commented 2 years ago

@jerabaul29 I looked at this a while ago. My feeling is that the hardware certainly supports it, but the changes to the firmware would be non-trivial. If implemented, I would suggest a schedule file with on and off times on on time and duration. Perhaps using crontab syntax? The firmware would need to be able to set alarms in the Artemis RTC for each wake time and know when to go into deep sleep for each sleep period. This functionality would be useful for applications which only occur during certain times or on a schedule. For our application (tidal), we would probably have to upload a new schedule file every few days.

adamgarbo commented 2 years ago

@jerabaul29 This has been discussed before in https://github.com/sparkfun/OpenLog_Artemis/issues/46. @PaulZC noted then that this type of functionality would be a major change. I suspect you'd be better off writing your own firmware.

On a side note, the schedule you've described is exactly what I've implemented in my glacier velocity project, which is based on the Artemis and MicroMod ecosystem. I've created daily, rolling or continuous logging schedules using the built-in RTC functionality of the Artemis.

jerabaul29 commented 2 years ago

I don t think I will have time myself to re write a firmware unfortunately. But think it is a natural expansion of the OLA functionality.

PaulZC commented 2 years ago

Hi JR,

As reported by Adam, we have looked at this previously. The current firmware allows you to change between fast and slow logging once per day. However, as discussed previously, adding a logging schedule is a step too far. It would require completely bespoke firmware. So, with apologies, this is not something we can consider at this time.

Best wishes, Paul

jerabaul29 commented 2 years ago

I was thinking about this tonight, and wondering: could a possibility be to use an external timer, and have:

jerabaul29 commented 2 years ago

Something based on https://www.sparkfun.com/products/15353 or similar?

If you think this could be doable, could we re-open the issue and discuss using such a hardware instead of software solution? :)

PaulZC commented 2 years ago

Hi JR,

You can already use Pin 11 to select between fast and slow logging. But please be aware that it is not possible to 'wake' the OLA early by changing pin 11 part way through a slow logging sleep interval. Please see #108 for details.

Best wishes, Paul

jerabaul29 commented 2 years ago

Thanks, that is really interesting :) . So does this well mean that we could:

to hack something similar to the functionality we need?

PaulZC commented 2 years ago

Yes - exactly that. We added the "sleep on pin" feature in January 2021...

jerabaul29 commented 2 years ago

Excellent! Then @tnn77 , we should be able to "hack" something by adding a piece of extra hardware :) .