Connect with us

Audio Signal ADC

Discussion in 'Audio' started by Naphtali, May 29, 2013.

Scroll to continue with content
  1. Naphtali

    Naphtali

    5
    0
    May 29, 2013
    Hi everyone, I'm making my college project and I'm stuck with ADC. My project is about taking audio signal (especially speech audio) is converted to digital. It starts from microphone which is connected to pre-amp module. Pre-amp module output then connected to basic envelope detector circuit (just using normal diode, resistor 1M, capacitor 100nF) after that I connect to basic voltage divider (using R1 = 1k and R2 = 8,2k) then to ADC of ATMega 8 Arduino NG.

    The problem I have is the result from ADC which I displayed to Serial Monitor is far more lower. The longer I speak, the result is getting lower until near zero. Does ADC result always getting lower? My prediction is the envelope detector that causes the problem. Can anyone help me? I'll provide more information if needed. :)

    I'm sorry if my post is not clear enough.
     
  2. poor mystic

    poor mystic

    1,071
    33
    Apr 8, 2011
    Hi :)
    Have you checked the audio signal being presented to the ADC with an oscilloscope?
     
  3. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    Running the audio signal through an envelope detector will not sample the audio signal, only it's peak value over a time period. Is that what you want?

    Show us the circuit. It seems to me that the voltage divider is overwhelming the 1M resistance across the capacitor.

    Bob
     
  4. Naphtali

    Naphtali

    5
    0
    May 29, 2013
    I haven't tried it yet. I'll try to check it tomorrow.

    I've already got the peak value and now I want to make the peak value into digital so I can store the value.

    This one is my pre-amp module
    [​IMG]

    This one is my envelope detector
    [​IMG]

    The result from my envelope detector
    [​IMG]

    From envelope detector, I tried to connect it to ADC channel. But the result I got is always 0 and when I speak to microphone, the value suddenly rises to 1023 and if cut the connection for ADC, it start to decrease slowly. Thanks.
     
  5. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    Your envelope detector has a 1M resistor to provide an RC time constant to drain the capacitor. Connecting this to a voltage divider drastically changes this resistance. You need to put a high impedance buffer (op amp voltage follower) between the envelope detector and the ADC.

    Bob
     
  6. Naphtali

    Naphtali

    5
    0
    May 29, 2013
    Thanks for your quick reply Bob. So basically there's nothing wrong with my envelope detector? My connection should be : Pre-Amp -> Enveolpe Detector -> Buffer -> then ADC? There's no need for voltage divider then?

    For the buffer, which IC Op-amp would you recommend? I tried using LM324 quad op-amp but the buffer output always 0 and 1023. Is it because I left the rest of unconnected op-amp open? For LM324, I'm using single supply line power supply which is 9V battery. Thanks.
     
  7. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    Did you connect the output of the op-amp to the - input? This is how you make a voltage follower.

    Bob
     
  8. Naphtali

    Naphtali

    5
    0
    May 29, 2013
    Yes, I have connected the output to - input of op-amp. But the output that I got is always 0 and 1023. I thought it's because of other unconected op-amp.
     
  9. BobK

    BobK

    7,682
    1,688
    Jan 5, 2010
    Well, it sounds like you have too much amplification. Have you looked at the voltage out of the op amp buffer (of course, it should be the same as the input). If it is greater than the range of the ADC, you would need a divider, or to reduce the gain of the preamp.

    Bob
     
  10. Naphtali

    Naphtali

    5
    0
    May 29, 2013
    I have found the solution. All I need to do is connecting the output of buffer to 820k resistor and to ADC (parallel connection). Thanks for all your help Bob.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...
Electronics Point Logo
Continue to site
Quote of the day

-