DT-AVR Application Note

dokumen-dokumen yang mirip
DT-AVR. Application Note AN214

DT-AVR. Application Note AN213

DT-AVR Application Note

DT-AVR Application Note

DT-AVR DT-AVR Application Note

PC-Link Application Note

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

DT-SENSE Application Note

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

DT-AVR DT-AVR ApplicationNote

DT-AVR Application Note

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

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

DT-AVR Application Note

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

DT-AVR Application Note

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

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

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

PC-Link Application Note

BAB III PERANCANGAN DAN PEMBUATAN ALAT

DT-BASIC 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-PROTO Application Note AN219 Kontrol Lampu Secara Nirkabel berbasiskan Smarphone Android dan

DT-AVR Application Note

DT-IO Application Note

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

PC-Link. PC-Link. Application Note AN202

DT-BASIC Application Note

DT-AVR Application Note. Gambar 1 Blok Diagram AN133

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

DT Series Application Note

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

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

DT-AVR DT-AVR ApplicationNote

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

DT-ARM DT-ARM Application Note

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

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

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

DT-Sense Application Note

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

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

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

BAB III PERANCANGAN ALAT

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

BAB IV PENGUJIAN DAN ANALISA

DT-AVR. Gambar 1 Blok Diagram AN177

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

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

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

AVR Application Note AN187 Monitoring Suhu Nirkabel (Bahasa C)

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. AVR Application Note AN160 Graphic LCD Dengan Bahasa C. Application Note AN160

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

BAB III IMPLEMENTASI

PC-Link Application Note

BAB III PERANCANGAN ALAT

DT-51 Application Note

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

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

DT-AVR 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)

STARTER KIT Application Note AN162 Web Scrapping Dengan GSM STARTER KIT

DT-AVR Application Note

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

AVR Application Note AN180 Simple Web Server

Akses SD Card & FRAM Menggunakan MCS-51. Oleh: Tim IE

DT-51 Application Note

DT-BASIC Application Note

Akses SD Card & FRAM Menggunakan AVR. Oleh: Tim IE

DT-AVR DT-AVR. Application Note AN203

DT-BASIC Mini System. Gambar 1 Blok Diagram AN132

DT-SENSE Application Note

DT-AVR Application Note

DT-AVR Application Note

SureLink A. Gambar 1 Blok Diagram AN63

DT-AVR Application Note

BAB IV IMPLEMENTASI DAN UJI COBA

BAB III ANALISA DAN PERANCANGAN SISTEM

DT-AVR Application Note. AN186 Digital Compass

BAB III PERANCANGAN ALAT DAN PROGRAM

BAB III PERANCANGAN ALAT UKUR KECEPATAN PUTAR DENGAN MENGGUNAKAN ROTARY ENDOCER

DT-AVR Application Note

BAB III PERANCANGAN SISTEM

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)

STARTER KIT Application Note AN157 Browsing Internet Via GSM STARTER KIT

BAB III PERANCANGAN DAN PEMBUATAN ALAT

BAB IV HASIL DAN UJI COBA

Apllication Note AN155 Mini Reklame pada Graphic LCD 320 x 240

DT-AVR Application Note

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

DT-SENSE Application Note

BAB III PERANCANGAN SISTEM

PC-Link Application Note

PC-Link Application Note

asic Application Note AN97 BASIC Chatting

BAB 3 PERANCANGAN ALAT

BAB III ANALISA DAN PERANCANGAN SISTEM

DT-51 Application Note

Transkripsi:

DT-AVR DT-AVR Application Note AN-231 Monitoring Accelerometer, RTC, dan Switch Melalui Web Browser Oleh: Tim IE Untuk mengetahui hasil pembacaan suatu modul pada umumnya kita menggunakan terminal, atau dengan alternatif lain kita bisa menampilkannya melalui LCD display. Pada aplikasi kali ini kita akan menampilkan hasil dari pembacaan melalui Web Browser. EMS Basic interface Shield merupakan shield ethernet yang kompleks dimana sudah dilengkapi dengan sensor accelerometer, RTC, Switch, dan LED. Dengan menggunakan DT-AVR Uno R3 dan pemrograman melalui Arduino, aplikasi ini dapat dipelajari dan dikembangkan dengan mudah. Aplikasi ini memerlukan beberapa perangkat diantaranya adalah: DT-AVR Uno R3 EMS Basic Interface Shield Kabel Micro USB Kabel UTP Komputer Adapun blok diagramnya sebagai berikut: SPI, I2C, I/O Ethernet DT-AVR Uno R3 EMS Basic Interface Shield Komputer Keterangan: Sensor Accelerometer diprogram melalui SPI RTC diprogram melalui I2C Wiznet diprogram melalui SPI Switch sebagai input Gambar 1 Blok Diagram Aplikasi AN231 Page 1 of 6

Hubungan antara DT-AVR Uno R3 dan EMS Basic Interface Shield adalah sebagai berikut: DT-AVR Uno R3 GND (J4) VCC (J4) A0 (J5) A1 (J5) SDA (J1) SCL (J1) MISO (J3) MOSI (J3) SCK (J3) EMS Basic Interface Shield GND (J2) VCC (J2) A0 (J4) A1 (J4) SDA (J1) SCL (J2) MISO (J6) MOSI (J6) SCK (J6) Tabel 1 Hubungan antara DT-AVR Uno R3 dan EMS Basic Interface Shield Gambar 2 Ilustrasi Koneksi Antara DT-AVR Uno R3 dan EMS Basic Interface Shield Page 2 of 6

Pastikan EMS Basic Interface Shield dan DT-AVR Uno R3 sudah terhubung dengan baik dan benar, kemudian hubungkan kabel micro USB antara DT-AVR Uno R3 dengan port USB pada komputer dan hubungkan kabel UTP antara EMS Basic Interface Shield dengan port LAN pada komputer. Pastikan LED indikator pada DT-AVR Uno R3 menyala dan PC sudah dapat mengenali modul DT-AVR Uno R3. Jalankan software Arduino IDE, pastikan tools board Arduino Uno terpilih dan serial port yang digunakan DT-AVR Uno R3. Buka file monitoring.ino pada folder EMS Basic Interface Shield. Lakukan upload sketch pada DT-AVR Uno R3, tunggu beberapa saat sampai selesai. Untuk mengetahui hasil dari pembacaan sensor accelerometer, RTC, dan Switch, jalankan browser pada komputer. Isikan alamat IP 192.168.111.1, maka hasil dari pembacaan dari modul akan ditampilkan seperti gambar berikut: Gambar 3 Tampilan Hasil Pembacaan di Web Browser Page 3 of 6

Flowchart dari aplikasi ini sebagai berikut: Start Deklarasi RTC Deklarasi Accelerometer Atur MAC ethernet Atur alamat IP Atur port server Tunggu sampai PC menghubungi alamat web server Arduino Kirimkan judul pada client Inisialisasi Wire Inisialisasi RTC Inisialisasi Ethernet Inisialisasi I/O Inisialisasi Accelerometer Refresh selama 5 detik Atur accelerometer pada mode Control Baca tanggal dan waktu pada komputer Baca data dari Switch, RTC, accelerometer kemudian kirimkan ke client Gambar 4 Flowchart AN231 Penjelasan singkat mengenai flowchart sebagai berikut : 1. Deklarasi variable RTC, deklarasi variable accelerometer, pengaturan MAC, pengaturan alamat IP, dan port server. RTC_DS1307 rtc; MMA7455 mma1(4); byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192, 168, 111, 1); EthernetServer server(80); 2. Inisialisasi Wire, RTC, dan Ethernet. Wire.begin(); rtc.begin(); Ethernet.begin(mac, ip); 3. Pengaturan switch sebagai input. pinmode(a0,input); pinmode(a1,input); 4. Pengaturan kepekaan dan mode pada accelerometer. mma1.setglvl(glvl2g); Page 4 of 6

mma1.setmode(mctl); 5. Atur jam dan tanggal agar sama dengan komputer. rtc.adjust(datetime(f( DATE ), F( TIME ))); 6. Tunggu sampai ada client yang terkoneksi dengan server. EthernetClient client = server.available(); 7. Kirim judul halaman web pada client. client.println("<!doctype html>"); client.println("<html>"); client.println("<head>"); client.println("<title>ems BASIC INTERFACE SHIELD</title>"); 8. Refresh data halaman selama 1 detik. client.println("<meta http-equiv=\"refresh\" content=\"5\">"); 9. Baca nilai kondisi Switch kemudian kirmkan datanya ke web client. if (analogread(a0)) { cl.print("tombol1= "); cl.print("nyala"); } else { cl.print("tombol1= "); cl.print("mati"); } 10. Tulis tanggal dan waktu pada RTC sama dengan komputer kemudian tampilkan pada web client. DateTime now = rtc.now(); cl.println("<p>rtc: </p>"); cl.print("<p>tanggal : "); cl.println(now.year(), DEC); cl.print('-'); cl.print(now.month(), DEC); cl.print('-'); cl.print(now.day(), DEC); cl.print(' '); cl.print("<p>jam : "); cl.print(now.hour(), DEC); cl.print(':'); cl.print(now.minute(), DEC); cl.print(':'); cl.print(now.second(), DEC); cl.print(" "); cl.println(); 11. Kirimkan data hasil pengukuran Accelerometer pada web client. cl.println("<p>accelerometer: <p/>"); cl.print("x: "); cl.print(mma1.read8bit(xout8), DEC); //read x-axis 8-bit data cl.print(" y: "); cl.print(mma1.read8bit(yout8), DEC); //read y-axis 8-bit data cl.print(" z: "); cl.print(mma1.read8bit(zout8), DEC); //read z-axis 8-bit data cl.print(" "); cl.println(); 12. Program kembali ke perintah no.6. Page 5 of 6

Listing program ini terdapat pada AN231.ZIP Selamat berinovasi All trademarks, trade names, company names, and product names are the property of their respective owners. All softwares are copyright by their respective software publishers and/or creators. Page 6 of 6