Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:44 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Decoding DTMF

Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 926
Posted: 12:34pm 05 Oct 2013
Copy link to clipboard 
Print this post

I thought I might throw this one onto the think tank. Has anyone any ideas on how to decode DTMF in basic with a 'mite?
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 12:59pm 05 Oct 2013
Copy link to clipboard 
Print this post

I don't think it is going to be an easy job using the 'mite only...
Try by connecting MT8870D to it.Edited by kiiid 2013-10-06
http://rittle.org

--------------
 
Gordz
Regular Member

Joined: 10/08/2013
Location: Australia
Posts: 55
Posted: 06:23pm 05 Oct 2013
Copy link to clipboard 
Print this post

Its pretty tricky because is is two frequencies at once. MT8870 is the way to go for sure
 
phiber
Newbie

Joined: 19/09/2013
Location: United States
Posts: 8
Posted: 01:01pm 12 Oct 2013
Copy link to clipboard 
Print this post

This is not as hard as it first seems in software. While it's obviously really easy to add an MT8870 to your circuit, if you'd rather do without an extra chip, the PIC32 has more than enough processing power to do DTMF detection in software.
The textbook algorithm most commonly used in telephony for DTMF and MF detection is the Goertzel algorithm, which is a type of digital filter. You can read about the math behind it in wikipedia.
There is a REALLY good example of Goertzel purely in software, used in the Asterisk software PBX. You can peruse the DSP code here. I chose the older Asterisk 1.0 since the codebase was simpler back then.

Regards,
Mark


  Gordz said   Its pretty tricky because is is two frequencies at once. MT8870 is the way to go for sure
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 03:15am 13 Oct 2013
Copy link to clipboard 
Print this post

Some explanation etc hereDTMF

John
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 10:21am 13 Oct 2013
Copy link to clipboard 
Print this post

  JohnS said   Some explanation etc hereDTMF

John


That is a very good explanation and worth some experimenting.

Jim
VK7JH
MMedit   MMBasic Help
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024