Audio Level Meter


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Default Audio Level Meter

    Hi, I'm trying to read the adc in to create an audio vu (level) meter, but the input is unstable.
    Any suggestion on how to increase its stabilty, but maintain fast conversions, so the dsiplay doesn't lag the audio level ?
    thnks
    Peter
    Pete

  2. #2
    Join Date
    Jun 2005
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Not Stable?

    Hi! I'm not sure what you mean by the input being unstable? Is it too noisy to sample reliably via the analog input of your pic? Perhaps you need a sample and hold circuit or an active full wave recitifier which uses an opamp and an RC filter. Can you post your code and add some more detail to descibe the problem?

  3. #3
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Is your audio source line level or speaker level? If it is from a speaker output then the signal levels will be too high for the pic and cause the instability, try adding a resistor (or a pot) between the PIC input and your audio source to bring it down to a level the pic can handle. You may even want to try using a voltage divider circuit.

    I hope this helps.

    Peter

  4. #4
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Need the schematic

    Hi,

    Please post the schematic and code with the PIC details. Otherwise it might be waste of time for both of us.

    Regards

    Sougata

  5. #5
    ritvarsrizikovs's Avatar
    ritvarsrizikovs Guest


    Did you find this post helpful? Yes | No

    Post Ritvars

    ADC for PIC is very stable!
    I use 10bit ADC and max error ir one bit.
    Need to use 7805 for stable 5V power, inductors and capacitors for smaller pulsation.

    If You need simple Audio level meter, then use rectifier, resistor and capacitor. And Use Vref pin on PIC, to set max value. Thats all.

    For More advanced level meter use OpAmp and create band filter or band filters and build up to 8 band spectrum analyser. With 16 OpAmps it is very simple to build. And for example 16F877 or 18F452 works fast. You can read all 8 channels and display. By software You can add peak detectation and build log scale.

  6. #6
    Excelcier's Avatar
    Excelcier Guest


    Did you find this post helpful? Yes | No

    Default

    I'm fairly new so be gentle, but could someone provide some sample code as a reference for me to build on? I'd really appreciate it.

  7. #7
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ritvarsrizikovs
    and build log scale.
    How i build log scale.
    I use linear scale now.

Similar Threads

  1. Hall Effect flow meter with 16F876
    By revelator in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th March 2010, 20:42
  2. Replies: 24
    Last Post: - 1st December 2009, 08:01
  3. PIC Audio
    By toofastdave in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 27th June 2007, 13:49
  4. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 20:42
  5. Serin2 and Serout2 with or without level converter
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 31st May 2004, 07:10

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts