pcbway




DTMF Decoder using MATLAB, dtmf decoder, matlab dtmf, dtmf decoder in matlabHello friends, hope you all are fine and having fun with your lives. Today, I am going to share a project named as DTMF Decoder using MATLAB. In this project, I have designed a keypad in MATLAB using the GUI functionality of MATLAB. After designing the keypad, I have assigned a tune to each of these buttons. Obviously the tune attached to each button is different and when we press any of these buttons, then the MATLAB recognizes the respective button.

This project is designed in MATLAB and I have tested it on MATLAB 2009 and MATLAB 2014 and it works fine on both of them. Code is given below in this tutorial for download. f you got problem in it then ask in comments and I will try to resolve them. So, let’s get started with DTMF decoder in MATLAB.

DTMF Decoder using MATLAB

  • You can download the complete code by clicking the below button:

Download Project Files

  • In this download package, you will get three files and you need to run the file named as decoder.m.
  • When you run the file named as decoder.m, it will start the GUI which will look something as shown in below figure:

DTMF Decoder using MATLAB, dtmf decoder, matlab dtmf, dtmf decoder in matlab

  • That’s the GUI used for DTMF Decoder using MATLAB.
  • You can see a keypad is shown in the above GUI, now I have assigned a specific tune to each of these buttons and the code for assigning this tune is as follows:

  • So, you can see in the above code that I have generated a sine wave and then created a sound using that sine wave.
  • So, we have such sounds assigned to each of these buttons.
  • Now once button is pressed, the respective sound will be activated and rite after that sound, I have added a subroutine for decoding that sound.
  • This subroutine is placed in a separate file named as subdecode.m.
  • This subdecode.m is responsible for DTMF decoding and its code is as follows:

  • Now you can see in this code we are applying FFT on each of these sound signals and then comparing them to get our required button press.
  • Now, when I press any of these buttons then the GUI will look something as shown in below figure:

DTMF Decoder using MATLAB, dtmf decoder, matlab dtmf, dtmf decoder in matlab




  • You can see in the above figure that first graph is showing the DTMF input, which is actual signal which I have converted to sound on button press.
  • The second graph is showing the Filtered Low Frequency Signal while the third one is showing the Filtered High Frequency Signal.
  • The two graphs on the right side are showing the Amplitude of FFT Low Pass and FFT High Pass.
  • Now if you have a look at the Command window of MATLAB then it will give you the button pressed as shown in below figure:

DTMF Decoder using MATLAB, dtmf decoder, matlab dtmf, dtmf decoder in matlab

  • These are the buttons which I have pressed while testing it and it has given me each time which button is pressed.
  • Here’s the video which will give you better idea of How this DTMF decoder using MATLAB is working.


That’s all about DTMF Decoder using MATLAB. If you have any questions, then ask in comments and I will try my best to resolve them. Till next tutorial take care and have fun !!! 🙂

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment