Hi, I don't know if its the true place to write this question but its related to audio. While MAX30100 is working TMRPCM stops and starts givig a noise.
My code is something like this:
PulseOximeter pox;
void setup() {
if(pox.begin()) {
Serial.println("MAX30100 ok");
}
pox.shutdown(); //if I wont shut it down no sound will be played
tmrpcm.Play("sound1.wav"); //plays
//some conditions
tmrpcm.Play("sound2.wav"); //doesnt play
pox.resume();
//some measurements
pox.shutdown();
tmrpcm.Play("sound3.wav"); //doesnt play
}
I don't know anything about that but TMRpcm is processor-intensive and timing-critical so I'm not sure how much else you can run at the same time (if anything).
DVDdoug:
I don't know anything about that but TMRpcm is processor-intensive and timing-critical so I'm not sure how much else you can run at the same time (if anything).
I enabled debug mode in TMRpcm's config file and it shows the wav file is 24000Hz, but it's only not working while MAX30100 is running, so it a performance issue? I'll try doing MAX30100 tasks with one arduino and sound tasks with another. Thanks for answering!