Completely new to the world of Arduino so please bear with me.
I have an Arduino Pro Mini 5v with an SD card and microphone wired up. Essentially all I want this to do is record 10 seconds of audio (wav format) to the SD card when it is first uploaded. So no switches to start or stop.
This is the code I have so far (it doesn’t work) so any help would be gratefully appreciated. The SD card and microphone do work as I have tested them separately.
No, and nether does GreatScottLab either. This particular author thinks he knows one hell of a lot more than he does.
The microphone board says it has an output of
Output: 2Vpp on 1.25V bias
If indeed you get this to work it would distort the sound on loud signals because you need a bias of half the power rail, so if you have a 5V supply then the bias needs to be 2.5V. This is a thing that this author often gets wrong, see his totally useless walkie talkie project for how much he doesn’t understand DC bias.
Where did you get that code from?
I did not see it in the crap article he wrote?
Edit
Oh I spot a .ino file link which I cannot look at because I am on a mobile device and they don’t do .ino files.