Friday 31 July 2015


MT8870 DTMF Voice Decoder Controller Module with Arduino UNO DUE MEGA2560 sketch



Package :(Does not include Arduino UNO/MEGA2560):
1 PCS MT8870 DTMF decoder module;
1 PCS Male to Male audio wire (3.5mm jack ) ;



             








Description: 

Onboard Complex Frequency Decoder IC MT8870DS

DC Power Supply Voltage:4.5V-5.5V(Typical: 5V)
Operating Temperature : -40-+85 °C
IO Drive : Current Maximum 10mA.
PCB Size : 25.4x25.4MM
This decoding module is for mobile and fixed telephone voice dialing decoding function
Designed specifically for ARDUINO Board.also use for other MCU(AVR PIC MSP430 STM32 ARM7/9/10/11 FPGA/CPLD)
Does not require any wiring, can be inserted directly into the UNO/MEGA2560/DUE board to use.
12 Digital outputs decode mobile and fixed telephone keys (0-9, * #).Another 4 Digital output(ABCD) can use "DTMF Dial" Software control.

Arduino uno/mega2560 Code fragment:

//*******************************************//
#include <FlexiTimer2.h>

int STD = A0;
int Q1 = A1;
int Q2 = A2;
int Q3 = A3;
int Q4 = A4;

....

//Check once every 5 ms
void dtmf_decode(void)
{

....

}

void setup()
{
.....
}

void loop()
{

//Complete the decoding
if(Decod_finished)
{
Decod_finished = 0;

Serial.print(" Activate : " );

switch(Q_dat){
case 1 : Serial.print("1 \n" ); break;
case 2 : Serial.print("2 \n" ); break;
case 3 : Serial.print("3 \n" ); break;
case 4 : Serial.print("4 \n" ); break;
case 5 : Serial.print("5 \n" ); break;
case 6 : Serial.print("6 \n" ); break;
case 7 : Serial.print("7 \n" ); break;
case 8 : Serial.print("8 \n" ); break;
case 9 : Serial.print("9 \n" ); break;
case 10 : Serial.print("0 \n" ); break;
case 11 : Serial.print("* \n" ); break;
case 12 : Serial.print("# \n" ); break;
case 13 : Serial.print("A \n" ); break;
case 14 : Serial.print("B \n" ); break;
case 15 : Serial.print("C \n" ); break;
default : Serial.print("D \n" ); break;
}
.....


//****************************************************************************//




  
    

Typical application for Mobile phones:




    


Typical application for DTMF Dial Software:








  
   
    


No comments:

Post a Comment