I have been data logging different things and have been doing it at intervals such as 15-30 minutes. The technique I have used to do this has been with the delay() in the main loop. Today I am data logging GPS (tinyGPS) and it has forced me to question if that's the best method, as if I use the delay in the main loop, as I have been, then there is no guarantee (and probably little chance) that on that next loop after the delay, I am going to get an updated GPS value.
So I consider method 2:
I could let the main loop keep looping and check a timer at each iteration to see if it's time to log the data.
Which method is more common?
I assume power consumption could be a factor. Some of my previous data logging has been done with battery power, and I believe the delay() in the loop may help conserve power, but I'm not sure.
Thanks for any thoughts.