DT-I/O. Application Note AN211. Komunikasi data saat ini terus dikembangkan dan diimplementasikan di dalam setiap bidang, seperti proses

dokumen-dokumen yang mirip
DT-I/O. DT-I/O Application Note

DT-I/O DT-I/O. Application Note. Application Note AN193

DT-Sense Application Note

PC-Link. Gambar 1 Blok Diagram AN201. AGND (J3 pin 1) Pin 1 VCC (J3 pin 2) Pin 3 Dapat dipilih salah satu dari A0 s.d. A7 (J3 pin 3 s.d.

DT-I/O. I/O Application Notes AN164 Komunikasi Jarak Jauh antara 2 PC dengan RS-485. Application Note AN164

DT-I/O DT-I/O. Application Note AN171

DT-AVR. Application Note AN213

DHT11 Temperature and Humidity Sensor Board Gambar 1 Blok Diagram AN196. 5V (Power) GND (Power)

DT-AVR. Application Note AN214

PC-Link. 1x Komputer / Laptop dengan OS Windows 2000, Windows XP atau yang lebih tinggi. Gambar 1 Blok Diagram AN200

PC-Link. PC-Link. Application Note AN202

PC-Link Application Note

WIZnet. Application Note AN178 Wireless IP Printer 1 Oleh : Tim IE

SPC Application Note. SPC Blue-Link (J2) Tabel 1 Hubungan SPC Blue-Link Dengan Komputer

DT-AVR. Application Note AN192 - Web Based Temperature Monitoring System Oleh : Tim IE

DT-Sense Current Sensor With OpAmp Gambar 1 Blok Diagram AN212

PC-Link Application Note

WIZnet. Application Note AN179 Wireless IP Printer 2 Oleh : Tim IE

DT-AVR Application Note

DT-AVR Application Note

DT-AVR Application Note AN191 SMS Gateway dengan GSM STARTER KIT

DT-PROTO Application Note AN219 Kontrol Lampu Secara Nirkabel berbasiskan Smarphone Android dan

Gambar 1 Blok Diagram AN190. P1.0 (J3 pin 3) IN1 (J1 pin3) Tabel 1 Hubungan antar PC-Link Serial PPI dan DT-I/O Quad Relay Board12V

DT-AVR Application Note

DT-AVR Application Note. Gambar 1 Blok Diagram AN133

EMS Application Note. 1x Kabel USB 1x Komputer (Memiliki wireless adapter, serta wireless network melalui router atau program Connectify)

DT-BASIC Application Note

DT-SENSE Application Note

DT-AVR Application Note

DT-AVR Application Note

DT-BASIC Application Note

DT-ARM Application Note. AN221 Web Server I/O Remote

SPC Application Note. SPC IR Transceiver. Gambar 1 Blok Diagram AN159. RX (PORTD.0 J13 pin3 / J4 pin2)

DT-AVR Low Cost Nano System. Gambar 1 Blok Diagram Remote TV Berbasis ATtiny2313. DT-I/O I/O Logic Tester

DT-AVR DT-AVR Application Note

DT-AVR Application Note

de KITS Application Note AN51 How 2 Use de KITS SPC Character LCD w/ PC

SPC SPC. SPC Application Note AN175 Bluetooth Mobile Robot. Application Note AN175

STARTER KIT Application Note AN162 Web Scrapping Dengan GSM STARTER KIT

DT-AVR Application Note

DT-AVR Application Note

DT-51 Application Note

DT-51 Application Note

DT-BASIC Mini System. Gambar 1 Blok Diagram AN132

Gambar 1 Blok Diagram AN190. P1.0 (J3 pin 3) IN1 (J1 pin3) Tabel 1 Hubungan antar PC-Link Serial PPI dan DT-I/O Quad Relay Board12V

DT-IO Application Note

DT-AVR. DT-AVR Application Note AN207 Library USB Controller untuk Komunikasi Serial pada DT-AVR Inoduino

STARTER KIT Application Note AN157 Browsing Internet Via GSM STARTER KIT

AVR Application Note AN95 Wireless Chatting with PC

PC-Link Application Note

DT-AVR Low Cost Micro System. Gambar 1 Blok Diagram AN154. RXD (J13 Pin 3) TXD (J8 Pin 4) GND (J10/J11/J12/J13 Pin 1) GND (J7/J8 Pin 1)

DT-AVR Application Note

DT-SENSE Application Note

DT-AVR DT-AVR ApplicationNote

DT-51 Application Note

How2Use DT-51 AT89C51XXX BMS. Oleh: Tim IE. Gambar 1 Tata Letak DT-51 AT89C51XXX BMS

DT-ARM DT-ARM Application Note

DT-BASIC Application Note

Starter Kit Application Note AN165 - Update Tampilan Character LCD Berbasis USB Flash Disk

Gambar 1 Diagram Blok AN215. DT-AVR Maxiduino DT-Proto Header Shield DT-I/O Level Converter

DT Series Application Note

DT-AVR. DT-AVR Application Note AN208 Library USB Controller untuk Komunikasi Paralel pada DT-AVR Inoduino

DT-AVR Application Note Monitoring Suhu Nirkabel (Bahasa BASIC)

asic Application Note AN97 BASIC Chatting

DT-AVR Application Note

DT-AVR. DT-AVR Application Note AN209 Library USB Controller with SPI Communication based DT-AVR Inoduino

SureLink A. Gambar 1 Blok Diagram AN63

DT-AVR Application Note

BAB III PERENCANAAN DAN PEMBUATAN ALAT

AVR Application Note AN187 Monitoring Suhu Nirkabel (Bahasa C)

PC-Link Application Note

DT-51 Application Note

DT-AVR. Gambar 1 Blok Diagram AN177

DQI-03 DELTA ADC. Dilengkapi LCD untuk menampilkan hasil konversi ADC. Dilengkapi Zero offset kalibrasi dan gain kalibrasi

DT-AVR Low Cost Nano. System. Gambar 1 Blok Diagram AN153. RXD TXD (J8 Pin 4) GND GND (J8 Pin 1)

DT-AVR. AVR Application Note AN160 Graphic LCD Dengan Bahasa C. Application Note AN160

DT-AVR Application Note

Gambar 1 Blok Diagram AN217. DT-AVR Maxiduino DT-Proto Header Shield DT-I/O Level Converter

DT-AVR Application Note

DT-51 Application Note

DT-51 Application Note

DT-SENSE Application Note AN168 Color Game. Gambar 1 Blok Diagram AN168

SPC Application Note

III. METODE PENELITIAN. Lampung dan di Masjid Al Wasi i Universitas Lampung dimulai pada bulan Maret

DT-AVR DT-AVR. Application Note AN203

Gambar 1 Blok Diagram AN72. (a) (b) (c) Gambar 2 SPC Seven Segment (a), DT-51 Low Cost Micro System (b), dan DT-51 Low Cost Nano System (c)

SPC SPC. SPC Application Note AN181 - SPC for Hexapod Robot

DT-51 Application Note

Application Note. Adapun blok diagram secara keseluruhan adalah sebagai berikut: AN156 Touch Screen Panel Graphic LCD 320 x 240

BAB III PERANCANGAN ALAT

PC-Link Application Note

BAB III PERANCANGAN SISTEM

Wireless Gamepad Interface

BAB 3 PERANCANGAN ALAT

BAB III METODE PENELITIAN DAN PERANCANGAN SISTEM. patok, serta pemasangan sensor ultrasonik HC-SR04 yang akan ditempatkan pada

AVR Application Note AN180 Simple Web Server

Menampilkan nilai dari 8 kanal ADC ke Port Serial PC oleh Modul ST-51 dan AD-0809 V2.0

BAB IV PENGUJIAN DAN ANALISA ALAT

DT-51 Application Note

BAB III METODE PENELITIAN DAN PERENCANAAN SISTEM. komputer, program yang dibuat menggunakan bahasa pemrograman C#.

Transkripsi:

DT-I/O DT-I/O Application Note AN211 Pemantuan Suhu Melalui Koneksi TCP/IP Oleh : Tim IE Komunikasi data saat ini terus dikembangkan dan diimplementasikan di dalam setiap bidang, seperti proses pejualan atau lebih dikenal Point of Sales (POS), administrasi, CCTV dan bahkan ke pabrik untuk pemantauan dan pengaturan proses produksi. Pada aplikasi ini akan membahas salah satu contoh implementasi komunikasi data antara PC dengan sensor suhu melalui antarmuka TCP/IP. Sensor suhu yang digunakan pada aplikasi ini tidak menggunakan sensor suhu yang sudah memiliki antarmuka TCP/IP melainkan sensor suhu buatan Innovative Electronics yang memiliki antarmuka UART dan I2C. Agar sensor ini dapat menerima komunikasi data melalui TCP/IP, maka digunakan tambahan modul DT-I/O TCP/IP to UART Converter yang merupakan modul converter untuk antarmuka TCP/IP to UART ataupun sebaliknya. Pada bagian PC, digunakan software sederhana yang bertindak sebagai client. Software ini dikembangkan dengan menggunakan bahasa pemrograman basic dan compiler Visual Basic 2008 (VB.NET). Aplikasi ini sangat cocok diimplementasikan pada pabrik, perkantoran ataupun smart house. Data suhu dapat langsung dipantau dari jarak jauh atau bahkan luar kota / luar negeri apabila terdapat koneksi internet di dalam jaringan tersebut. Modul-modul yang digunakan pada AN211 adalah sebagai berikut : DT-Sense Temperature Sensor DT-I/O TCP/IP to UART Converter Adaptor 5VDC / 1A Kabel LAN Kabel jumper (sesuai keperluan) Adapun blok diagram dari AN211 adalah sebagai berikut : Gambar 1 Blok Diagram AN211 Hubungan antar modul adalah sebagai berikut : DT-I/O TCP/IP to UART Converter J2 pin 1 (GND) J2 pin 2 (VCC) J2 pin 3 (TXD) J2 pin 4 (RXD) DT-Sense Temperature Sensor J1 pin 1 (GND) J1 pin 2 (VCC) J1 pin 3 (RX TTL) J1 pin 4 (TX TTL) Tabel 1 Koneksi DT-I/O TCP/IP to UART Converter dengan DT-Sense Temperature Sensor Page 1 of 8

Sesuaikan jumper pada DT-I/O TCP/IP to UART Converter sesuai dengan gambar berikut ini : Gambar 2 Pengaturan Jumper Pada DT-I/O TCP/IP to UART Converter Gambar 3 Ilustrasi Koneksi Antar Modul AN211 Hubungkan DT-I/O TCP/IP to UART Converter dengan adaptor 5VDC pada J8 (Perhatikan Polaritas!). Pastikan LED Power pada DT-I/O TCP/IP to UART Converter menyala. Kemudian hubungkan kabel LAN tipe crossover pada MAG Jack di DT-I/O TCP/IP to UART Converter dengan RJ45 pada PC. Page 2 of 8

Konfigurasi untuk alamat IP di PC adalah sebagai berikut : Gambar 4 Pengaturan alamat IP di PC Jalankan software WIZ1x0_CFG.exe yang dapat ditemukan di folder WIZ1x0_105SR_config_V2.1. 1. Tekan tombol Search. Jika semua koneksi benar, maka akan muncul list hardware pada bagian kiri. Jika tidak muncul setelah menekan tombol Search, coba periksa kembali kabel LAN, pengaturan IP di PC. Gambar 5 Daftar Device Untuk DT-I/O TCP/IP to UART Converter 2. Lakukan pengaturan IP dan baudrate pada modul DT-I/O TCP/IP to UART Converter sebagai berikut : a. Bagian Network : i. Hilangkan tanda centang pada Enable Serial Debug Mode ii. Pilih IP Static iii. Local IP : 192.168.11.2 dengan nilai Port : 5000 iv. Subnet : 255.255.255.0 v. Gateway : 192.168.11.1 vi. Server IP : 192.168.11.10 dengan nilai Port : 5001 vii. Pilih mode Server. Page 3 of 8

Gambar 6 Pengaturan Alamat IP dan PORT pada DT-I/O TCP/IP to UART Converter b. Bagian Serial : i. Speed : 38400 ii. DataBit : 8 iii. Parity : None iv. Stop Bit : 1 v. Flow : None vi. Tekan tombol Setting (di sebelah kanan tombol Search) untuk melakukan upload pengaturan ke DT-I/O TCP/IP to UART Converter. Gambar 7 Pengaturan Komunikasi Serial pada DT-I/O TCP/IP to UART Converter Page 4 of 8

Kemudian jalankan software tcp_ip_client.exe, isikan alamat IP, PORT dan interval pengambilan data. Gambar 8 Pengaturan Alamat IP DT-I/O TCP/IP to UART Converter Tekan tombol Connect agar mendapatkan data dari DT-Sense Temperature Sensor. Gambar 9 Tampilan Software untuk AN211 Berikut ini alur program untuk AN211 : Start Mengisikan nilai 1 sampai 100 pada kolom Interval END Gambar 10 Alur Program pada FormLoad Page 5 of 8

Start Connect Connect atau Disconnect? Disconnect Data sudah lengkap? Tidak Ya Nilai Interval x 1000 1. Disable Timer 2. Tutup koneksi 3. Ganti tulisan menjadi Connect 4. Enable property input data Tidak Koneksi berhasil? Ya 1. Aktikan Timer 2. Ganti tulisan menjadi Disconnect 3. Disable property input data END Gambar 11 Alur Program Penekanan tombol cmd_set (Connect/Discoonect) Page 6 of 8

Start Disable Timer Kirim karakter 00H Tunggu dan terima data Data ditampung di variable temp Tidak Apakah data yang didapat bukan Error? Ya Tutup Koneksi Ganti tulisan menjadi Connect Aktifkan Timer Tampilkan hasil di lbl_temp END Gambar 12 Alur Program Pada Event Timer Berikut ini penjelasan singkat untuk alur program AN211 : 1. FormLoad a. Mengisikan pilihan waktu interval untuk pengambilan data. Pilihan interval waktu yang disediakan adalah 1 detik 100 detik. 2. Penekanan tombol cmd_set (Connect/Disconnect) a. Memeriksa tulisan di property cmd_set, apakah Connect atau Disconnect. Jika tulisan connect maka akan melakukan proses koneksi data. Jika Disconnect maka akan melakukan proses penutupkan koneksi data. b. Pada poin ini jika tulisan Connect, maka akan memeriksa kolom isian, IP, Port dan interval. Jika salah satu kolom kosong, maka akan di tampilkan tulisan Lengkapi terlebih dahulu data untuk IP, Port dan Interval dan proses dibatalkan. Jika tulisan Disconnect maka akan mematikan timer, menutup koneksi, mengubah tulisan di cmd_set menjadi Connect dan mengaktifkan property pengisian data. c. Jika semua kolom isian terpenuhi, maka mengambil nilai interval yang ada di cmb_interval dan dikalikan 1000. Hal ini dikarenakan satuan dari Timer adalah millisecond. d. Setelah itu melakukan proses konesi data. Jika berhasil maka akan mengaktifkan timer, mengubah tulisan di cmd_set menjadi Disconnect dan mematikan fungsi pengisian data. Page 7 of 8

3. Event Timer a. Properti Timer di-disable agar tidak bekerja. b. Mengirimkan karakter dari 00H ke DT-Sense Temperature Sensor melalui rutin SendData. Data ini akan dikirimkan melalui koneksi TCP/IP yang telah dilakukan. c. Setelah itu program akan menunggu dan mengambil data balasan dari DT-Sense Temperature Sensor dan di tampung di variable temp. d. Kemudian data diperiksa apakah tidak sama dengan Error. Jika benar, maka property timer kembali diaktifkan dan data suhu akan ditampilkan di lbl_temp. Jika tidak, maka koneksi TCP/IP akan ditutup dan property tulisan untuk cmd_set diganti Connect. Gambar 13 Rangkaian Lengkap AN211 Program untuk aplikasi ini dapat ditemukan pada AN211.zip Selamat berinovasi! All trademarks, company names, product names and trade names are the property of their respective owners. All softwares are copyright by their respective creators and/or software publishers. Page 8 of 8