KravitzLabDevices / FED3_library

GNU General Public License v3.0
6 stars 17 forks source link

add millisecond precision to timekeeping #40

Open KravitzLab opened 2 years ago

KravitzLab commented 2 years ago

run a timer that resets every second using the RTC, and use millis() to add millisecond precision to the timekeeping functions

KravitzLab commented 2 years ago

Add simple millis() column to log file

KravitzLab commented 2 years ago

This is also possible by using LowPower.idle() instead of LowPower.sleep(). Need to do power consumption measurements in both cases.

https://circuitdigest.com/microcontroller-projects/arduino-sleep-modes-and-how-to-use-them-to-reduce-power-consumption

https://github.com/arduino-libraries/ArduinoLowPower/blob/master/src/ArduinoLowPower.h

KravitzLab commented 2 years ago

Also I think LowPower.deepsleep() is just LowPower.sleep(), will confirm with Otii measurement