Recording audio using the VS1053 encoder chip - Page 1
Forum section: electronics / projects

author: yamanoorsai
author_rank: Contributor
timestamp: March 31, 2015, 08:33:55 pm
content: I am trying to record audio using the MAX4466 op-amp breakout from Adafruit (link) and VS1053 shield (link)that I bought from Adafruit. I am able to record audio by connecting OUT --> MICP, GND --> MICN, GND -> GND.The recorded audio seems to have a very low gain i.e. I am barely able to hear what has been recorded in a room. I tried varying the gain using a potentiometer. The recordings are generally noisy so I am not able to listen to what is actually being recorded.The recordings are marred by some noise (Link for thesample). While I am not trying to achieve high quality audio using an arduino + a breakout on a breadboard, I would like to record any conversation within a few feet (of course with the consent of people being recorded).My questions are:a) How do I avoid the noise that is affecting the quality of the recording?b) How do I improve the gain of the recording so that I am able to hear something when I play the recorded file?c) If it is not possible using the MAX4466 breakout, is there an alternative to record the audio?

author: flynwill
author_rank: Regular Contributor
timestamp: April 01, 2015, 02:51:57 pm
content: Getting a microphone pre-amplifier to work quietly near a microprocessor can be a very challenging task. How far away are the people talking in your test recording? The best your are going to get on that microphone capsule is a noise floor equivalent to about 35 dBA SPL.Still in your recording the bulk of the noise is mains hum and digital whine that is probably coming from the Arduino's power supply.According to the Ada-fruit spec sheet they've got the MAX4466 setup for a maximum gain of a bit over 40 dB (which is just as well, at that much gain the bandwidth will be down to about 6kHz). However combined with the 20 dB of again on the mic input of the VS1053 you ought to have enough gain.Things I would try:Run the little microphone board from it's own battery, maybe 3 AAA cells in a small holder. That will isolate it from the power supply noise of the Arduino. Run only two wires from the mic module to your VS1053 shield MicP and MicN, preferably this connection should be shielded cable, but if that's not available twist the wires tightly together and keep them as short as practical.Turn the gain control on the microphone module all the way up.

author: yamanoorsai
author_rank: Contributor
timestamp: April 02, 2015, 05:52:20 pm
content: Thanks. Let me try these solutions and I'll let you know how it goes.

author: yamanoorsai
author_rank: Contributor
timestamp: April 09, 2015, 03:46:17 am
content: An update on this.. I powered the microphone to an external power supply. The noise is better than earlier. I recorded a sample (link) where I was playing a music box and recorded. I am still experimenting this and trying to make this better by getting rid of that buzzing sound in the latest sample.If I get this working, I am wondering how to create a "clean" power source for the microphone board.

author: JoeN
author_rank: Frequent Contributor
timestamp: April 09, 2015, 07:36:43 am
content: Quote from: yamanoorsai on April 09, 2015, 03:46:17 amI would use a wall wart running to a linear regulator. The fact that it isn't sharing the regulator with the microcontroller anymore should help. Or you could use batteries if that is a possibility.

author: flynwill
author_rank: Regular Contributor
timestamp: April 10, 2015, 12:03:48 am
content: Yes that buzz sounds like it is power-line related, but it's a lot nastier (many more harmonics) that the typical coupling from nearby electrical gear. Are you holding the little mic board while doing this recording? It could be you touching one of the more sensitive parts of the circuit.Otherwise I'd start with a battery (or battery into a linear regulator eg 78L05) as the power source for the mic and work my way up from there.

author: yamanoorsai
author_rank: Contributor
timestamp: April 17, 2015, 10:11:10 am
content: The microphone was on a breadboard and I connected using wires. I had another opamp breakout board that made use of the MAX9814 opamp. The results were impressive with the MAX9814 opamp breakout. (This is alinkto the sample that was recorded using the MAX9814 opamp and post processed to reduce noise).I think I have a candidate opamp now. The next step is reducing noise while recording. I plan to make use of the suggestions presented in my question:1. Keeping the cable length as short as possible and shielded.2. using a clean power source. In the case of the MAX9814, I made use of a AAA battery pack. I am going to explore if something else is possible so that I don't have to constantly replace the batteries.