title: Recording wav file Using Arduino
body: <p>I am bit stuck, how can I make my arduino record into .wav files?
  The arduino is connected with a microphone, and am using the Arduino ADC.
  Any ideas? Will I be able to play them back using my pc?</p>
  
  <p>many question cross my head</p>
  
  <p>1- Is this possible using an arduino Uno</p>
  
  <p>2- Is this possile using just a microphone connected to the Arduino ADC </p>
  
  <p>3- if yes how can i get the wav format.</p>
  
  <p>The idea gonna be like this </p>
  
  <p><strong>Ardiuno microphone-->Uno ADC -->arduino (library making wav sound)--> Storing data to a an SD card connected via SPI or maybe (connecting a Raspberry as a storage device)</strong></p>
  
  <p>also another question:</p>
  
  <p>4- Do I need an amplifier due to the act that analog output from the microphone is very weak so the ADC couldn't detect the variation</p>
  
  <p><em>In another log i had seen that i should connect the microphone to a level shifter.And that cause of the analog output is AC so i have to make the negative wave as 0 (for 10 it ADC) 
  the zero point as 512 and the positive as 1024 (10 bit ADC).(really i'm not sure about this part)</em></p>
  
  <p>doing some research i got this library "<a href="https://github.com/TMRh20/TMRpcm/wiki/Advanced-Features#recording-audio">https://github.com/TMRh20/TMRpcm/wiki/Advanced-Features#recording-audio</a>" which is supposed to do the job, <strong>I mean making some wav file from the analog input</strong>.</p>
  
  <p>So any help would be appreciated
  Thx in advance,</p>
  
  <p>Salah Laaroussi</p>