Anda di halaman 1dari 14

Bentuk Gelombang DTMF (Dual Tone Multiple Frequency)

Oleh: Nama NIM Kelas : Tri Cardo Purba : 1205061050 : TK 3A

PROGRAM STUDI TEKNIK TELEKOMUNIKASI JURUSAN TEKNIK ELEKTRO POLITEKNIK NEGERI MEDAN

Dual Tone Multiple Frequency (DTMF) adalah teknik mengirimkan angka angka pembentuk nomor telpon yang di-kode-kan dengan 2 nada yang dipilih frekuensi yang sudah ditentukan.

Dari table di atas terlihat bahwa di dalam DTMF ada 16 nada berbeda. Masing-masing nada merupakani penjumlahan dari dua buah frekuensi, satu dari suatu rendah dan satu dari frekuensi tinggi. Masing-Masing tombol ditetapkan oleh penempatan kolom dan baris nya. Sebagai contoh tombol 5 terdapat pada baris 2 dan kolom 2 sehingga mempunyai frekuensi 770+ 1336= 2106 Hz . Berikut gambar gelombang frekuensi dengan menggunakan program Matlab.

TOMBOL 1 Programnya sebagai berikut:


t1=0:0.01:20; f1=697; f2=1209; T=1394; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 1 % frekuensi rendah tombol 1

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','blue','LineWidth', 2); title('DTMF Tombol 1')

Hasil Plot:

TOMBOL 2 Programnya sebagai berikut:


t1=0:0.01:20; f1=697; f2=1336; T=1394; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 2 % frekuensi rendah tombol 2

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','red','LineWidth', 2); title('DTMF Tombol 2')

Hasil Plot:

TOMBOL 3 Programnya sebagai berikut:


t1=0:0.01:20; f1=697; f2=1477; T=1394; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 3 % frekuensi rendah tombol 3

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','yellow','LineWidth', 2); title('DTMF Tombol 3')

Hasil Plot:

TOMBOL 4 Programnya sebagai berikut:


f1=770; f2=1209; T=1540; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 4 % frekuensi rendah tombol 4

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','black','LineWidth', 2); title('DTMF Tombol 4')

Hasil Plot:

TOMBOL 5 Programnya sebagai berikut:


t1=0:0.01:20; f1=770; f2=1336; T=1540; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 5 % frekuensi rendah tombol 5

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','green','LineWidth', 2); title('DTMF Tombol 5')

Hasil Plot:

TOMBOL 6 Programnya sebagai berikut:


t1=0:0.01:20; f1=770; f2=1477; T=1540; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 6 % frekuensi rendah tombol 6

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','Magenta','LineWidth', 2); title('DTMF Tombol 6')

Hasil Plot:

TOMBOL 7 Programnya sebagai berikut:


t1=0:0.01:20; f1=852; f2=1209; T=1704; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 7 % frekuensi rendah tombol 7

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','RED','LineWidth', 2); title('DTMF Tombol 7')

Hasil Plot:

TOMBOL 8 Programnya sebagai berikut:


t1=0:0.01:20; f1=852; f2=1336; T=1704; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 8 % frekuensi rendah tombol 8

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','BLUE','LineWidth', 2); title('DTMF Tombol 8')

Hasil Plot:

TOMBOL 9 Programnya sebagai berikut:


t1=0:0.01:20; f1=852; f2=1447; T=1704; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 9 % frekuensi rendah tombol 9

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','YELLOW','LineWidth', 2); title('DTMF Tombol 9')

Hasil Plot:

TOMBOL 0 Programnya sebagai berikut:


t1=0:0.01:20; f1=941; f2=1336; T=1882; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol 0 % frekuensi rendah tombol 0

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','BLACK','LineWidth', 2); title('DTMF Tombol 0')

Hasil Plot:

TOMBOL (*) Programnya sebagai berikut:


t1=0:0.01:20; f1=941; f2=1209; T=1882; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol (*) % frekuensi rendah tombol (*)

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','MAGENTA','LineWidth', 2); title('DTMF Tombol *')

Hasil Plot:

TOMBOL (#) Programnya sebagai berikut:


t1=0:0.01:25; f1=941; f2=1477; T=1882; t=t1/T; y1=sin(2*pi*f1*t) ; y2=sin(2*pi*f2*t); y3=y1+y2 subplot(3,1,1) plot(t,y1) title('LF') % feekuensi tinggi tombol (#) % frekuensi rendah tombol (#)

% figure pada baris pertama

subplot (3,1,2) plot (t,y2) title('HF')

% figure pada baris kedua

subplot(3,1,3) % figure pada baris ketiga plot(t,y3,'color','yellow','LineWidth', 2); title('DTMF Tombol (#)')

Hasil Plot:

Anda mungkin juga menyukai