Microphone implementation in arduino

Hi there,

So, I have currently an project for which I will use an arduino consisting of:

  • Eletromyography sensor (acquisition frequency = 100Hz);
  • Piezoeletric sensor as a respiratory belt (acquisition frequency = 100Hz);
  • Microphone (acquisition frequency = 42kHz)
    All of which for 24h monitoring and syncronized in time!

For microphone implementation I've read this article: APC’s April 2023 issue is on sale now! | TechRadar

My problems:

  1. Is it possible to integrate all of those 3 sensors and having a perfect audio quality (that is, with audio of a normal pc recording?
  2. What is the best option to save all that data (sd card?), having in consideration that all of the 3 syncronized parameters would have to be digitally processed in matlab or whatever?

Thanks in advance! :slight_smile:

Microphone (acquisition frequency = 42kHz)

What sort of Arduino?
The zero or due is the only one that stands a chance, but better would be a Teensy 3.6.

You get Audio but not perfect quality with the internal A/D, you would need an external A/D.

I think an SD card is your only hope of storing Audio, however for storing other data at the same time is tricky.

Grumpy_Mike:
What sort of Arduino?
The zero or due is the only one that stands a chance, but better would be a Teensy 3.6.

I have an arduino UNO and an arduino MEGA. On the tutorial they use a MEGA!

Grumpy_Mike:
You get Audio but not perfect quality with the internal A/D, you would need an external A/D.
I think an SD card is your only hope of storing Audio, however for storing other data at the same time is tricky.

I would'nt need the audio by itself (like an .wav) but rather the values - I'm intending to use machine learning!

Couldn't I use like a 24h hour sound recorder (something external) and connect it to arduino, or something like that?

fat16lib helped with code to sample at CD quality level, 16-bit@44100 KHz, and store to SD card. I was using a '1284P, but I think he had it working on just a '328P. External ADC needed for the fast conversion time, 10-bit @ 10KHz wasn't good enough for me.
http://forum.arduino.cc/index.php?topic=180769.0

CrossRoads:
fat16lib helped with code to sample at CD quality level, 16-bit@44100 KHz, and store to SD card.

Can you please link me to your final code please (if the code in the link u sent was improved)? Would be a HUGE help!

CrossRoads:
I was using a '1284P, but I think he had it working on just a '328P. External ADC needed for the fast conversion time, 10-bit @ 10KHz wasn't good enough for me.

What external ADC did you used?

Thanks for your reply :slight_smile:

Read the thread, everything we did is there, software and hardware description. I only breadboarded the hardware, never built it up into something I could deploy. Not yet, anyway.