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: AustraliaPosts: 926 |
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 KingdomPosts: 671 |
I don't think it is going to be an easy job using the 'mite only... Try by connecting MT8870D to it. http://rittle.org -------------- |
||||
Gordz Regular Member Joined: 10/08/2013 Location: AustraliaPosts: 55 |
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 StatesPosts: 8 |
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 |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3804 |
Some explanation etc hereDTMF John |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
That is a very good explanation and worth some experimenting. Jim VK7JH MMedit MMBasic Help |
||||
Print this page |