Improving SD card logger script

Logging frequency was about 1 recording in 5 min.

That's 12 events per hour.

Last time i started the logger in the evening and in the morning i noticed that it had stopped 3.00 AM.

That's at most a 9 hour stretch.

9 * 12 = 108

The problem is that when i add a clock module to my project, it stops logging when the log-file is about 100 kb (although the memory card is 2 Gb).

This implies that you are logging about 1000 bytes per event.

Something doesn't add up here.