Hi ScruffR,
Thanks for your response.
I need a sampling rate of around 40kHz but could be dropped lower than that if necessary.
Eventually a WAV header would be preferred but I think I’d be able to do that step. For now a raw PCM file would suffice.
I am currently obtaining with a simple
analogRead()
file.print
loop.
I’m getting a sampling rate of around 8kHz so I need a bit better than this.
Thanks for your questions, they’ve helped me think this through. My next stage is to look at a buffer to try and improve sampling rate…