raphnet.net banner
Cette page est aussi disponible en français
Hardware > DTMF decoder
Overview | The idea | Pictures | Software | Disclaimer
Overview [cacher]
In a old answering machine, I discovered a very interesting IC: the CD22204. It is a DTMF (Dual Tone Multi Frequency) decoder. DTmF is a standard using combination of different frequencies, assotiated to numbers and letters (0-9, A-D, * and #) as in the following table:
1209Hz1336Hz1477Hz1633Hz
697Hz123A
770Hz456B
852Hz789C
941Hz*0#D

goto top Up



The idea [cacher]
I decided to use this IC to send the decoded characters to a computer using a serial port. This can be used for many things, such as controlling lights remotely with a phone or radio.

At the moment, I use the decoder with my Phone audio interface to log the places where I call, and collect statistics about who are call the most, etc. Just for fun ;)

The main components are:
  • CD22204 (DTMF Decoder)
  • At90s2313 (Microcontroller to communicate with the host)
  • MAX232 (To get rs232 voltage levels ~(+-12Volts))
How it works:
Each time a tone is recognized by the CD22204, the MCU translates it to an ascii value, and sends it to the computer via the serial link, at 9600 Bauds, 8N1.

The protocol is really simple right now, but one day I might enhance it and make the circuit communicate on a rs485 bus.

goto top Up



Pictures [cacher]
Here are a few pictures of my decoder:





goto top Up



Logiciel [cacher]
I wrote a progam to log the calls I do. It is a simple daemon running under Linux. It is named dtmflogd.

Here is the source code:
dtmflogd.tar.gz

goto top Up



Disclaimer [cacher]
I am not responsible if you use this for any reprehensible actions.
I cannot be held responsible for any damages that could occur to you or your equipment while following the procedures present on this page. Also, I GIVE ABSOLUTELY NO WARRANTY on the correctness and usability of the informations on this page. Please note, however, that the procedures above have worked in my case without any damages or problems.

Now you cannot say that I did not warn you :)

goto top Up



Other hardware stuff on this site:

Hardware section index | Snes controller on a PC | 100 Watts audio amplifier | PSX memory card reader | High voltage and electric sparks | Insulation transformer, variac, etc... | Using Nixie display tubes | Dreamcast VGA output | Laser show | Vacuum tube scope | Stepper driver | Remote reset for NES | Heating PCB | Projects pictures | Phone line audio interface | DTMF decoder | PC Caller ID decoder | VGA to "Sync-On-Green" cable | Arcade style controller for Snes/PC | Snes APU on a PC

Trademarks used in this site are the property of their respectives owners.
If you have questions or comments write to raph@raphnet.net
Coded manually using edited with VIM