The first part of this question is a cross-post - see IotaWatt Sample Rate - #2 by overeasy