BS2 and DTMF detection
Sal
Posts: 2
I am hoping you would have some input on this email.
I appreciate your time.
I am intersted on DTMF detection using the Basic Stamp 2 from parallax. I know there are dtmf chips outhere I can use, as I matter of fact I have one. But I am like to do this for the fun and learning experience.· It is a nice challenge.
The BS2 only has a COUNT & PULSIN instructions that can count number of pulses on a pin and mearue how long each pulse is (with minimums specified).
Is the following sensible/on right path:
1)·Feed·a Comparator output, the inputs of which are an amplified DTMF signal and a 'relaxation oscillator output, into a BS2 pin and simply use COUNT to count the number of pulses.· Corrolate # of pulses to the frequency tested, etc.
The oscilator basically would chopp up the DTMF siganal via the comparator into 40,000 pulses(with a 40kHz oscillator, is this an overkill?), and since COUNT counts the # of pulses on the pin, that would give me the frequency.·
2)My original idea is to break apart the dtmf signal into its two componets, run each component to separate schmidt trigger and feed the trigger outputs to Stamp 2 pins and use COUNT.·
The problem is, I do not know what kind of a circuit to use to separate the two signals,· err.
Do you think just feeding the actual dtmf signal (amplified ) and use COUNT would work?
Thank you,
SL
js_94@hotmail.com
I appreciate your time.
I am intersted on DTMF detection using the Basic Stamp 2 from parallax. I know there are dtmf chips outhere I can use, as I matter of fact I have one. But I am like to do this for the fun and learning experience.· It is a nice challenge.
The BS2 only has a COUNT & PULSIN instructions that can count number of pulses on a pin and mearue how long each pulse is (with minimums specified).
Is the following sensible/on right path:
1)·Feed·a Comparator output, the inputs of which are an amplified DTMF signal and a 'relaxation oscillator output, into a BS2 pin and simply use COUNT to count the number of pulses.· Corrolate # of pulses to the frequency tested, etc.
The oscilator basically would chopp up the DTMF siganal via the comparator into 40,000 pulses(with a 40kHz oscillator, is this an overkill?), and since COUNT counts the # of pulses on the pin, that would give me the frequency.·
2)My original idea is to break apart the dtmf signal into its two componets, run each component to separate schmidt trigger and feed the trigger outputs to Stamp 2 pins and use COUNT.·
The problem is, I do not know what kind of a circuit to use to separate the two signals,· err.
Do you think just feeding the actual dtmf signal (amplified ) and use COUNT would work?
Thank you,
SL
js_94@hotmail.com
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
There is a PBASIC command intended for creating DTMF tones. The command is DTMFOUT and you can find out more about it in the PBASIC Help File or the PBASIC Reference Manual.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.parallax.com/dl/docs/prod/appkit/CM8880Transceiver.pdf
Check out the web page below it will give you some more insight as what it would take.
Mike
http://www.geocities.com/constantinescuradu/content/dtmf.htm