I am wondering if there is anyone who is perhaps more capable with regards either python threading, async data writing or understanding some of the limitations of an SD card (write speeds?) who might be able to comment/suggest ways forward on the script i have and/or why i might be seeing this unexpected time step in records.
In particular, I am trying to get to the bottom of why my script is only recording data every 3-4 seconds when i should be recording it every 1 second ~(see python script driveData.py - there's a 1 second sleep).
I've put the python files on: https://github.com/robjharrison/MovementDataAnalysis
But a clipped version of the output below: It's the seconds that i'm most interested in here.
I have seen a similar delay with the pi3 (although the steps do seem to be reduced to 2-3seconds). Current hardware is:
Pi zero, Sensehat, pi camera
Perhaps worth noting that i am collecting video footage, saved in 5min segments, motion data from that and the sensor data headings seen above here, so i guess there is a fair bit of data being written - but it is batched into minute sections and the video into 5mins. But all should be clear from the example scripts on Github. Looking for any advice regarding the scripts whether specific to this issue or not . thank you.