DTMF are dual tone multi frequency tones. These are the tones that you hear when you dial numbers on telephone. Basically these are two frequencies combined to send signals over the telephone lines or wireless medium to interpret the numbers for the telephone exchange system.
Let’s start, we will need:
Steps:
Step 1:
Connecting DTMF sensor with Arduino
Connection:
Step 2:
Connecting aux and mobile phone to DTMF sensor
Step 3:
Copy the code below and paste in Arduino IDE
String x,y,z,t,finalstring;
int d0=7;
int d1=6;
int d2=5;
int d3=4;
int number[]={0101,1000,0100,1100,0010,1010,0110,1110,0001,1001};
void setup() {
pinMode(d0,INPUT);
pinMode(d1,INPUT);
pinMode(d2,INPUT);
pinMode(d3,INPUT);
Serial.begin (9600);
}
void loop() {
Serial.print("\n");
delay(1000);
x=digitalRead(d0);
y=digitalRead(d1);
z=digitalRead(d2);
t=digitalRead(d3);
finalstring=x+y+z+t;
Serial.print("\n");
Serial.print(finalstring);
delay(1000);
}
Step 4:
Giving input via call
Step 5:
Recording values on serial monitor
Conclusion:
Every tone has its own 4 digit binary value which is generated by DTMF sensor and printed on serial monitor