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 CCS Technical Support

Sound/Code decoder

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



Joined: 06 May 2007
Posts: 35

View user's profile Send private message

Sound/Code decoder
PostPosted: Wed Sep 12, 2007 1:34 am     Reply with quote

Hi all,
sorry for my english Cool
I have a question Smile.

I have a buzzer that emits many different sounds and, also, 3 error codes:

1°) Bip Bip Bip at 440Hz
2°) Biiip Biiip Biip at 700Hz
3°) Biiiip Biiip Biiiip at 1150Hz

I want to decode these 3 error codes.
I can't touch nothing (the buzzer, the amp) than I must use a little mic to caputre the sound/code.

Besides, the buzzer is situated in a crowded place with people that speaks, screams etc Razz Razz

Is it possible to do with a PIC?

Thanks a lot and sorry, another time, for my english Embarassed Embarassed

Bye
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Sep 12, 2007 5:23 am     Reply with quote

If you are going to capture such tones mixed with the environment sounds, the first
step would be to isolate the desired tones. It is necessary to reject all out of band
signals and unwanted noises, this is not a task for a PIC.
It should be made using a tunable tone decoder. The NE567/LM567C is a well know
-and cheap- Tone Decoder to start.
Then, using a PIC you can decode the signals readind the outputs of the Tone Decoders.

Humberto


Last edited by Humberto on Wed Sep 12, 2007 5:34 am; edited 1 time in total
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Wed Sep 12, 2007 5:32 am     Reply with quote

Beside the hw solution you can also google for DTMF decoder PIC projects on the web. There are also some as software only approach (e.g. this one based on a modified Goertzel algorithm.) running on a PIC, i think you can easily modify the program to look for your frequency instead of the dual-tone DTMF freqs.
SET



Joined: 15 Nov 2005
Posts: 161
Location: Glasgow, UK

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Sep 12, 2007 7:01 am     Reply with quote

A DSPic would be good for this, implement a number of band pass filters in the digital domain, and then extract the envelope.
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