CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

measure audio level with ADC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
fvnktion



Joined: 27 Jun 2006
Posts: 39

View user's profile Send private message

measure audio level with ADC
PostPosted: Wed Aug 12, 2009 1:13 pm     Reply with quote

I have a requirement to be able to be able to measure the audio level of an audio line. I am wondering if anyone has done anything like this using an adc of of PIC?

I am thinking about setting up an integrator circuit with some time constant to capture how much audio signal was present over a period. The ADC value would roughly correspond to the volume?

Any thoughts on how well an ADC would interpret this as the level of volume?
languer



Joined: 09 Jan 2004
Posts: 144
Location: USA

View user's profile Send private message

PostPosted: Wed Aug 12, 2009 2:29 pm     Reply with quote

Do you have a definition for the audio signal? Frequency Range? Periodic or not?

Ideal would be an RMS-type detection (integrator comes close), or LOG-detection. Less ideal, but widely used would be peak-detection.

Few links which showed up in Google:
fvnktion



Joined: 27 Jun 2006
Posts: 39

View user's profile Send private message

PostPosted: Wed Aug 12, 2009 4:38 pm     Reply with quote

I'll have a look at the links.

Quote:

Do you have a definition for the audio signal? Frequency Range? Periodic or not?


The signal will be the output stage of an audio amp from an MP3 player. The signal, so mixed frequencies from 50 - 16khz or so. Non-Periodic, could be any song or audio signal coming from the media source.

Quote:
Ideal would be an RMS-type detection (integrator comes close), or LOG-detection. Less ideal, but widely used would be peak-detection.


I'll take a look at these methods.

Thanks
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed Aug 12, 2009 4:51 pm     Reply with quote

a full wave RMS or simple 2 diode AVErage value detector will make the ripply DC input you are after - feeding audio direct will just return random trash
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group