<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3039359024652951658</id><updated>2026-04-07T13:19:32.439+07:00</updated><category term="Arduino &amp; Android"/><category term="LCD"/><category term="Button"/><category term="ESP8266"/><category term="LDR"/><title type='text'>BoArduino</title><subtitle type='html'>Project dan Tutorial Arduino</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default?start-index=26&amp;max-results=25'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>92</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6393946722707296071</id><published>2017-05-06T19:26:00.000+07:00</published><updated>2017-05-06T19:26:07.324+07:00</updated><title type='text'>Cara Mengatasi Masalah Error DB:NO RESP Pada SIM900</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Halo bro, berjumpa lagi di BoArduino. Pada artikel sebelumnya yang telah saya publish di blog ini, yaitu tentang Kirim dan terima SMS dengan Arduino dan GSM Shield SIM900.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_9smIY6MMkHFivbcMK90mLuXyGiDWsNuBeUMjrbXfibUTbv6UydQZw9c4F2W411FdJ7Cerzm12QfPdx8T7S8aVbYWR0iFtwd5NoAm3t7mpGqA0_O84XHE8nPp1lnXHVhsCZ_GWkPFpoc/s1600/db-noresp-gsm-shield-boarduino.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_9smIY6MMkHFivbcMK90mLuXyGiDWsNuBeUMjrbXfibUTbv6UydQZw9c4F2W411FdJ7Cerzm12QfPdx8T7S8aVbYWR0iFtwd5NoAm3t7mpGqA0_O84XHE8nPp1lnXHVhsCZ_GWkPFpoc/s320/db-noresp-gsm-shield-boarduino.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Mungkin beberapa orang atau mungkin sebagian dari kalian yang telah mencoba tutorial di artikel itu, tidak semuanya berhasil sesuai dengan yang diharapkan. Karena yang namanya proses belajar, pasti saja ada halangan yang menghambat hehe... Tapi &lt;span style=&quot;color: red;&quot;&gt;jangan sampai menyerah&lt;/span&gt; hanya karena kegagalan tersebut ya gan&amp;nbsp;&lt;img height=&quot;20&quot; src=&quot;https://pic.sopili.net/pub/emoji/twitter/2/72x72/1f4aa.png&quot; width=&quot;20&quot; /&gt;&amp;nbsp;&lt;img height=&quot;20&quot; src=&quot;https://pic.sopili.net/pub/emoji/twitter/2/72x72/1f601.png&quot; width=&quot;20&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Nah, pesan Error &lt;span style=&quot;color: red;&quot;&gt;DB: NO RESP&lt;/span&gt; ini akan muncul ketika kalian menggunakan library&amp;nbsp;&lt;span style=&quot;text-align: left;&quot;&gt;GSM-GPRS-GPS-Shield dan&amp;nbsp;&lt;/span&gt;GSM modul / shield yang kalian gunakan tidak mendapatkan arus yang cukup untuk start awal, atau bisa juga karena &lt;span style=&quot;color: red;&quot;&gt;salah dalam mendefinisikan&lt;/span&gt; pin Power pada GSM modul / shield. Sebenarnya masalah ini bisa dipecahkan dengan cepat, yaitu dengan cara langsung &lt;span style=&quot;color: red;&quot;&gt;menekan tombol power&lt;/span&gt; yang ada pada GSM modul / shield yang digunakan, akan tetapi akan membuat kita repot karena harus menekan tombol power pada GSM modul / shield tiap kali kita &lt;span style=&quot;color: red;&quot;&gt;me-reset&lt;/span&gt; (mencabut dan memberikan kembali power) untuk GSM modul / shield tersebut.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sebagai contoh, disini ane menggunakan GSM Shield dari Icomsat V1.1 dan menggunakan Library &lt;span style=&quot;color: red;&quot;&gt;GSM-GPRS-Shield&lt;/span&gt; dari MarcoMartines. Ane pun juga mendapatkan pesan Error &lt;span style=&quot;color: red;&quot;&gt;DB: NO RESP &lt;/span&gt;tersebut saat ingin memulai menggunakan GSM Shield ini &lt;img height=&quot;20&quot; src=&quot;https://pic.sopili.net/pub/emoji/twitter/2/72x72/1f611.png&quot; width=&quot;20&quot; /&gt;.&amp;nbsp;Setelah itu ane membaca kembali documentation dari GSM Sheild yang ane gunakan, pada link berikut ini&amp;nbsp;&lt;a href=&quot;http://www.webtronico.com/documentos/icomsat_DS1.2.pdf&quot; target=&quot;_blank&quot;&gt;Documentation GSM Shield Icomsat V1.1&lt;/a&gt;&amp;nbsp;dan akhirnya menemukan solusi yang sudah ane coba dan berhasil&amp;nbsp;&lt;img height=&quot;20&quot; src=&quot;https://pic.sopili.net/pub/emoji/twitter/2/72x72/1f60e.png&quot; width=&quot;20&quot; /&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFDaA2kxe0gBz1bQ70BMYH3zQrlaUfhQIKwDAkPHzGLKis-oxSHzHVQWhWHslIG98rFdqPKM4F4GgMfSJ8EiC9WydMeTwpuU9GLYEgWb0vL1XlqG6YfQFZXiKKiMGUcQBW5SmWO-dLV_0/s1600/sofware-on-off.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFDaA2kxe0gBz1bQ70BMYH3zQrlaUfhQIKwDAkPHzGLKis-oxSHzHVQWhWHslIG98rFdqPKM4F4GgMfSJ8EiC9WydMeTwpuU9GLYEgWb0vL1XlqG6YfQFZXiKKiMGUcQBW5SmWO-dLV_0/s640/sofware-on-off.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Seperti yang tertera pada gambar diatas, yaitu pada halaman terakhir dari &lt;a href=&quot;http://www.webtronico.com/documentos/icomsat_DS1.2.pdf&quot; target=&quot;_blank&quot;&gt;Documentation GSM Shield Icomsat V1.1&lt;/a&gt;&amp;nbsp;disana mengatakan kita dapat mengontrol ON/OFF dari GSM Shield tersebut pada pin 9 dari Arduino dengan memberikan &lt;span style=&quot;color: red;&quot;&gt;pulse 400us&lt;/span&gt;. Maksudnya, kita dapat mengontrol &lt;span style=&quot;color: red;&quot;&gt;ON/OFF&lt;/span&gt; GSM Shield tanpa perlu menekan tombol Power yang ada pada GSM Shield tersebut, melainkan kita pakai cara alternatif yaitu dengan melalui sketch arduino (&lt;span style=&quot;color: red;&quot;&gt;Software Power On&lt;/span&gt;).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Solusinya sangat mudah, langsung saja silahkan di simak dan praktikkan tutorial nya gan&amp;nbsp;&lt;img height=&quot;20&quot; src=&quot;https://pic.sopili.net/pub/emoji/twitter/2/72x72/1f600.png&quot; width=&quot;20&quot; /&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino Uno / Genuino (Compatible)&lt;/li&gt;
&lt;li&gt;1x Mobile Phone&amp;nbsp;&lt;/li&gt;
&lt;li&gt;1x Simcard GSM yang Berisi Saldo Pulsa &lt;/li&gt;
&lt;li&gt;1x SIM900 Modul/Shield (Saya gunakan Icomsat V1.1)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya : &lt;/span&gt;&lt;br /&gt;
1.) Pertama, pastikan ente sudah menambahkan library dibawah ini pada Software Arduino IDE.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Library GSM-GPRS-GPS-Shield (&lt;a href=&quot;https://github.com/MarcoMartines/GSM-GPRS-GPS-Shield&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
2.) Bila sudah, sekarang tancapkan GSM Shield pada Board Arduino yang anda gunakan.&lt;br /&gt;
3.) Lalu, pasangkan jumper RX dan TX dari GSM shield ke Pin Arduino. Lihat gambar dibawah.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiamtVg5EzjXb6HEDWMOmHr8xZ7DiPcNg-mKny39WjPe7IXDEhStq4I0LeJrAi90CDU_gLDT9CA75-iWn0GuPttfbfG1Eg48y_d1tOWqfN0Yg7wncPlvS2KpEbiJVh8XPu4sgPM_6Bi85w/s1600/Arduino-GSM-Shield-RXTX-www.boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiamtVg5EzjXb6HEDWMOmHr8xZ7DiPcNg-mKny39WjPe7IXDEhStq4I0LeJrAi90CDU_gLDT9CA75-iWn0GuPttfbfG1Eg48y_d1tOWqfN0Yg7wncPlvS2KpEbiJVh8XPu4sgPM_6Bi85w/s640/Arduino-GSM-Shield-RXTX-www.boarduino.web.id.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
4.) Cari file bernama &lt;span style=&quot;color: red;&quot;&gt;GSM.h&lt;/span&gt; pada directory library GSM Shield software Arduino terlebih dahulu.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4o-BN8bJaCTdWYCLOUsH3KTiEN04frn-H-0Ab6MZyVvWfyLrJ_JzllbRFWRbv7wXUA5yG8m8uDU2ZVtvdd0AoDW3ar0MBSZxP-fSPpJT5cRgkLAOfX4DbtAtVRIhyWRrm_mi_UfQwYB0/s1600/power1-boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4o-BN8bJaCTdWYCLOUsH3KTiEN04frn-H-0Ab6MZyVvWfyLrJ_JzllbRFWRbv7wXUA5yG8m8uDU2ZVtvdd0AoDW3ar0MBSZxP-fSPpJT5cRgkLAOfX4DbtAtVRIhyWRrm_mi_UfQwYB0/s640/power1-boarduino.web.id.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
5.) Setelah itu buka file tersebut dengan aplikasi &lt;span style=&quot;color: red;&quot;&gt;text editor&lt;/span&gt; seperti notepad, gedit, dan lainnya.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuaxUyJOSo_V3rMx1_Z4X5nrsc65hsTHfoajK6Q7HNt436mEzMzRFO1bKavVhRws0ktZUw17VodUX0A1uFrhpRUuPkdA5QwdV0SAnZmCBhjNPLHU7SuRXBKkV-rLX19qAW-K7WsmP7Hp4/s1600/power2-boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuaxUyJOSo_V3rMx1_Z4X5nrsc65hsTHfoajK6Q7HNt436mEzMzRFO1bKavVhRws0ktZUw17VodUX0A1uFrhpRUuPkdA5QwdV0SAnZmCBhjNPLHU7SuRXBKkV-rLX19qAW-K7WsmP7Hp4/s640/power2-boarduino.web.id.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
6.) Bila sudah, ubah&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;GSM_ON&lt;/span&gt; dengan Pin 9 dan &lt;span style=&quot;color: red;&quot;&gt;GSM_RESET&lt;/span&gt; dengan Pin 8 seperti dibawah ini.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9SPkAEsVp-qXzlbM8OP2H3VlWZVC_AcJ0sDhEc7tB2X795I6vNVscNtkNP4e3Uev3sVBhvDx2cSrkhYnJbNebA5eQLp9NT1YF0ssLsLDdpoWfT4B6dtzsnwbM4TnTSEGY4HVXpIAtnww/s1600/power3-boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9SPkAEsVp-qXzlbM8OP2H3VlWZVC_AcJ0sDhEc7tB2X795I6vNVscNtkNP4e3Uev3sVBhvDx2cSrkhYnJbNebA5eQLp9NT1YF0ssLsLDdpoWfT4B6dtzsnwbM4TnTSEGY4HVXpIAtnww/s640/power3-boarduino.web.id.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
7.) Selesai, sekarang kita coba kembali dengan sketch yang digunakan untuk test modul ini.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;SIM900.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;SoftwareSerial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;GSM Shield testing.&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;gsm&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2400&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nstatus=READY&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nstatus=IDLE&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
8.) Lalu buka serial monitor Arduino IDE. Bila muncul seperti gambar dibawah, artinya berhasil.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-WLjRBJap7inmBr9APLqrPYGMhfpNK0NXVaTSHQTskrBrbiyIUyi2VtQByDP_OrjEpdQWM7VGcM-RwzoTkxr23H-l72wYKrvUt0eccurMwGxolz6iVwcaeRQbYoWKeGO7zYQH4mEDOy0/s1600/arduino-gsm-shield-ready-boarduino.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-WLjRBJap7inmBr9APLqrPYGMhfpNK0NXVaTSHQTskrBrbiyIUyi2VtQByDP_OrjEpdQWM7VGcM-RwzoTkxr23H-l72wYKrvUt0eccurMwGxolz6iVwcaeRQbYoWKeGO7zYQH4mEDOy0/s640/arduino-gsm-shield-ready-boarduino.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6393946722707296071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2017/05/cara-mengatasi-masalah-error-dbno-resp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6393946722707296071'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6393946722707296071'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2017/05/cara-mengatasi-masalah-error-dbno-resp.html' title='Cara Mengatasi Masalah Error DB:NO RESP Pada SIM900'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_9smIY6MMkHFivbcMK90mLuXyGiDWsNuBeUMjrbXfibUTbv6UydQZw9c4F2W411FdJ7Cerzm12QfPdx8T7S8aVbYWR0iFtwd5NoAm3t7mpGqA0_O84XHE8nPp1lnXHVhsCZ_GWkPFpoc/s72-c/db-noresp-gsm-shield-boarduino.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-1511512650677892743</id><published>2017-02-12T20:47:00.000+07:00</published><updated>2017-02-12T20:47:40.925+07:00</updated><title type='text'>Kirim Terima SMS dan Telpon dengan Arduino GSM Shield</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Halo sahabat BoArduino... Apa kabar nih? rasanya sudah lama tak berjumpa di gubuk ini.. hehe&lt;br /&gt;
Semoga sahabat semua masih dalam keadaan baik dan tetap bersemangat ya dalam hidup ini :)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSaMOHsnevvNJHd534_u4cMzyzjzBp2r9gjHx3XpAriKEkB7QgUC-WgZrGnW2rkSHcXU64S_NM3SSul_9xSYhDt_Mf25aCyi_CiEWslSgC-tahZvzGbe3oxKYhMO6o8aVKzBSX1n5b48M/s1600/sms-telpon-gsm-shield-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSaMOHsnevvNJHd534_u4cMzyzjzBp2r9gjHx3XpAriKEkB7QgUC-WgZrGnW2rkSHcXU64S_NM3SSul_9xSYhDt_Mf25aCyi_CiEWslSgC-tahZvzGbe3oxKYhMO6o8aVKzBSX1n5b48M/s320/sms-telpon-gsm-shield-boarduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Akhirnya saya bisa mempublish kembali artikel di blog ini, setelah vakum sementara dari bulan September 2016 yang lalu. &lt;span style=&quot;color: red;&quot;&gt;Permohonan maaf&lt;/span&gt; untuk agan semua yang sudah berkunjung dan berkomentar di halaman blog ini apabila komentar kalian belum di balas atau di approve, dikarenakan saya manusia biasa. Kebetulan blog ini hanya di pegang oleh &lt;span style=&quot;color: red;&quot;&gt;saya sendiri&lt;/span&gt;, jadi mohon di maklumi ya :)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dikesempatan hari ini saya akan membagikan sedikit pengalaman saya menggunakan &lt;span style=&quot;color: red;&quot;&gt;Arduino GSM Shield&lt;/span&gt; untuk interfacing dengan Arduino. Kebetulan juga ketika saya membalaskan satu persatu dari komentar agan agan, saya lihat cukup banyak juga yang &lt;span style=&quot;color: red;&quot;&gt;request tutorial&lt;/span&gt; untuk Arduino &lt;span style=&quot;color: red;&quot;&gt;GSM shield&lt;/span&gt;, dan kebetulan juga saya mempunya Modul GSM Shield yang saya dapatkan dari salah satu pengunjung blog BoArduino. &lt;span style=&quot;color: red;&quot;&gt;Terimakasih banyak&lt;/span&gt; saya ucapkan untuk agan &lt;a href=&quot;https://www.facebook.com/yoshua.chris?fref=ts&quot; target=&quot;_blank&quot;&gt;Yoshua Christian Emmanuel&lt;/a&gt;&amp;nbsp;yang telah menyumbangkan modul GSM Shield ini kepada saya untuk saya test dan bagikan pengalaman saya pada &lt;span style=&quot;color: red;&quot;&gt;sahabat BoArduino &lt;/span&gt;semuanya.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Artikel ini adalah bagian awal atau bisa disebut juga &lt;span style=&quot;color: red;&quot;&gt;Getting Started&lt;/span&gt; Arduino dan GSM Shield, untuk permulaan kita akan mencoba menggunakan GSM Shield ini untuk &lt;span style=&quot;color: red;&quot;&gt;SMS dan Telpon&lt;/span&gt;. Di blog ini sebenarnya sudah cukup banyak artikel yang membahas tentang wireless dengan Arduino, mulai dari menggunakan &lt;span style=&quot;color: red;&quot;&gt;Bluetooth&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;Internet &lt;/span&gt;dan lainnya, akan tetapi belum ada satupun artikel yang menggunakan GSM modul. Maka dari itu, mari kita coba &lt;span style=&quot;color: red;&quot;&gt;ketangguhan &lt;/span&gt;GSM Shield ini. Oke tidak usah bertele-tele, mari langsung saja di simak dan praktikkan gan :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Features:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
  Quad-Band 850/ 900/ 1800/ 1900 MHz&lt;/li&gt;
&lt;li&gt;
  GPRS multi-slot class 10/8&lt;/li&gt;
&lt;li&gt;
  GPRS mobile station class B&lt;/li&gt;
&lt;li&gt;
  Compliant to GSM phase 2/2+Class 4 (2 W @850/ 900 MHz)&lt;/li&gt;
&lt;li&gt;
  Class 1 (1 W @ 1800/1900MHz)&lt;/li&gt;
&lt;li&gt;
  Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced AT Commands)&lt;/li&gt;
&lt;li&gt;
  Low power consumption: 1.5mA(sleep mode)&lt;/li&gt;
&lt;li&gt;
  Operation temperature: -40°C to +85 °C&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino Uno / Genuino (Compatible)&lt;/li&gt;
&lt;li&gt;1x Simcard GSM yang Berisi Saldo Pulsa&lt;/li&gt;
&lt;li&gt;1x Mobile Phone (Untuk Pengontrol)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;1x SIM900 Modul/Shield (Saya gunakan Icomsat V1.1) &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya : &lt;/span&gt;&lt;br /&gt;
1.) Pertama, tambahkan library &lt;span style=&quot;color: red;&quot;&gt;GSM-GPRS-GPS&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;-Shield &lt;/span&gt;ke Software Arduino IDE anda.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Library GSM-GPRS-GPS-Shield (&lt;a href=&quot;https://github.com/MarcoMartines/GSM-GPRS-GPS-Shield&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;/ul&gt;
2.) Bila sudah, sekarang tancapkan GSM Shield pada Board Arduino yang anda gunakan.&lt;br /&gt;
3.) Lalu, pasangkan jumper RX dan TX dari GSM shield ke Pin Arduino. Lihat gambar dibawah.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiamtVg5EzjXb6HEDWMOmHr8xZ7DiPcNg-mKny39WjPe7IXDEhStq4I0LeJrAi90CDU_gLDT9CA75-iWn0GuPttfbfG1Eg48y_d1tOWqfN0Yg7wncPlvS2KpEbiJVh8XPu4sgPM_6Bi85w/s1600/Arduino-GSM-Shield-RXTX-www.boarduino.web.id.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiamtVg5EzjXb6HEDWMOmHr8xZ7DiPcNg-mKny39WjPe7IXDEhStq4I0LeJrAi90CDU_gLDT9CA75-iWn0GuPttfbfG1Eg48y_d1tOWqfN0Yg7wncPlvS2KpEbiJVh8XPu4sgPM_6Bi85w/s640/Arduino-GSM-Shield-RXTX-www.boarduino.web.id.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
4.) Jika sudah, selanjutnya pasangkan Simcard GSM anda pada Slot Simcard yang tersedia.&lt;br /&gt;
5.) Sekarang, tancapkan kabel USB Arduino ke Komputer/Laptop yang ente gunakan.&lt;br /&gt;
6.) Lalu kita akhiri dengan mengupload salah satu sketch dibawah ini pada board Arduino ente.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Mengirim SMS&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;SIM900.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;SoftwareSerial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;sms.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;SMSGSM&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;sms&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;started&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;GSM Shield testing.&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;gsm&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2400&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nstatus=READY&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;started&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nstatus=IDLE&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;started&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sms&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SendSMS&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;+6289666xxxxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Halo BoArduino :)&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nSMS sent OK&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; 
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Menerima SMS&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;#include&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&quot;SIM900.h&quot;&lt;/span&gt;
#include&amp;nbsp;&amp;lt;&lt;span style=&quot;color: #cc6600;&quot;&gt;SoftwareSerial&lt;/span&gt;.h&amp;gt;
#include&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&quot;sms.h&quot;&lt;/span&gt;
SMSGSM&amp;nbsp;sms;
&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; numdata;
&lt;span style=&quot;color: #cc6600;&quot;&gt;boolean&lt;/span&gt; started=&lt;span style=&quot;color: #cc6600;&quot;&gt;false&lt;/span&gt;;
&lt;span style=&quot;color: #cc6600;&quot;&gt;char&lt;/span&gt; smsbuffer[160];
&lt;span style=&quot;color: #cc6600;&quot;&gt;char&lt;/span&gt; n[20];

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(9600);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #006699;&quot;&gt;&quot;GSM Shield testing.&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (gsm.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(2400)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;println&lt;/span&gt;(&lt;span style=&quot;color: #006699;&quot;&gt;&quot;\nstatus=READY&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;started=&lt;span style=&quot;color: #cc6600;&quot;&gt;true&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;delsms();
};

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;loop&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt;(started) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sms.GetSMS(1,n,20,smsbuffer,160);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;println&lt;/span&gt;(n);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;println&lt;/span&gt;(smsbuffer);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;delay&lt;/span&gt;(1000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
};

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; delsms() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; 10; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; pos = sms.IsSMSPresent(SMS_ALL);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (pos != 0){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (sms.DeleteSMS(pos) == 1) {} &lt;span style=&quot;color: #cc6600;&quot;&gt;else&lt;/span&gt; {}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Melakukan Panggilan Telepon&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;SIM900.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;SoftwareSerial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;call.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;CallGSM&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;gsm&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2400&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Call&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;+6289666xxxxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;HangUp&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Menerima Panggilan Telepon, Lalu Mengirim SMS&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;SIM900.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;SoftwareSerial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;sms.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;call.h&quot;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;CallGSM&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;call&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;SMSGSM&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;number&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;byte&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;stat&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;pin&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;value_str&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pin&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;INPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;GSM Shield testing.&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;gsm&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2400&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nstatus=READY&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;\nstatus=IDLE&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;stat&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;call&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CallStatusWithAuth&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;number&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;stat&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;CALL_INCOM_VOICE_AUTH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;call&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;HangUp&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;itoa&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value_str&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SendSMS&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;+6289666xxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Yah CUMI, Cuma Misscall :v&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Menerima SMS, Lalu Melakukan Panggilan Telepon&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;#include&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&quot;SIM900.h&quot;&lt;/span&gt;
#include&amp;nbsp;&amp;lt;&lt;span style=&quot;color: #cc6600;&quot;&gt;SoftwareSerial&lt;/span&gt;.h&amp;gt;
#include&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&quot;sms.h&quot;&lt;/span&gt;
#include&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;&quot;call.h&quot;&lt;/span&gt;
CallGSM&amp;nbsp;arduino;
SMSGSM&amp;nbsp;sms;
&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; numdata;
&lt;span style=&quot;color: #cc6600;&quot;&gt;boolean&lt;/span&gt; started = &lt;span style=&quot;color: #cc6600;&quot;&gt;false&lt;/span&gt;;
&lt;span style=&quot;color: #cc6600;&quot;&gt;char&lt;/span&gt; smsbuffer[160];
&lt;span style=&quot;color: #cc6600;&quot;&gt;char&lt;/span&gt; n[20];

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(9600);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (gsm.&lt;span style=&quot;color: #cc6600;&quot;&gt;begin&lt;/span&gt;(2400)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;started&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;true&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;delsms();
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #cc6600;&quot;&gt;&lt;b&gt;loop&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; pos = 0;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (started) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos&amp;nbsp;=&amp;nbsp;sms.IsSMSPresent(SMS_ALL);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (pos) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sms.GetSMS(pos,&amp;nbsp;n,&amp;nbsp;20,&amp;nbsp;smsbuffer,&amp;nbsp;160);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;delay&lt;/span&gt;(2000);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (!strcmp(smsbuffer, &lt;span style=&quot;color: #006699;&quot;&gt;&quot;telpon ane&quot;&lt;/span&gt;)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;telponTujuan();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;delsms();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;}
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; telponTujuan() {
&amp;nbsp;&amp;nbsp;arduino.Call(&lt;span style=&quot;color: #006699;&quot;&gt;&quot;08966628xxxx&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;delay&lt;/span&gt;(20000);
&amp;nbsp;&amp;nbsp;arduino.HangUp();
&amp;nbsp;&amp;nbsp;delsms();
}

&lt;span style=&quot;color: #cc6600;&quot;&gt;void&lt;/span&gt; delsms() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; 10; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;int&lt;/span&gt; pos = sms.IsSMSPresent(SMS_ALL);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (pos != 0){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #cc6600;&quot;&gt;if&lt;/span&gt; (sms.DeleteSMS(pos) == 1) {} &lt;span style=&quot;color: #cc6600;&quot;&gt;else&lt;/span&gt; {}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;hr color=&quot;red&quot; /&gt;
&lt;span style=&quot;color: red;&quot;&gt;*Mengirim SMS dengan Arduino&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Untuk mengirim SMS dari Arduino menggunakan SIM900 shield, kita bisa bebas untuk memilih menggunakan AT Command Set atau menggunakan Library GSM-GPRS-GPS-Shield yang telah dibuat oleh MarcoMartines ini. (Di tutorial ini saya menggunakan Library dari MarcoMartines).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Mengirimkan SMS dengan menggunakan Library ini, kita hanya perlu mengupload sketch mengirim SMS yang sudah saya sertakan diatas. Pastikan sebelum mengupload sketch, ente sudah menyesuaikan baris sketch dibawah ini dengan nomor telpon penerima &amp;amp; isi pesan text.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sms&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SendSMS&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;+6289666xxxxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;Halo BoArduino :)&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
Dimana &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;+6289666xxxxxx &lt;/span&gt;(Adalah nomor penerima) dan &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Halo BoArduino :)&lt;/span&gt; &lt;/span&gt;(Isi pesan text).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Atau bila ente ingin mengirimkan pesan text &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Halo BoArduino :) &lt;span style=&quot;color: black;&quot;&gt;ke nomor tujuan yang nomor telponnya sudah terdaftar pada phonebook simcard ente, maka ubah menjadi seperti ini.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sms&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SendSMS&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;3&quot;&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;Halo BoArduino :)&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Angka &lt;span style=&quot;color: red;&quot;&gt;3&lt;/span&gt; pada sketch diatas itu dimisalkan adalah posisi dari nomor tujuan yang tersimpan pada phonebook simcard, jadi ente bisa mengubah angka itu sesuai nomor urut dari penerima pada phonebook simcard ente.&lt;span style=&quot;color: red;&quot;&gt; &lt;span style=&quot;color: black;&quot;&gt;Misalkan ada 5 kontak pada phonebook ente dengan nomor urut.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Andi (089666285492)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Jefri (081298112709)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Agung (085672919221)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Ridwan (082212244213)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Chandra (089644556732)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;Jika sketch diatas kita jadikan angka &lt;span style=&quot;color: red;&quot;&gt;3&lt;/span&gt;, maka arduino mengirimkan SMS ke nomor telpon Agung.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr color=&quot;red&quot; /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;*Menerima SMS dengan Arduino&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Setelah berhasil mengirimkan SMS dengan Arduino, sekarang kita akan mencoba menerima SMS dan menampilkan Inbox simcard kita diserial monitor Arduino IDE. Pada serial monitor, nantinya kita dapat melihat info dari nomor telpon pengirim dan juga isi pesan text yang dikirimkan.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Dengan baris sketch seperti ini, kita akan membaca sms terakhir yang diterima pada simcard.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;if(gsm.readSMS(&lt;span style=&quot;color: red;&quot;&gt;isiPesanSMS&lt;/span&gt;, 160, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;nomorTelpon&lt;/span&gt;, 20)) { &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
Untuk membaca inbox simcard lebih spesifik, ente bisa menggunakan sketch dibawah ini.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
if(gsm.GetSMS(&lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;nomorTelpon&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;isiPesanSMS&lt;/span&gt;, 160)) {&lt;/blockquote&gt;
Angka 2 pada baris diatas ini adalah posisi pesan yang ingin dibaca dari simcard, misalkan di dalam inbox simcard ente ada 4 pesan. Analoginya seperti contoh dibawah ini :&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Dari Andi : Dimana ente? ane didepan rumah ente!&lt;/li&gt;
&lt;li&gt;Dari Jefri : Gan, apa kabar?&lt;/li&gt;
&lt;li&gt;Dari Agung : Bro, hari ini kampus libur ya?&lt;/li&gt;
&lt;li&gt;Dari Ridwan : Bray, jadi gak kita nonton film The Conjuring 2?&lt;/li&gt;
&lt;/ol&gt;
Maka yang dibaca dan ditampilkan di serial monitor adalah pesan pada posisi 2 tersebut.&lt;br /&gt;
Yaitu nomor telpon Jefri (081298112709) dan isi pesan text &quot;Gan, apa kabar?&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;hr color=&quot;red&quot; /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;*Melakukan Panggilan Telepon&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Setelah kita mencoba Kirim dan Terima SMS dengan Arduino, sekarang kita akan melakukan hal yang sedikit lebih keren. Mengapa terlihat lebih keren? Karena disini kita akan melakukan panggilan telepon ke nomor tujuan yang sudah ditentukan pada sketch di Arduino.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Coba mari kita perhatikan bersama sketch sederhana dibagian loop ini.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Call&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;+6289666xxxxxx&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;30000&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;arduino&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;HangUp&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Baris ini adalah baris yang akan mengeksekusi untuk melakukan panggilan ke nomor tujuan.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
arduino.Call(&quot;+&lt;span style=&quot;color: #0b5394;&quot;&gt;6289666xxxxxx&lt;/span&gt;&quot;);&lt;/blockquote&gt;
Lalu delay selama 30 detik ini adalah lamanya arduino melakukan panggilan ke nomor tujuan.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #b45f06;&quot;&gt;delay&lt;/span&gt;(30000);&lt;/blockquote&gt;
Setelah 30 detik berakhir, maka kita sudahi panggilan telpon yang kita lakukan dengan baris ini.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
arduino.HangUp();&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dan kita tambahkan baris sketch dibawah ini, jika ingin mengeksekusi panggilan hanya 1 kali.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;while&lt;/span&gt;(1);&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Maka arduino akan menelpon setiap di reset saja dan tidak dilakukan berulang-ulang.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
&lt;hr color=&quot;red&quot; /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;*Menerima Panggilan Telpon, Lalu mengirimkan SMS&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Setelah berhasil melakukan panggilan telpon dengan Arduino, kita lanjut dengan menerima panggilan telpon dengan Arduino. Disini kita coba menggabungkan menerima panggilan Telpon dari nomor random dan akan menegirimkan SMS balik kepada nomor random tersebut.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Kita perhatikan pada baris sketch untuk menerima panggilan telpon dibawah ini.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;stat=call.CallStatusWithAuth(number,0,0);&lt;br /&gt;&amp;nbsp;if(stat==CALL_INCOM_VOICE_AUTH) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada sketch diatas kita isikan value setelah number dengan 0,0 maka kita
 akan menerima panggilan dari nomor siapapun yang mengetahui nomor 
telpon kita, tidak hanya dengan nomor telpon spesifik yang ada di 
phonebook simcard kita. Tetapi kita juga bisa mengubah pada bagian itu agar dapat menerima panggilan telpon hanya dari nomor telpon yang berada di memori phonebook simcard saja dengan mengubah sketch menjadi seperti dibawah ini.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;stat=call.CallStatusWithAuth(number,1,3);&lt;br /&gt;&amp;nbsp;if(stat==CALL_INCOM_VOICE_AUTH) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Nah angka 1 dan 3 diatas adalah pemilihan proses scanning pada phonebook simcard kita, bila menggunakan&amp;nbsp; sketch diatas maka yang diberi akses untuk menelpon kita tadi hanyalah nomor tujuan yang ada di phonebook list 1 sampai dengan 3 pada simcard yang ada di GSM Shield.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Misalkan isi phonebook pada simcard kita ada 4 buah, dengan list seperti berikut ini.&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Andi (089666285492)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Jefri (081298112709)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Agung (085672919221)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Ridwan (082212244213)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Maka yang diberi akses untuk menelpon hanyalah Andri, Jefri dan Agung. Selain itu tidak!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr color=&quot;red&quot; /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;*Menerima SMS, Lalu melakukan panggilan Telepon&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Jika tadi kita menerima panggilan telpon terlebih dahulu, setelah itu baru mengirimkan SMS. Sekarang kita akan melakukan kebalikannya, yaitu Arduino akan menerima SMS lalu jika isi pesan SMS nya sesuai dengan sketch maka akan melakukan panggilan telpon ke nomor tujuan.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
if(!strcmp(smsbuffer,&quot;&lt;span style=&quot;color: #0b5394;&quot;&gt;telpon ane&lt;/span&gt;&quot;)){&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Jika Simcard yang dipasangkan pada GSM shield menerima SMS berisikan text &quot;&lt;span style=&quot;color: #0b5394;&quot;&gt;telpon ane&lt;/span&gt;&quot; maka program akan memanggil fungsi &lt;span style=&quot;color: red;&quot;&gt;telponTujuan()&lt;/span&gt; untuk di eksekusi melakukan panggilan telpon.&lt;br /&gt;
&lt;br /&gt;
Lalu function delsms() adalah fungsi yang akan menghapus semua sms yang ada di simcard.&lt;/div&gt;
&lt;br /&gt;
&lt;hr color=&quot;red&quot; /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/a80e7FdoRww&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat. &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/1511512650677892743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2017/02/kirim-terima-sms-dan-telpon-dengan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/1511512650677892743'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/1511512650677892743'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2017/02/kirim-terima-sms-dan-telpon-dengan.html' title='Kirim Terima SMS dan Telpon dengan Arduino GSM Shield'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSaMOHsnevvNJHd534_u4cMzyzjzBp2r9gjHx3XpAriKEkB7QgUC-WgZrGnW2rkSHcXU64S_NM3SSul_9xSYhDt_Mf25aCyi_CiEWslSgC-tahZvzGbe3oxKYhMO6o8aVKzBSX1n5b48M/s72-c/sms-telpon-gsm-shield-boarduino.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6365253838218220165</id><published>2016-09-16T22:53:00.000+07:00</published><updated>2016-09-16T22:54:18.042+07:00</updated><title type='text'>Mengontrol Putaran Servo dengan GY-521 (MPU-6050)</title><content type='html'>Oke bro, selamat datang bagi semua pengunjung yang sedang mampir di blog ini.&lt;br /&gt;
Berjumpa kembali di awal Bulan September 2016 yang semoga lebih menjadi penuh semangat :)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmDulbnNeGTpRxKQRpCFxm_vQlW9MWE13_0UuFVnlaZ43m32uiPPgd0Xbror8iEdGOYwkeR9llyR5dadve5dpnOo4lJtSbQ-VXRjo_9holq0gham_h5hypQlA8pCT-rsyNSzsxFiCu0mQ/s1600/mpu.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmDulbnNeGTpRxKQRpCFxm_vQlW9MWE13_0UuFVnlaZ43m32uiPPgd0Xbror8iEdGOYwkeR9llyR5dadve5dpnOo4lJtSbQ-VXRjo_9holq0gham_h5hypQlA8pCT-rsyNSzsxFiCu0mQ/s200/mpu.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Intermezzo &lt;/span&gt;: MPU6050 adalah sensor sudut dan percepatan atau biasa disebut gyrometer. Sama seperti kebanyakan sensor lain, MPU6050 perlu dikalibrasi sebelum digunakan. Kinerja gyrometer ini sangat terpengaruh terhadap suhu, jadi pastikan suhu stabil terlebih dahulu sebelum melakukan proses kalibrasi. Beri jarak waktu antara 3 sampai dengan 5 menit setelah power on agar suhu stabil.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;Atau bila kalian ingin kenal lebih jauh tentang MPU6050, silahkan klik &lt;a href=&quot;https://www.cdiweb.com/datasheets/invensense/MPU-6050_DataSheet_V3%204.pdf&quot; target=&quot;_blank&quot;&gt;Datasheet MPU6050&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;Dengan MPU6050, kita dapat membuat banyak project. Contohnya: Self Balancing Robot, Kontrol Motor DC CW/CCW, dan lain lain sesuai dengan kreatiifitas dan kebutuhan ente.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;Dan pada Tutorial Arduino kali ini, kita akan mencoba MPU6050 untuk mengontrol derajat putar motor servo dengan arduino dan memanfaatkan Y axis yang ada pada Modul MPU6050.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #4b4c4d; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Servo&lt;/li&gt;
&lt;li&gt;1x MPU6050&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;li&gt;Library &lt;span style=&quot;color: red;&quot;&gt;I2Cdev &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;MPU6050&lt;/span&gt;, silahkan klik &lt;a href=&quot;https://drive.google.com/file/d/0B2ZJlFy76RFsUU11NmRCd24yMHc/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR0ZX8IheAFQCGw_6a396BvzFEL9q3rONCseQPC8xBc061r-SGhuuG8WC3_J2akHX8zEgmB1Wdv4jrgUKDPKYNIy6v8S_oGord2Ocq2zsvCm1Y1cuinTtEyWghcy8E_DIgh9YWSuKi9a0/s1600/ArduinoMPU6050-Servo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR0ZX8IheAFQCGw_6a396BvzFEL9q3rONCseQPC8xBc061r-SGhuuG8WC3_J2akHX8zEgmB1Wdv4jrgUKDPKYNIy6v8S_oGord2Ocq2zsvCm1Y1cuinTtEyWghcy8E_DIgh9YWSuKi9a0/s400/ArduinoMPU6050-Servo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 3,3V pada arduino dihubungkan ke VCC pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin GND pada arduino dihubungkan ke GND pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin A4 pada arduino dihubungkan ke SDA pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin A5 pada arduino dihubungkan ke SCL pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin 9 pada arduino dihubungkan ke Kabel Kuning Motor Servo&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.) Setelah terinstall, jalankan program Arduino-nya.&lt;br /&gt;
5.) Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini, dan terakhir klik upload.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;Hide&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &quot;Wire.h&quot;&lt;br /&gt;
#include &quot;I2Cdev.h&quot;&lt;br /&gt;
#include &quot;MPU6050.h&quot;&lt;br /&gt;
#include &quot;Servo.h&quot;&lt;br /&gt;
&lt;br /&gt;
MPU6050 mpu;&lt;br /&gt;
&lt;br /&gt;
int16_t ax, ay, az;&lt;br /&gt;
int16_t gx, gy, gz;&lt;br /&gt;
&lt;br /&gt;
Servo myservo;&lt;br /&gt;
&lt;br /&gt;
int val;&lt;br /&gt;
int prevVal;&lt;br /&gt;
&lt;br /&gt;
void setup() &lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Wire.begin();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.begin(38400);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot;Initialize MPU&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mpu.initialize();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(mpu.testConnection() ? &quot;Connected&quot; : &quot;Connection failed&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myservo.attach(9);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() &lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mpu.getMotion6(&amp;amp;ax, &amp;amp;ay, &amp;amp;az, &amp;amp;gx, &amp;amp;gy, &amp;amp;gz);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; val = map(ay, -17000, 17000, 0, 179);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (val != prevVal)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myservo.write(val);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prevVal = val;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(50);&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;NOTE &lt;/b&gt;&lt;/span&gt;: Perhatikan sketch pada baris berikut ini&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; mpu.getMotion6(&amp;amp;ax, &amp;amp;ay, &amp;amp;az, &amp;amp;gx, &amp;amp;gy, &amp;amp;gz);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; val = map(ay, -17000, 17000, 0, 179);&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Seperti yang kita tahu, sketch tersebut menggunakan &lt;a href=&quot;https://www.arduino.cc/en/Tutorial/Knob&quot; target=&quot;_blank&quot;&gt;Knob&lt;/a&gt;. Yang menggunakan nilai dari Y Axis yaitu hasil dari MPU6050 yang berskala -17000 sampai 17000 dan diubah jadi 0&lt;span style=&quot;background-color: white; color: #545454; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; line-height: 20.2222px; text-align: left;&quot;&gt;°&lt;/span&gt;&amp;nbsp;sampai 180&lt;span style=&quot;background-color: white; color: #545454; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: x-small; line-height: 20.2222px; text-align: left;&quot;&gt;°&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
val = map(&lt;span style=&quot;color: red;&quot;&gt;ay&lt;/span&gt;, -17000, 17000, 0, 179)&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Karena MPU6050 mempunyai 6 Axis, maka ente dapat menyesuaikan dan menggunakan yang ente butuhkan. ax, ay, az, gx, gy, atau gz&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;dengan merubah text merah pada baris sketch diatas.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;center&gt;
&lt;/center&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/RV4NtL_Q190&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6365253838218220165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/02/mengontrol-putaran-servo-dengan-gy-521.html#comment-form' title='32 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6365253838218220165'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6365253838218220165'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/02/mengontrol-putaran-servo-dengan-gy-521.html' title='Mengontrol Putaran Servo dengan GY-521 (MPU-6050)'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmDulbnNeGTpRxKQRpCFxm_vQlW9MWE13_0UuFVnlaZ43m32uiPPgd0Xbror8iEdGOYwkeR9llyR5dadve5dpnOo4lJtSbQ-VXRjo_9holq0gham_h5hypQlA8pCT-rsyNSzsxFiCu0mQ/s72-c/mpu.jpg" height="72" width="72"/><thr:total>32</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6114467635653117302</id><published>2016-08-31T23:56:00.001+07:00</published><updated>2016-08-31T23:56:49.758+07:00</updated><title type='text'>Kontrol Servo melalui Internet dengan Arduino &amp; Teleduino</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Halo bro, berjumpa lagi dengan saya di gubuk tempat kita berkumpul, sharing dan belajar ini.&lt;br /&gt;
Apa kabar kalian semua? semoga masih dalam keadaan baik dan semoga berbahagia.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW5cXvzgNxAY5Rnl-ihKJAOxyw5pphNkWjaifsznBQJahpqtBqtI3Ox-nAdY_EMZ8JDE3XJqfJHTlZB3Mi7sHE17rr7Ukl8lGkz3tuFTGRnIewiUNuK6ERLPJ1Goz-REBRZNvTeeFbLcg/s1600/servo-teleduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW5cXvzgNxAY5Rnl-ihKJAOxyw5pphNkWjaifsznBQJahpqtBqtI3Ox-nAdY_EMZ8JDE3XJqfJHTlZB3Mi7sHE17rr7Ukl8lGkz3tuFTGRnIewiUNuK6ERLPJ1Goz-REBRZNvTeeFbLcg/s320/servo-teleduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Artikel yang saya tulis kali ini, adalah artikel &lt;span style=&quot;color: red;&quot;&gt;lanjutan &lt;/span&gt;dan sekaligus artikel terakhir di Bulan Agustus 2016 ini yang masuk dalam kategori &lt;span style=&quot;color: red;&quot;&gt;Teleduino series&lt;/span&gt;. Karena di bulan ini, ane sudah menyiapkan 5 buah artikel dasar untuk mencoba menghubungkan &lt;span style=&quot;color: red;&quot;&gt;arduino &lt;/span&gt;dan
 teleduino. Untuk tingkatan yang lebih lanjut, ane harapkan ente semua 
yang sudah mencoba tutorial ini dapat mengembangkannya sehingga menjadi 
lebih &lt;span style=&quot;color: red;&quot;&gt;kompleks &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;rumit&lt;/span&gt;,
 serta dapat bermanfaat untuk digunakan atau di realisasikan dalam 
kehidupan sehari hari. Dan semoga masa depan Internet Of&amp;nbsp; Thing (IoT) 
akan menjadi &lt;span style=&quot;color: red;&quot;&gt;lebih baik&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Di artikel Teleduino Series sebelumnya, kita sudah mencoba untuk Mengontrol Pin &lt;span style=&quot;color: red;&quot;&gt;Digital Output&lt;/span&gt; Arduino via Internet, Mengontrol Pin &lt;span style=&quot;color: red;&quot;&gt;Analog Output (PWM)&lt;/span&gt; Arduino via Internet, Memonitoring Pin &lt;span style=&quot;color: red;&quot;&gt;Digital Input&lt;/span&gt; Arduino via Internet dan juga Memonitoring Pin &lt;span style=&quot;color: red;&quot;&gt;Analog Input Arduino&lt;/span&gt; via Internet. Nah, sekarang sekarang kita akan mencoba untuk Mengontrol servo melalui internet. Tentunya dengan mengontrol servo melalui internet ini, dapat sangat &lt;span style=&quot;color: red;&quot;&gt;bermanfaat &lt;span style=&quot;color: black;&quot;&gt;bila dikembangkan untuk memudahkan pekerjaan yang akan kita lakukan / kerjakan.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Karena servo adalah penggerak &lt;span style=&quot;color: red;&quot;&gt;mekanik&lt;/span&gt;, anda dapat memanfaatkannya sesuai kebutuhan dan keinginan&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;anda. Contoh project yang bisa dilakukan adalah misalnya : Alat &lt;span style=&quot;color: red;&quot;&gt;pemberi makan&lt;/span&gt; hewan yang dapat di kontrol melalui internet, &lt;span style=&quot;color: red;&quot;&gt;Kunci pintu&lt;/span&gt; yang di kontrol melalui internet, dan lainnya sesuai dengan kreativitas dan imajinasi ente. Oke langsung disimak aja gan :)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x Motor Servo&lt;/li&gt;
&lt;li&gt;Koneksi Internet&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHK8eU_S0auut7KIkz3A5PqSRH6uIjqle1bfqaf0j3KFVCqn4MjqDVhEIP1UEEJ7fW2qiyJFxzFuO7L3PM0v_9mwK_jGvqDozvGjzqwX4HdEafVqBiYh1k0f5uZg6aQgMde4wjSDHrCMk/s1600/Arduino-ethernetshield-servo-boarduinoo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHK8eU_S0auut7KIkz3A5PqSRH6uIjqle1bfqaf0j3KFVCqn4MjqDVhEIP1UEEJ7fW2qiyJFxzFuO7L3PM0v_9mwK_jGvqDozvGjzqwX4HdEafVqBiYh1k0f5uZg6aQgMde4wjSDHrCMk/s640/Arduino-ethernetshield-servo-boarduinoo.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino ke Kabel Merah pada Servo&lt;/li&gt;
&lt;li&gt;Hubungkan GND Arduino ke Kabel Hitam pada Servo&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 6 Arduino ke Kabel Kuning pada Servo&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2.) Setelah itu ikuti video dibawah ini, dimulai dari &lt;span style=&quot;color: red;&quot;&gt;awal &lt;/span&gt;sampai menit dan detik ke &lt;span style=&quot;color: red;&quot;&gt;6:33&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/xXL3O7B9NnM&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
3.)&amp;nbsp;&lt;span style=&quot;text-align: center;&quot;&gt;Jika sudah mengikuti tutorial hingga &lt;span style=&quot;color: red;&quot;&gt;posisi video 6:33&lt;/span&gt;, lanjut untuk membuat aplikasi android.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Membuat Aplikasi Android Servo Teleduino: &lt;/span&gt;&lt;br /&gt;
1.) Pertama, &lt;a href=&quot;https://www.dropbox.com/s/c8k2ojb9s5sng39/ServoTeleduino.aia?dl=0&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&amp;nbsp;&lt;/a&gt;terlebih dulu layout yang sudah saya buat (Atau bikin sendiri).&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;times new roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
2.) Buka website App Inventor 2, lalu klik &lt;span style=&quot;color: red;&quot;&gt;project &lt;/span&gt;dan&lt;span style=&quot;color: red;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;Import &lt;span style=&quot;color: black;&quot;&gt;project (.aia)&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;dan pilih file tadi.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s640/11.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
3.) Bila sudah, susunlah blok pemograman yang sudah saya buat, seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ6IUllsYEd5rD7paly6Fcr8_v7fZMCPBPWqhpcnzGk1BbeTx_EEqDTi4dmYlZ1Irk8JUY31rEbeVTKrGQsjnHhZ-7PAXNluqW223vCxsX13noxpDC6Vn3cx8vxl4a76h6cKFy3SIeRCA/s1600/servo-teleduino-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ6IUllsYEd5rD7paly6Fcr8_v7fZMCPBPWqhpcnzGk1BbeTx_EEqDTi4dmYlZ1Irk8JUY31rEbeVTKrGQsjnHhZ-7PAXNluqW223vCxsX13noxpDC6Vn3cx8vxl4a76h6cKFy3SIeRCA/s640/servo-teleduino-boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat penjelasan program&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;div style=&quot;color: black; font-weight: normal;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Penjelasan Blok Pemograman Aplikasi Servo Teleduino :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
1.) &amp;nbsp;Diawal program, kita buat 2 buah variable untuk hasil slider dan diawali dengan 0 (Nol)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtXKqXd6qGdfPvmq3CAlq_IE5Pt7Ooi0vMHUqwGH1RQW6APdyNU1BNabvzIRDzACbqlUn63R2vVaCgY9sA1pT_a2cmgRETAk5ppIJm-Hs36uQb4_GvmONw8GPzJJoMMBY3GGZTaAK_2x8/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;30&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtXKqXd6qGdfPvmq3CAlq_IE5Pt7Ooi0vMHUqwGH1RQW6APdyNU1BNabvzIRDzACbqlUn63R2vVaCgY9sA1pT_a2cmgRETAk5ppIJm-Hs36uQb4_GvmONw8GPzJJoMMBY3GGZTaAK_2x8/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
2.) Saat screen 1 terbuka, set label hasil slider 1 dan 2 sesuai dari nilai variable hasil slider&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE6wDIFXumZG1-7FogGFhyFUwwzBKI6N_cKRBlsCuqD1OUFgc_0Hp44NdVpITH4K1JTF96CBoE_2HNPX2bowbtgXkDMVEH06BbAt0D6Lj9th7WX9EIsz8OlR0ozwynzMSNMlMiN99UxZo/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;77&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE6wDIFXumZG1-7FogGFhyFUwwzBKI6N_cKRBlsCuqD1OUFgc_0Hp44NdVpITH4K1JTF96CBoE_2HNPX2bowbtgXkDMVEH06BbAt0D6Lj9th7WX9EIsz8OlR0ozwynzMSNMlMiN99UxZo/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
3.) Bila button 6 ditekan, maka get url dari text Teleduino dan Textbox untuk &lt;a href=&quot;https://www.teleduino.org/documentation/api/328-full#defineServo&quot; target=&quot;_blank&quot;&gt;defineServo&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7wwuRPB3r1-EAEGZ3uHd_bEXHjCpMlgwkt8mSWq0xAdTn6IJ7eSg8bAw82OPVT8JtwzilF-lxiJiTNTXg6WuctvI0OzgISd2LQ0x9baOwOiaxoKJozV11z6mzIecaZFAGbsgVKKjy8rs/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7wwuRPB3r1-EAEGZ3uHd_bEXHjCpMlgwkt8mSWq0xAdTn6IJ7eSg8bAw82OPVT8JtwzilF-lxiJiTNTXg6WuctvI0OzgISd2LQ0x9baOwOiaxoKJozV11z6mzIecaZFAGbsgVKKjy8rs/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
4.) Bila slider berubah posisi, set variable dan text hasil slider jadi nilai bulat posisi slider.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimN7Awh3pKDflP5vEdR8QPMQyY0oe4Klhm6Ga782opxI1d4OsFBemZ3_4XqX2JwxHBcyF-zzNhWbQMWut9HzMUY2T3PK-RYqWoFWavwnol-EuU5n1uVLo2uhMqd2C_HGT7lKuTb1ihpPo/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimN7Awh3pKDflP5vEdR8QPMQyY0oe4Klhm6Ga782opxI1d4OsFBemZ3_4XqX2JwxHBcyF-zzNhWbQMWut9HzMUY2T3PK-RYqWoFWavwnol-EuU5n1uVLo2uhMqd2C_HGT7lKuTb1ihpPo/s640/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
5.) Button Pos1 dan Pos2 untuk memutar servo sesuai dari nilai terakhir variable hasil slider.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBjJZQ0smX0xLblQj0EglRhBX2YPWB7vv9f3zCwpIlzqMLmYsyAHE17OzGzW0r1EOcyE5hpWKa8OoyQ4vvoD6YzY45uJBWwV5lcJDBpQCQ3zkzYI-Xem2WirJ_VIEbAuBrKLOOhI5tMmo/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;344&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBjJZQ0smX0xLblQj0EglRhBX2YPWB7vv9f3zCwpIlzqMLmYsyAHE17OzGzW0r1EOcyE5hpWKa8OoyQ4vvoD6YzY45uJBWwV5lcJDBpQCQ3zkzYI-Xem2WirJ_VIEbAuBrKLOOhI5tMmo/s640/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Setelah semua selesai, maka akan seperti video dibawah ini&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/XsrQRjOail0&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6114467635653117302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/08/kontrol-servo-melalui-internet-dengan.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6114467635653117302'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6114467635653117302'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/08/kontrol-servo-melalui-internet-dengan.html' title='Kontrol Servo melalui Internet dengan Arduino &amp; Teleduino'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW5cXvzgNxAY5Rnl-ihKJAOxyw5pphNkWjaifsznBQJahpqtBqtI3Ox-nAdY_EMZ8JDE3XJqfJHTlZB3Mi7sHE17rr7Ukl8lGkz3tuFTGRnIewiUNuK6ERLPJ1Goz-REBRZNvTeeFbLcg/s72-c/servo-teleduino.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6608918266579417167</id><published>2016-08-26T16:37:00.000+07:00</published><updated>2016-08-26T16:37:21.300+07:00</updated><title type='text'>Baca Analog Input Pin Arduino melalui Internet (Teleduino)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Halo bro, berjumpa lagi dengan saya di gubuk tempat kita berkumpul, sharing dan belajar ini.&lt;br /&gt;
Apa kabar kalian semua? semoga masih dalam keadaan baik dan semoga berbahagia.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSKtH95gaW3dSh60BwWn7YTt2iohQRgJEBpEuiUzU_UvhwHwrSOLDG-1YTjqfpkEeO4OC_cy36yNDTqOOm3O8gtKMJsygKCP2zZzsuGudk9y-QN1M1OPy1T5ZVNZYbBj-_8QFILteWz7o/s1600/analoginput-teleduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSKtH95gaW3dSh60BwWn7YTt2iohQRgJEBpEuiUzU_UvhwHwrSOLDG-1YTjqfpkEeO4OC_cy36yNDTqOOm3O8gtKMJsygKCP2zZzsuGudk9y-QN1M1OPy1T5ZVNZYbBj-_8QFILteWz7o/s320/analoginput-teleduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Artikel yang saya tulis kali ini, adalah artikel &lt;span style=&quot;color: red;&quot;&gt;lanjutan &lt;/span&gt;dan sekaligus artikel ke-empat di Bulan Agustus 2016 ini yang masuk dalam kategori &lt;span style=&quot;color: red;&quot;&gt;Teleduino series&lt;/span&gt;. Karena di bulan ini, ane sudah menyiapkan 5 buah artikel dasar untuk mencoba menghubungkan &lt;span style=&quot;color: red;&quot;&gt;arduino &lt;/span&gt;dan teleduino. Untuk tingkatan yang lebih lanjut, ane harapkan ente semua yang sudah mencoba tutorial ini dapat mengembangkannya sehingga menjadi lebih &lt;span style=&quot;color: red;&quot;&gt;kompleks &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;rumit&lt;/span&gt;, serta dapat bermanfaat untuk digunakan atau di realisasikan dalam kehidupan sehari hari. Dan semoga masa depan Internet Of&amp;nbsp; Thing (IoT) akan menjadi &lt;span style=&quot;color: red;&quot;&gt;lebih baik&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Di artikel Teleduino Series sebelumnya, kita sudah mencoba untuk Mengontrol Pin &lt;span style=&quot;color: red;&quot;&gt;Digital Output&lt;/span&gt; Arduino via Internet, Mengontrol Pin &lt;span style=&quot;color: red;&quot;&gt;Analog Output (PWM)&lt;/span&gt; Arduino via Internet dan juga Memonitoring Pin &lt;span style=&quot;color: red;&quot;&gt;Digital Input&lt;/span&gt; Arduino via Internet. Nah, sekarang sekarang kita akan mencoba untuk Memonitoring Pin &lt;span style=&quot;color: red;&quot;&gt;Analog Input Arduino&lt;/span&gt; (ADC) via Internet. Tentunya dengan memonitoring pin input arduino melalui internet ini, dapat sangat &lt;span style=&quot;color: red;&quot;&gt;bermanfaat &lt;/span&gt;untuk kehidupan.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Contoh&lt;/span&gt; umumnya saja: Kita sedang pergi keluar kota atau keluar negeri, kita dapat &lt;span style=&quot;color: red;&quot;&gt;memonitoring&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;suhu &lt;/span&gt;ruangan, kadar &lt;span style=&quot;color: red;&quot;&gt;gas &lt;/span&gt;dalam ruangan, kadar &lt;span style=&quot;color: red;&quot;&gt;asap&lt;/span&gt;, kelembapan &lt;span style=&quot;color: red;&quot;&gt;tanah&lt;/span&gt;, pendeteksi &lt;span style=&quot;color: red;&quot;&gt;kebakaran&lt;/span&gt;, dan lain lainnya yang ada dirumah kita melalui &lt;span style=&quot;color: red;&quot;&gt;Internet&lt;/span&gt;! Tentu saja kita tidak perlu repot untuk mengetahui hasil semua sensor tersebut, kita hanya perlu &lt;span style=&quot;color: red;&quot;&gt;terhubung &lt;/span&gt;ke internet dan membuat aplikasi androidnya untuk memonitoring semua &lt;span style=&quot;color: red;&quot;&gt;hasil sensor&lt;/span&gt; yang sudah kita pasangkan di area rumah kita tersebut dan &lt;span style=&quot;color: red;&quot;&gt;dimanapun &lt;/span&gt;posisi kita berada (selama masih ada internet) kita bisa &lt;span style=&quot;color: red;&quot;&gt;mengetahui &lt;/span&gt;semua informasi hasil sensor di rumah kita. Keren bukan? Oke daripada bertele-tele, mari langsung saja kita simak dan praktikkan tutorial dibawah ini gan :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x Potensiometer 10K&lt;/li&gt;
&lt;li&gt;Koneksi Internet&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQYEgdcERbeJM38XX6SuaaaYdUaEi2hVMipOZ7Xo2siFtiy2Id0tIBEkHlhkIciYzdaMc0qxWuYdNpo0BeVId1L7bvS6e-yB3c5ouxd8BYXFVLBrXhw4Jsc9J6HTezvKNnPVUzr7KEj9s/s1600/arduino-teleduino-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQYEgdcERbeJM38XX6SuaaaYdUaEi2hVMipOZ7Xo2siFtiy2Id0tIBEkHlhkIciYzdaMc0qxWuYdNpo0BeVId1L7bvS6e-yB3c5ouxd8BYXFVLBrXhw4Jsc9J6HTezvKNnPVUzr7KEj9s/s640/arduino-teleduino-boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino pada salah satu kaki potensio&lt;/li&gt;
&lt;li&gt;Hubungkan Pin GND Arduino pada salah satu kaki potensio&lt;/li&gt;
&lt;li&gt;Hubungkan Pin A0 Arduino pada kaki tengah potensio&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu ikuti video dibawah ini, dimulai dari &lt;span style=&quot;color: red;&quot;&gt;awal &lt;/span&gt;sampai menit dan detik ke &lt;span style=&quot;color: red;&quot;&gt;6:33&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/xXL3O7B9NnM&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
3.)&amp;nbsp;&lt;span style=&quot;text-align: center;&quot;&gt;Jika sudah mengikuti tutorial hingga &lt;span style=&quot;color: red;&quot;&gt;posisi video 6:33&lt;/span&gt;, lanjut untuk membuat aplikasi android.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Membuat Aplikasi Android di App Inventor 2: &lt;/span&gt;&lt;br /&gt;
1.) Pertama, &lt;a href=&quot;https://www.dropbox.com/s/xk5rctlq3iznwgh/getAnalogInput.aia?dl=0&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&amp;nbsp;&lt;/a&gt;terlebih dulu layout yang sudah saya buat (Atau bikin sendiri).&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;times new roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
2.) Buka website App Inventor 2, lalu klik &lt;span style=&quot;color: red;&quot;&gt;project &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;Import project (.aia)&lt;/span&gt; dan pilih file tadi.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s640/11.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
3.) Bila sudah, susunlah blok pemograman yang sudah saya buat, seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM9ekIA6Mv3kQJWOkh1RPH3Oxd2KmG1JJnUzT1h06IEtHfLTOsGqRJMFR6kZTuG7icFyV0y4p6WKN6YE1tqNGnD9Vl16XgQAHqu0Ok2pvLa-stNq0WSSOMmU_6g7cnDJiDwAbLaw6ddck/s1600/getAnalogInput-teleduino-boarduino.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;382&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM9ekIA6Mv3kQJWOkh1RPH3Oxd2KmG1JJnUzT1h06IEtHfLTOsGqRJMFR6kZTuG7icFyV0y4p6WKN6YE1tqNGnD9Vl16XgQAHqu0Ok2pvLa-stNq0WSSOMmU_6g7cnDJiDwAbLaw6ddck/s640/getAnalogInput-teleduino-boarduino.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Penjelasan Blok Pemrograman Aplikasi Android :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat penjelasan program&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Penjelasan Blok Program Android :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
1.) Pertama kita buat terlebih dahulu variable &lt;span style=&quot;color: red;&quot;&gt;analoginput &lt;/span&gt;dan juga membuat &lt;span style=&quot;color: red;&quot;&gt;list kosong&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYsdydr0Hftliou8ZA5qNNKOXrcxaLFIxrMpBFi-GpmG3FfTY__eJSMnlJOyg-sUnk0Ohz2GQHIi63trHtTdkqAtq_VVnSEP-FsJODJ3Rt5hzUIEe1EZoWeS8Ey4yI9PgJ_mZm7GSKEHM/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;28&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYsdydr0Hftliou8ZA5qNNKOXrcxaLFIxrMpBFi-GpmG3FfTY__eJSMnlJOyg-sUnk0Ohz2GQHIi63trHtTdkqAtq_VVnSEP-FsJODJ3Rt5hzUIEe1EZoWeS8Ey4yI9PgJ_mZm7GSKEHM/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
2.) Apabila aplikasi dibuka / &lt;span style=&quot;color: red;&quot;&gt;screen1 terbuka&lt;/span&gt;, set Clock1 &lt;span style=&quot;color: red;&quot;&gt;false &lt;/span&gt;(Tidak aktif menghitung).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAzyfur5l7Xn7FR8sSzCV6CF0zLk1p0xmRgVUrntIdgZcl3W5TGpQKB8lsIk33K4DS40upZSintkqRJxoIP8-u2c-7xGEbWQlQ5vtvvBmPvFr9pk06uRqa5kRPgaQWVk-NvK4Nzx-Y0Bg/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;58&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAzyfur5l7Xn7FR8sSzCV6CF0zLk1p0xmRgVUrntIdgZcl3W5TGpQKB8lsIk33K4DS40upZSintkqRJxoIP8-u2c-7xGEbWQlQ5vtvvBmPvFr9pk06uRqa5kRPgaQWVk-NvK4Nzx-Y0Bg/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
3.) Button untuk &lt;span style=&quot;color: red;&quot;&gt;enable &lt;/span&gt;atau &lt;span style=&quot;color: red;&quot;&gt;disable &lt;/span&gt;Clock1 untuk pergantian data di label &lt;span style=&quot;color: red;&quot;&gt;hasilInput&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYETU8DLTxj1C3u_vGa8lpc1G6Y3GIeu_3qoSQFXfHW8YLTusMdka3WdmUI6NLKUNykRBb9OH4VYXCNdCphfohwisADwGrjl3MLZyGp39hvEx3yMabt3eiSjcYwG49rnSclFXrUz0WWtM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;269&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYETU8DLTxj1C3u_vGa8lpc1G6Y3GIeu_3qoSQFXfHW8YLTusMdka3WdmUI6NLKUNykRBb9OH4VYXCNdCphfohwisADwGrjl3MLZyGp39hvEx3yMabt3eiSjcYwG49rnSclFXrUz0WWtM/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4.) Bagian untuk get &lt;span style=&quot;color: red;&quot;&gt;Request URL&lt;/span&gt; Teleduino tiap waktu yang telah ditentukan pada Clock1&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiggUgH5H3GLV2TpEn-1rjyCSbOes8K0b6VdOnYa2NKqeV2uA2Fs0SwFM25d_tUqtVEV_am4XxX04C7UO2fPhe0RvuHcwddM9HjEbJMdrFSLNBI_qv_jbf2zcjoRf6Yng-yodhxPcenxZw/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiggUgH5H3GLV2TpEn-1rjyCSbOes8K0b6VdOnYa2NKqeV2uA2Fs0SwFM25d_tUqtVEV_am4XxX04C7UO2fPhe0RvuHcwddM9HjEbJMdrFSLNBI_qv_jbf2zcjoRf6Yng-yodhxPcenxZw/s640/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5.) Menampilkan hasil &lt;span style=&quot;color: red;&quot;&gt;decode JsonTex&lt;/span&gt;t dari responContent dan ambil &lt;span style=&quot;color: red;&quot;&gt;value &lt;/span&gt;pada pin A0&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-qNWk4wpczUvA6JZmTU8dcljU4NtX5RrXmwkE5onY5l4ZES7LTYtkva7zYQfv7LaDBHFCyqE78Rxo7kd2cdS9JXK2Ku6r91Q34TpFhNPoP1vU2KqKJebFAfku7jkMzGod1MWVEJ7d6H0/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-qNWk4wpczUvA6JZmTU8dcljU4NtX5RrXmwkE5onY5l4ZES7LTYtkva7zYQfv7LaDBHFCyqE78Rxo7kd2cdS9JXK2Ku6r91Q34TpFhNPoP1vU2KqKJebFAfku7jkMzGod1MWVEJ7d6H0/s640/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Setelah semua selesai, maka akan seperti dibawah ini&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/IMOu2YoQtTA&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6608918266579417167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/08/baca-analog-input-pin-arduino-melalui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6608918266579417167'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6608918266579417167'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/08/baca-analog-input-pin-arduino-melalui.html' title='Baca Analog Input Pin Arduino melalui Internet (Teleduino)'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSKtH95gaW3dSh60BwWn7YTt2iohQRgJEBpEuiUzU_UvhwHwrSOLDG-1YTjqfpkEeO4OC_cy36yNDTqOOm3O8gtKMJsygKCP2zZzsuGudk9y-QN1M1OPy1T5ZVNZYbBj-_8QFILteWz7o/s72-c/analoginput-teleduino.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-5199446801232337508</id><published>2016-08-20T21:47:00.002+07:00</published><updated>2016-08-20T21:47:21.677+07:00</updated><title type='text'>Baca Digital Input Pin Arduino melalui Internet (Teleduino)</title><content type='html'>Halo sobat BoArduino, berjumpa kembali di kesempatan yang semoga berbahagia ini.&lt;br /&gt;
Sekarang, saat saya menulis ini adalah hari Sabtu Malam di Bulan Agustus pada Tahun 2016.&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrQ4Y8uyCSFU10Gzk_gGNJLlTX02IwbLB9wUjDB_ZF957bAunQw2ayYqMi7kg-5bLs9sS1jwTK2rnRNIv5vynwztOGVrrfABUqCTUC7TyaEv3F-tUKYwSTnUw5tqKjqsr9gD81wug8s9w/s1600/digitalinput-teleduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrQ4Y8uyCSFU10Gzk_gGNJLlTX02IwbLB9wUjDB_ZF957bAunQw2ayYqMi7kg-5bLs9sS1jwTK2rnRNIv5vynwztOGVrrfABUqCTUC7TyaEv3F-tUKYwSTnUw5tqKjqsr9gD81wug8s9w/s320/digitalinput-teleduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;Belum lama, beberapa hari kemarin kita merayakan Hari Ulang Tahun Rebublik Indonesia yang &lt;span style=&quot;color: red;&quot;&gt;ke&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;71&lt;/span&gt;. Banyak cara yang dapat dikerjakan untuk memperingati hari tersebut, yaitu dengan Lomba, Cerdas cermat, dan lainnya. Dan khusunya untuk yang masih berjiwa &lt;span style=&quot;color: red;&quot;&gt;muda&lt;/span&gt;, tetaplah kobarkan api semangat di dalam dada. &lt;span style=&quot;color: red;&quot;&gt;Semangat &lt;/span&gt;belajar dan semangat dalam hal hal yang positif, untuk &lt;span style=&quot;color: red;&quot;&gt;menghargai &lt;/span&gt;jasa para Pahlawan yang sudah me-merdeka kan kita semua sehingga dapat belajar dengan &lt;span style=&quot;color: red;&quot;&gt;tenang &lt;/span&gt;tanpa ada gangguan dari manapun! &lt;span style=&quot;color: red;&quot;&gt;Selamat Ulang Tahun Indonesia&lt;/span&gt;, semoga semakin jaya!&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Langsung saja ya gan, artikel yang ane tulis kali ini masih ada sangkut pautnya dengan 2 artikel yang di publikasikan pada Bulan Agustus 2016 ini, yaitu &lt;span style=&quot;color: red;&quot;&gt;Arduino Ethernet Shield dan Teleduino&lt;/span&gt;. Dan bagi kalian yang sudah membaca artikel sebelumnya, kita telah mencoba mengontrol output &lt;span style=&quot;color: red;&quot;&gt;digital &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;pwm &lt;/span&gt;arduino melalui internet. Nah, sekarang kita akan mencoba untuk memonitoring pin &lt;span style=&quot;color: red;&quot;&gt;input&lt;/span&gt; arduino melalui internet. Pin input yang yang kali ini akan kita coba untuk di monitoring adalah pin digital input dari arduino, kita dapat melihat status &lt;span style=&quot;color: red;&quot;&gt;terakhir &lt;/span&gt;pin input tersebut apakah berlogika &lt;span style=&quot;color: red;&quot;&gt;LOW/HIGH&lt;/span&gt;. Untuk pengembagan lebih lanjut, dapat diaplikasikan untuk memonitoring banyak sensor digital melalui internet. Sedangkan untuk memonitoring &lt;span style=&quot;color: red;&quot;&gt;analog &lt;/span&gt;pin input dari arduino, akan di posting &lt;span style=&quot;color: red;&quot;&gt;next time&lt;/span&gt; ya gan, setelah artikel ini.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Misalkan : Memonitoring sensor PIR, untuk mendeteksi &lt;span style=&quot;color: red;&quot;&gt;pergerakan &lt;/span&gt;yang ada di dalam rumah. Dan nantinya kita dapat mengetahui kalau ada pergerakan tersebut, walaupun kita sedang tidak ada dirumah, misalkan &lt;span style=&quot;color: red;&quot;&gt;diluar kota&lt;/span&gt;. Selanjutnya, bebas kita akan melakukan apa untuk merespon hasil input dari sensor tersebut, contohnya kita bisa saja menambahkan button untuk menyalakan &lt;span style=&quot;color: red;&quot;&gt;alarm&lt;/span&gt; yang ada dirumah kita dari &lt;span style=&quot;color: red;&quot;&gt;jarak jauh&lt;/span&gt;, agar orang yang tidak kita kehendaki tersebut &lt;span style=&quot;color: red;&quot;&gt;menjauh &lt;/span&gt;dari area rumah kita.! Yuk lah langsung saja disimak biar gak penasaran, hehe&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x Tacticle Switch (Button)&lt;/li&gt;
&lt;li&gt;1x Resistor 10K Ohm&lt;/li&gt;
&lt;li&gt;Koneksi Internet&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgte345mHA_CZfGywLDQq0pkB8nb4r0DXFQF0ijyG6TIeoGLhWT-pQCXZkw03FcciPTyoxL_EanlS4WpEBVNF0PbAgNyrNXEd1ABNPAMS5uVIA0Yxcd4ktEhZ1LgoUVNvIodDwSTtuOSBk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgte345mHA_CZfGywLDQq0pkB8nb4r0DXFQF0ijyG6TIeoGLhWT-pQCXZkw03FcciPTyoxL_EanlS4WpEBVNF0PbAgNyrNXEd1ABNPAMS5uVIA0Yxcd4ktEhZ1LgoUVNvIodDwSTtuOSBk/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino pada salah satu kaki Button&lt;/li&gt;
&lt;li&gt;Hubungkan Pin GND Arduino pada salah satu kaki Button&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 3 Arduino pada salah satu kaki Button&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu ikuti video dibawah ini, dimulai dari &lt;span style=&quot;color: red;&quot;&gt;awal &lt;/span&gt;sampai menit dan detik ke &lt;span style=&quot;color: red;&quot;&gt;6:33&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/xXL3O7B9NnM&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
3.)&amp;nbsp;&lt;span style=&quot;text-align: center;&quot;&gt;Jika sudah mengikuti tutorial hingga &lt;span style=&quot;color: red;&quot;&gt;posisi video 6:33&lt;/span&gt;, lanjut untuk membuat aplikasi android.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Membuat Aplikasi Android di App Inventor 2 : &lt;/span&gt;&lt;br /&gt;
1.) Pertama, &lt;a href=&quot;https://www.dropbox.com/s/xnuizhe435wq4x3/ReadDigitalInputTeleduino.aia?dl=0&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&amp;nbsp;&lt;/a&gt;terlebih dulu layout yang sudah saya buat (Atau bikin sendiri).&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;times new roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
2.) Buka website App Inventor 2, lalu klik &lt;span style=&quot;color: red;&quot;&gt;project &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;Import project (.aia)&lt;/span&gt; dan pilih file tadi.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s640/11.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
3.) Bila sudah, susunlah blok pemograman yang sudah saya buat, seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ZVV2O8vGzZS7XQfPScX2RCKyrSqJ3JG6Ej7bh1tcmPYbdBIIHOrEmcZM6wekvmvSneF2Bn_AW3IJ2HMH1DcTm1Jr_BFzsgw22vmRaSM-bDKvstAHZ2NlImRnpKdxhsJNs3GTO05CpOc/s1600/button_teleduino_boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ZVV2O8vGzZS7XQfPScX2RCKyrSqJ3JG6Ej7bh1tcmPYbdBIIHOrEmcZM6wekvmvSneF2Bn_AW3IJ2HMH1DcTm1Jr_BFzsgw22vmRaSM-bDKvstAHZ2NlImRnpKdxhsJNs3GTO05CpOc/s640/button_teleduino_boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat penjelasan program&lt;/small&gt;&lt;/b&gt;&amp;nbsp;&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;div style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Penjelasan Blok Pemograman Aplikasi Android :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
1.) Diawal program, kita buat dahulu &lt;span style=&quot;color: red;&quot;&gt;variable &lt;/span&gt;statusButton dan membuat &lt;span style=&quot;color: red;&quot;&gt;list kosong&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBiaJAGtKNKgbWaQrEtqDvrpfRMB8yfmE9JutmS6d1f4H5ZzGE1sapQIZ087F3S8UgnvN1VbbmDEgBUFZ09YNKN7DgycaBxZYjZZQH9vQjSRb88LMEFkhG7QbTEM_9A0zpfCrTwRO_Gkc/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;35&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBiaJAGtKNKgbWaQrEtqDvrpfRMB8yfmE9JutmS6d1f4H5ZzGE1sapQIZ087F3S8UgnvN1VbbmDEgBUFZ09YNKN7DgycaBxZYjZZQH9vQjSRb88LMEFkhG7QbTEM_9A0zpfCrTwRO_Gkc/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
2.) Saat Screen1 &lt;span style=&quot;color: red;&quot;&gt;terbuka&lt;/span&gt;, maka kita awali Clock1 dengan &lt;span style=&quot;color: red;&quot;&gt;False &lt;/span&gt;agar tidak langsung aktif.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrkChmgSL9WDFLFFRs727eS_JpIFe69aq-j41EuCC4v411Iy9ays7QEDZtzuKiPTBbdwFz-ofcOPGHOG3KXFmFSyR6JBBFzAtbYMRhd3G-avAoDquIZ4ve-rVfzOodd79L7LfdKz0jsNs/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;66&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrkChmgSL9WDFLFFRs727eS_JpIFe69aq-j41EuCC4v411Iy9ays7QEDZtzuKiPTBbdwFz-ofcOPGHOG3KXFmFSyR6JBBFzAtbYMRhd3G-avAoDquIZ4ve-rVfzOodd79L7LfdKz0jsNs/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
3.) Kita buat 2 button untuk &lt;span style=&quot;color: red;&quot;&gt;Start &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;Stop &lt;/span&gt;Clock1 yang digunakan untuk pergantian data.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7jDqdrmkTO37t-iJ_9qkJ-i7CkdVgGTbVj1Hu4yFNvJSoHY1gIRmr1xmSCcIsNA5a7RS0y00d7c2fGvGdgKh_ZSnYWTEk2c3tLp5ciCTiF2UGiLqYhxQzivUOiXA_M6uXGelHyYKsUqE/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7jDqdrmkTO37t-iJ_9qkJ-i7CkdVgGTbVj1Hu4yFNvJSoHY1gIRmr1xmSCcIsNA5a7RS0y00d7c2fGvGdgKh_ZSnYWTEk2c3tLp5ciCTiF2UGiLqYhxQzivUOiXA_M6uXGelHyYKsUqE/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
4.) Bagian untuk &lt;a href=&quot;https://www.teleduino.org/documentation/api/328-full#getAllInputs&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;getAllinputs&lt;/span&gt; &lt;/a&gt;dari teleduino setiap waktu yang &quot;&lt;span style=&quot;color: red;&quot;&gt;ditentukan&lt;/span&gt;&quot; pada Clock1&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguAkCESx_rT0_33Ca5KUjNJF7kcs3XICWm1r5Xj0zgNFqw0o1fBOtNyBzP83OMqGUK5iFQgMYoafsU7-7lucES5e8BBciWOLq6iJp8kQzAH5nSrMLChO5LoxJDqY5T_YG9QJ_IzcUQvhw/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguAkCESx_rT0_33Ca5KUjNJF7kcs3XICWm1r5Xj0zgNFqw0o1fBOtNyBzP83OMqGUK5iFQgMYoafsU7-7lucES5e8BBciWOLq6iJp8kQzAH5nSrMLChO5LoxJDqY5T_YG9QJ_IzcUQvhw/s640/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
5.) Jika &lt;span style=&quot;color: red;&quot;&gt;responCode 200&lt;/span&gt; (OK), maka &lt;span style=&quot;color: red;&quot;&gt;decode value&lt;/span&gt; Json Text dari &lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://www.teleduino.org/documentation/api/328-full#getAllInputs&quot; target=&quot;_blank&quot;&gt;getAllinputs &lt;/a&gt;&lt;/span&gt;Pin 3 Uno.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEittlEUjMfM-wpRN7xEit48TjM7Q8OhG5XM2KnnHqarYse076jTGL-5j0UYFA5msrWq5GzHQxLDmRGtxiqRCyZy0CoO8OHq7JqFM1NWWwFdUZbtYJsbSauMkKY3NXn3X4OuVLEJnIo_vEY/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEittlEUjMfM-wpRN7xEit48TjM7Q8OhG5XM2KnnHqarYse076jTGL-5j0UYFA5msrWq5GzHQxLDmRGtxiqRCyZy0CoO8OHq7JqFM1NWWwFdUZbtYJsbSauMkKY3NXn3X4OuVLEJnIo_vEY/s640/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Jika &lt;span style=&quot;color: red;&quot;&gt;value = 1&lt;/span&gt; maka jadikan background Screen 1 merah, jika &lt;span style=&quot;color: red;&quot;&gt;value = 0&lt;/span&gt; jadi Warna Putih.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Setelah semua selesai, maka akan seperti video dibawah ini&lt;/div&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/pELFKDMa8bs&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/5199446801232337508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/08/baca-digital-input-pin-arduino-melalui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5199446801232337508'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5199446801232337508'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/08/baca-digital-input-pin-arduino-melalui.html' title='Baca Digital Input Pin Arduino melalui Internet (Teleduino)'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrQ4Y8uyCSFU10Gzk_gGNJLlTX02IwbLB9wUjDB_ZF957bAunQw2ayYqMi7kg-5bLs9sS1jwTK2rnRNIv5vynwztOGVrrfABUqCTUC7TyaEv3F-tUKYwSTnUw5tqKjqsr9gD81wug8s9w/s72-c/digitalinput-teleduino.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-7996554591503121668</id><published>2016-08-14T12:20:00.000+07:00</published><updated>2016-08-14T12:20:55.785+07:00</updated><title type='text'>Mengontrol Pin PWM Arduino melalui Internet (Teleduino)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Halo bro, gan dan sis, berjumpa lagi kita pada hari minggu yang semoga berbahagia ini, Amiin.&lt;br /&gt;
Selamat weekend ya sob, terus semangat untuk menjalani rutinitas kehidupan sampai akhir.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoMGsPqXY5l0LX_54sRP4VIqDBOUteKQAWWApxzdHE2a0LlzZjSLi2lrFYytirdyFpkkchD8MMq8Keb3fLJ7iWAp6m52HtodyIU0IgkgIHzkNxkHJ7C264uVg9PU86x6a0otwOG5AvJOQ/s1600/pwm-teleduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoMGsPqXY5l0LX_54sRP4VIqDBOUteKQAWWApxzdHE2a0LlzZjSLi2lrFYytirdyFpkkchD8MMq8Keb3fLJ7iWAp6m52HtodyIU0IgkgIHzkNxkHJ7C264uVg9PU86x6a0otwOG5AvJOQ/s320/pwm-teleduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada artikel kali ini, kita masih bermain dengan Arduino dan Ethernet shield untuk &lt;span style=&quot;color: red;&quot;&gt;mengontrol&lt;/span&gt; Arduino melalui &lt;span style=&quot;color: red;&quot;&gt;internet&lt;/span&gt;. Karena kebetulan juga sekarang Internet Of Things (IoT) sedang berkembang di tanah air dan disebut-sebut juga Internet Of Things (IoT) meresap hampir di setiap aspek &lt;span style=&quot;color: red;&quot;&gt;kehidupan 
&lt;/span&gt;masyarakat luas, mulai dari kesehatan, transportasi, hingga keperluan 
rumah tangga. Banyak yang memprediksi bahwa pengaruh &lt;span style=&quot;color: red;&quot;&gt;Internet Of Things (IoT)&lt;/span&gt; akan menjadi konsep yang sangat &lt;span style=&quot;color: red;&quot;&gt;berpengaruh &lt;/span&gt;dan sulit dipisahkan dari kehidupan sehari-hari, sebab konsep Internet Of Things (IoT)&lt;i&gt; &lt;/i&gt;menawarkan banyak potensi yang bisa memberi &lt;span style=&quot;color: red;&quot;&gt;keuntungan &lt;/span&gt;pada berbagai jenis industri.&lt;br /&gt;
&lt;br /&gt;
Contoh sederhana manfaat dan &lt;span style=&quot;color: red;&quot;&gt;implementasi &lt;/span&gt;dari Internet Of Things (IoT)
 adalah transportasi umum yang dapat dilacak keberadaannya oleh pengguna
 melalui &lt;span style=&quot;color: red;&quot;&gt;ponsel&lt;/span&gt;. Sementara itu, contoh sederhana di &lt;span style=&quot;color: red;&quot;&gt;dunia industri&lt;/span&gt; 
adalah pemberitahuan via &lt;span style=&quot;color: red;&quot;&gt;SMS&lt;/span&gt;, website ataupun &lt;span style=&quot;color: red;&quot;&gt;email &lt;/span&gt;mengenai stok barang apa saja 
yang jumlah persediaannya sudah &lt;span style=&quot;color: red;&quot;&gt;menipis &lt;/span&gt;dan perlu &lt;span style=&quot;color: red;&quot;&gt;ditambah&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
Karena pada artikel sebelumnya kita sudah pernah mencoba mengontrol pin &lt;span style=&quot;color: red;&quot;&gt;Digital output&lt;/span&gt; arduino, maka sekarang kita akan mencoba mengimplementasikan Internet Of Thing (IoT) dengan Arduino dan &lt;span style=&quot;color: red;&quot;&gt;Ethernet shield&lt;/span&gt; untuk mengontrol pin &lt;span style=&quot;color: red;&quot;&gt;PWM &lt;/span&gt;(Pulse Width Modulation) arduino melalui internet. Dan artikel selanjutnya di blog ini, kita juga akan mencoba untuk memonitoring &lt;span style=&quot;color: red;&quot;&gt;sensor &lt;/span&gt;sensor melalui internet dengan Arduino Ethernet Shield dan &lt;span style=&quot;color: red;&quot;&gt;Teleduino&lt;/span&gt;! &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x LED (Warna bebas)&lt;/li&gt;
&lt;li&gt;1x Resistor 220 Ohm&lt;/li&gt;
&lt;li&gt;Koneksi Internet&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMXnMnrhbVz36s9vk8IUG4bupG1prrEpCzJ3-Wp_eZl9gR3_vsoP6TkE11B0Y-2wGcVumT2R_Ee1tuYVjjWEzWRsO1mhT6SNF3zOv7OuPxvZ9_AMbeIfT91dcX9sC4xxZbSOCSbvv6o-c/s1600/pwmOutputTeleduino-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMXnMnrhbVz36s9vk8IUG4bupG1prrEpCzJ3-Wp_eZl9gR3_vsoP6TkE11B0Y-2wGcVumT2R_Ee1tuYVjjWEzWRsO1mhT6SNF3zOv7OuPxvZ9_AMbeIfT91dcX9sC4xxZbSOCSbvv6o-c/s640/pwmOutputTeleduino-boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin GND Arduino pada Resistor yang terhubung ke Katoda LED&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 9 Arduino pada Anoda LED&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu ikuti video dibawah ini, dimulai dari &lt;span style=&quot;color: red;&quot;&gt;awal &lt;/span&gt;sampai menit dan detik ke &lt;span style=&quot;color: red;&quot;&gt;6:33&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/xXL3O7B9NnM&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;br /&gt;
3.)&amp;nbsp;&lt;span style=&quot;text-align: center;&quot;&gt;Jika sudah mengikuti tutorial hingga &lt;span style=&quot;color: red;&quot;&gt;posisi video 6:33&lt;/span&gt;, lanjut untuk membuat aplikasi android.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Membuat Aplikasi Android di App Inventor 2: &lt;/span&gt;&lt;br /&gt;
1.) Pertama, &lt;a href=&quot;https://www.dropbox.com/s/d10uy0fnv13vo3r/setPwmOutput.aia?dl=0&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&amp;nbsp;&lt;/a&gt;terlebih dulu layout yang sudah saya buat (Atau bikin sendiri).&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;times new roman&#39;; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
2.) Buka website App Inventor 2, lalu klik &lt;span style=&quot;color: red;&quot;&gt;project &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;Import project (.aia)&lt;/span&gt; dan pilih file tadi.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oZhxxt9mdniR9818EbctY14DUpuw__Ig-Y0Y6Hjq4WCAZwDS1BbfVWzWMy5rzGkF5HP2wKIo2SFuS599XJah5LAIA6INmq5NaAuvavyl-fWcdJKRq9nwdBp-zzpASZ16M11UhZ1o6Yk/s640/11.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
3.) Bila sudah, susunlah blok pemograman yang sudah saya buat, seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizylg01mBV0RnmXHYt0StcOBlcmkJbMmdboMmRik3AfVvuNHbvSRAeb2prXyHRAJWUF4OJlTd0E7HfiyJ-M4qGP7a6AB112OAxUOM20EcWx2fe97TTeVGDuz7ODh-F1JjMS035jsMVjbw/s1600/PWMoutput-teleduino-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizylg01mBV0RnmXHYt0StcOBlcmkJbMmdboMmRik3AfVvuNHbvSRAeb2prXyHRAJWUF4OJlTd0E7HfiyJ-M4qGP7a6AB112OAxUOM20EcWx2fe97TTeVGDuz7ODh-F1JjMS035jsMVjbw/s640/PWMoutput-teleduino-boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat penjelasan program&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Penjelasan Blok Pemograman Aplikasi Android :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
1.) Pertama, buat terlebih dahulu &lt;span style=&quot;color: red;&quot;&gt;variable &lt;/span&gt;hasilSlider dan awali nilai dengan &lt;span style=&quot;color: red;&quot;&gt;0 (Nol)&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv60SqaUdtN_a3Tv7yOySxzcGMobGyHnxuXI8s_z7dxkNj9zVxRFCwEFpy0cXmiRhz-8mfRwJ6DhTOkWBzVjP1eduTvJG0lXePi8VCYHNp94-saY8wTq0CSZBklly33PmOaHD1e1cmFe4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;32&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv60SqaUdtN_a3Tv7yOySxzcGMobGyHnxuXI8s_z7dxkNj9zVxRFCwEFpy0cXmiRhz-8mfRwJ6DhTOkWBzVjP1eduTvJG0lXePi8VCYHNp94-saY8wTq0CSZBklly33PmOaHD1e1cmFe4/s320/1.png&quot; width=&quot;260&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2.) Bila Screen1 &lt;span style=&quot;color: red;&quot;&gt;terbuka&lt;/span&gt;, set label hasilSlider sesuai dengan nilai variable hasilSlider.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhitmebs0IziqQMc_NQhXN3fyQ_JAWWfGwybEJcheEuLldO5Ou7mLbOHOHNF8vUYX0WZY9TYjKk0MbOSoEQ_cGoDlXW3oTXy3XOrif_sObaPlXR6sxP36ENdSlBuirP27RDMb5m3VwX7zw/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;60&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhitmebs0IziqQMc_NQhXN3fyQ_JAWWfGwybEJcheEuLldO5Ou7mLbOHOHNF8vUYX0WZY9TYjKk0MbOSoEQ_cGoDlXW3oTXy3XOrif_sObaPlXR6sxP36ENdSlBuirP27RDMb5m3VwX7zw/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
3.) Button pin9 berfungsi untuk mendifinisikan Pin 9 Arduino sebagai mode &lt;span style=&quot;color: red;&quot;&gt;Output&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnXG0Efsi5Tw2S44lqgS2z8_uw9BCFqY3trceNF8seplyN2N6N7XsjJjuekqEpgAV3QnIPqsdSxYNdry2djNz7lZFXJX8-7paRq6dyLcG5uqG3nncCaEsiNJDkZqxXv-FPvNQPTRv45rw/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnXG0Efsi5Tw2S44lqgS2z8_uw9BCFqY3trceNF8seplyN2N6N7XsjJjuekqEpgAV3QnIPqsdSxYNdry2djNz7lZFXJX8-7paRq6dyLcG5uqG3nncCaEsiNJDkZqxXv-FPvNQPTRv45rw/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4.) Jika posisi slider berubah, set nilai &lt;span style=&quot;color: red;&quot;&gt;variable &lt;/span&gt;hasilSlider dan &lt;span style=&quot;color: red;&quot;&gt;label &lt;/span&gt;= posisi terakhir slider.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFv0qwIrNtBpPeAtKQWx11FiEqRk6pv0cbpXu8TERUOCFPDDWIEk22kzt7bB9FrVSPIcznMiwCtg-FpGLbpfy7dXAvC79WItxp0qFtGgVEqJoHwFCcNejJYFxlTzkIcISfFn3HdCnvS-M/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;115&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFv0qwIrNtBpPeAtKQWx11FiEqRk6pv0cbpXu8TERUOCFPDDWIEk22kzt7bB9FrVSPIcznMiwCtg-FpGLbpfy7dXAvC79WItxp0qFtGgVEqJoHwFCcNejJYFxlTzkIcISfFn3HdCnvS-M/s640/4.png&quot; width=&quot;580&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
5.) Bila button kirim di klik, get &lt;span style=&quot;color: red;&quot;&gt;Request URL &lt;/span&gt;untuk &lt;span style=&quot;color: red;&quot;&gt;setPwmOutput&lt;/span&gt; Teleduino&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilGNO7WJpR7e8xazPpFHd7luOor17XyBpZPfJe40z8uDM_yQ3iO1GA-OUpNxkOoLhq6ul9w9hWMTQvG4EasNfb6u1ZIX6QxymH5EYqrxAkCWI1CckSijNjrRsJWlB568TMFe9dQDfnqa8/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilGNO7WJpR7e8xazPpFHd7luOor17XyBpZPfJe40z8uDM_yQ3iO1GA-OUpNxkOoLhq6ul9w9hWMTQvG4EasNfb6u1ZIX6QxymH5EYqrxAkCWI1CckSijNjrRsJWlB568TMFe9dQDfnqa8/s640/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Setelah semua selesai, maka akan seperti video dibawah ini.&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/CKWorb6QDhs&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/7996554591503121668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/08/mengontrol-pin-pwm-arduino-melalui.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/7996554591503121668'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/7996554591503121668'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/08/mengontrol-pin-pwm-arduino-melalui.html' title='Mengontrol Pin PWM Arduino melalui Internet (Teleduino)'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoMGsPqXY5l0LX_54sRP4VIqDBOUteKQAWWApxzdHE2a0LlzZjSLi2lrFYytirdyFpkkchD8MMq8Keb3fLJ7iWAp6m52HtodyIU0IgkgIHzkNxkHJ7C264uVg9PU86x6a0otwOG5AvJOQ/s72-c/pwm-teleduino.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-8172507138108024825</id><published>2016-08-01T08:53:00.000+07:00</published><updated>2016-08-01T08:53:21.217+07:00</updated><title type='text'>Kontrol Relay melalui Internet dengan Arduino + Teleduino</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Halo bro dan sis, kita bertemu kembali di blog boarduino pada awal Bulan Agustus 2016 :)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Apa kabarnya nih gan? masih menikmati liburan atau sudah kembali beraktifitas normal?&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwajYR7mDrr_cyYbKx11YZxyogT2rgNGID6Zj7pjJfF6Kwr9GLim35kjqiwgcy1_DBy3fZDYz09iiy_9eHC_AMY2Yh9ONEl5wCfboyS_OC3Dhjh7FkW4etKSo1ZI4YV7bkaHOfgt2IScY/s1600/relaycontrol-teleduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwajYR7mDrr_cyYbKx11YZxyogT2rgNGID6Zj7pjJfF6Kwr9GLim35kjqiwgcy1_DBy3fZDYz09iiy_9eHC_AMY2Yh9ONEl5wCfboyS_OC3Dhjh7FkW4etKSo1ZI4YV7bkaHOfgt2IScY/s320/relaycontrol-teleduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;Pada kesempatan hari ini, akhirnya ane bisa &lt;span style=&quot;color: red;&quot;&gt;menyempatkan &lt;/span&gt;diri untuk sejenak membuka blogger dan mempublish artikel ini, karena sebelumnya mulai dari awal Bulan Juli 2016 kebetulan ane cukup banyak &lt;span style=&quot;color: red;&quot;&gt;aktifitas &lt;/span&gt;yang mengharuskan ane diluar rumah, entah itu untuk mengerjakan tugas project kelompok, mudik lebaran 2016, dan &lt;span style=&quot;color: red;&quot;&gt;urusan duniawi&lt;/span&gt; lainnya.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Mohon maaf untuk agan &amp;amp; sista, yang sudah mengirimkan email, whatsapp, dan lainnya apabila belum direspon, karena ane juga hanya &lt;span style=&quot;color: red;&quot;&gt;manusia biasa&lt;/span&gt; dan juga admin blog boarduino hanya ane sendiri, &lt;span style=&quot;color: red;&quot;&gt;semua &lt;/span&gt;artikel dan konten di blog ini ane kerjakan &lt;span style=&quot;color: red;&quot;&gt;sendirian&lt;/span&gt;. Mohon dimaklumi :)&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Oke sudah dulu curhatnya, sekarang kita langsung menuju ke topik pembahasan saja. Di artikel kali ini, kita akan mencoba &lt;span style=&quot;color: red;&quot;&gt;mengontrol relay&lt;/span&gt; melalui internet dengan &lt;span style=&quot;color: red;&quot;&gt;arduino dan ethernet shield&lt;/span&gt; + teleduino. Mungkin ente sudah pernah melihat artikel tentang mengontrol relay dengan arduino dan ethernet shield via &lt;span style=&quot;color: red;&quot;&gt;webserver &lt;/span&gt;di blog ini. Pada artikel itu, akses kita sangat &lt;span style=&quot;color: red;&quot;&gt;terbatas&lt;/span&gt;. Mengapa? karena kita hanya bisa mengontrol apabila masih berada di area sekitar jaringan tersebut, dan kita tidak dapat kontrol dari jarak jauh &lt;span style=&quot;color: red;&quot;&gt;darimana pun&lt;/span&gt; dan &lt;span style=&quot;color: red;&quot;&gt;kapan pun&lt;/span&gt; kita berada.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Nah, maka dari itu sekarang kita akan menggunakan &lt;span style=&quot;color: red;&quot;&gt;Teleduino &lt;/span&gt;sebagai jembatan untuk mengontrol arduino melalui &lt;span style=&quot;color: red;&quot;&gt;internet&lt;/span&gt;, dimana pun dan kapan pun kita berada selama masih dapat &lt;span style=&quot;color: red;&quot;&gt;mengakses&lt;/span&gt; internet maka kita dapat mengontrol arduino jarak jauh. sesuai dengan namanya, Teleduino (Tele artinya &lt;span style=&quot;color: red;&quot;&gt;jauh&lt;/span&gt;, dan Duino artinya &lt;span style=&quot;color: red;&quot;&gt;arduino&lt;/span&gt;). Langsung simak aja :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x Relay Modul&lt;/li&gt;
&lt;li&gt;Koneksi Internet&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio7I-jWu0x6ra84vdrRIyNBY_Ed-LpzHC_Vdg_NGmQ47YKEToDai9HqwgtjRcSfyqTKqNp3PCoVcl0NXZuSePr1vk-nGriU2I9RzeNcuRr26jfgicPkqHu_c13ImgCzEVP0ZDBNVx3Vy4/s1600/arduino-ethernetshield-relay.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio7I-jWu0x6ra84vdrRIyNBY_Ed-LpzHC_Vdg_NGmQ47YKEToDai9HqwgtjRcSfyqTKqNp3PCoVcl0NXZuSePr1vk-nGriU2I9RzeNcuRr26jfgicPkqHu_c13ImgCzEVP0ZDBNVx3Vy4/s640/arduino-ethernetshield-relay.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino ke VCC pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan GND Arduino ke GND pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 2 Arduino ke IN1 pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 3 Arduino ke IN2 pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 4 Arduino ke IN3 pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5 Arduino ke IN4 pada Relay Modul&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2.) Langkah kedua, silahkan tonton video dibawah ini sampai selesai dan coba pahami.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/xXL3O7B9NnM&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Apabila sudah mengikuti tutorialnya hingga selesai, maka akan seperti video dibawah ini&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/uuWTP_BpSfs&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/8172507138108024825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/08/kontrol-relay-melalui-internet-dengan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/8172507138108024825'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/8172507138108024825'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/08/kontrol-relay-melalui-internet-dengan.html' title='Kontrol Relay melalui Internet dengan Arduino + Teleduino'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwajYR7mDrr_cyYbKx11YZxyogT2rgNGID6Zj7pjJfF6Kwr9GLim35kjqiwgcy1_DBy3fZDYz09iiy_9eHC_AMY2Yh9ONEl5wCfboyS_OC3Dhjh7FkW4etKSo1ZI4YV7bkaHOfgt2IScY/s72-c/relaycontrol-teleduino.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-9090945361093569389</id><published>2016-06-25T20:22:00.001+07:00</published><updated>2016-06-25T20:43:43.223+07:00</updated><title type='text'>Kontrol Relay dengan Arduino dan Ethernet Shield</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Halo lagi nih bro, berjumpa lagi nih dengan ane di kesempatan yang semoga bahagia ini ya :)&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Gimana nih kabar? semoga tetap diberikan nikmat sehat ya gan, biar bisa terus semangat.&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2NZiq3m9QzebDjSRCuc09VcTeOJrcbOhWji6JUsc_z8FHHVvy72MH43Qfu2lynnWog6Sor4woVzQlIvxUCidnS6d-Pze4hf3MG4eKseTtbxbbO_lDk9EbDv9M4gX1cp3QfqWeQ6yoBD0/s1600/arduino-ethernet-webserver-relay-boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2NZiq3m9QzebDjSRCuc09VcTeOJrcbOhWji6JUsc_z8FHHVvy72MH43Qfu2lynnWog6Sor4woVzQlIvxUCidnS6d-Pze4hf3MG4eKseTtbxbbO_lDk9EbDv9M4gX1cp3QfqWeQ6yoBD0/s320/arduino-ethernet-webserver-relay-boarduino.web.id.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Di hari ini, kita masih bermain - main dengan arduino dan &lt;span style=&quot;color: red;&quot;&gt;ethernet &lt;/span&gt;shield nih. Setelah sebelumnya kita telah mencoba memulai dengan ethernet shield untuk menampilkan Input &lt;span style=&quot;color: red;&quot;&gt;analog&lt;/span&gt; ataupun &lt;span style=&quot;color: red;&quot;&gt;digital &lt;/span&gt;arduino pada &lt;span style=&quot;color: red;&quot;&gt;web browser&lt;/span&gt;. Nah, kalau sekarang tidak jauh berbeda gan, kita sekarang akan mengontrol pin output dari arduino melalui web browser ente gan!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Di tutorial lainnya yang sudah ane &lt;span style=&quot;color: red;&quot;&gt;publish &lt;/span&gt;di blog ini, mungkin sudah cukup banyak ya gan artikel tentang mengontrol &lt;span style=&quot;color: red;&quot;&gt;relay &lt;/span&gt;dengan Arduino.&amp;nbsp; Ada yang via &lt;span style=&quot;color: red;&quot;&gt;bluetooth &lt;/span&gt;dan lainnya. Nah kalau di artikel kali ini, kita juga akan mencoba menggunakan Ethernet shield untuk mengontrol relay yang terhubung pada pin &lt;span style=&quot;color: red;&quot;&gt;output &lt;/span&gt;arduino melalui web server.&amp;nbsp;Simak aja langsung deh :)&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x Relay Modul&lt;/li&gt;
&lt;li&gt;Koneksi Internet &lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio7I-jWu0x6ra84vdrRIyNBY_Ed-LpzHC_Vdg_NGmQ47YKEToDai9HqwgtjRcSfyqTKqNp3PCoVcl0NXZuSePr1vk-nGriU2I9RzeNcuRr26jfgicPkqHu_c13ImgCzEVP0ZDBNVx3Vy4/s1600/arduino-ethernetshield-relay.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio7I-jWu0x6ra84vdrRIyNBY_Ed-LpzHC_Vdg_NGmQ47YKEToDai9HqwgtjRcSfyqTKqNp3PCoVcl0NXZuSePr1vk-nGriU2I9RzeNcuRr26jfgicPkqHu_c13ImgCzEVP0ZDBNVx3Vy4/s640/arduino-ethernetshield-relay.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino ke VCC pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan GND Arduino ke GND pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 2 Arduino ke IN1 pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 3 Arduino ke IN2 pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 4 Arduino ke IN3 pada Relay Modul&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5 Arduino ke IN4 pada Relay Modul&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot; style=&quot;text-decoration: none;&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;( If Needed )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;4.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah terinstall, jalankan program Arduino-nya.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;7.) Lalu masukan Sketch dibawah ini, dan klik upload.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch Active HIGH&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;SPI&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Ethernet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
&lt;span style=&quot;color: #00979c;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;byte&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;mac&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0xDA&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xAD&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xBE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xEB&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xFE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xFB&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;IPAddress&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;192&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;168&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;182&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;EthernetServer&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;!&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Ethernet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;mac&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;EthernetClient&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;connected&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &amp;nbsp;&amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;HTTP/1.1 200 OK&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Content-Type: text/html&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;HTML&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;HEAD&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;meta http-equiv=\&quot;Refresh\&quot; content=\&quot;4; url=/wakwaw\&quot; /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;application/vnd.wap.xhtml+xml; charset=utf-8\&quot; /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;link type=\&quot;text/css\&quot; rel=\&quot;stylesheet\&quot; href=\&quot;http://haidao.mw.lt/js_css/css_pages.css\&quot; /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;TITLE&amp;gt;Room Automation&amp;lt;/TITLE&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/HEAD&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;BODY align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;h1&amp;gt;Penel Kontrol Ruang Kerja Andy182 &amp;lt;/h1&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;hr /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;br /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;br /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;table align=\&quot;center\&quot;&amp;gt;&amp;lt;tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;th width=\&quot;10%\&quot;&amp;gt;Nama Perangkat&amp;lt;/th&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;th width=\&quot;10%\&quot;&amp;gt;Status Perangkat&amp;lt;/th&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;th width=\&quot;10%\&quot;&amp;gt;Saklar ON/OFF&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh1\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/1on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/1off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh2\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 2&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/2on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/2off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh1\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 3&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/3on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/3off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh2\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 4&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/4on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/4off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/BODY&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;stop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;1on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;1off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;2on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;2off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;3on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;3off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;4on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;4off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT BRAY untuk melihat sketch Active LOW&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT BRAY&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT BRAY&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;SPI&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Ethernet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
&lt;span style=&quot;color: #00979c;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;byte&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;mac&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0xDA&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xAD&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xBE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xEB&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xFE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xFB&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;IPAddress&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;192&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;168&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;182&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;EthernetServer&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;!&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Ethernet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;mac&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;EthernetClient&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;connected&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &amp;nbsp;&amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;HTTP/1.1 200 OK&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Content-Type: text/html&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;HTML&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;HEAD&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;meta http-equiv=\&quot;Refresh\&quot; content=\&quot;4; url=/wakwaw\&quot; /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;application/vnd.wap.xhtml+xml; charset=utf-8\&quot; /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;link type=\&quot;text/css\&quot; rel=\&quot;stylesheet\&quot; href=\&quot;http://haidao.mw.lt/js_css/css_pages.css\&quot; /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;TITLE&amp;gt;Room Automation&amp;lt;/TITLE&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/HEAD&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;BODY align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;h1&amp;gt;Penel Kontrol Ruang Kerja Andy182 &amp;lt;/h1&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;hr /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;br /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;br /&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;table align=\&quot;center\&quot;&amp;gt;&amp;lt;tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;th width=\&quot;10%\&quot;&amp;gt;Nama Perangkat&amp;lt;/th&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;th width=\&quot;10%\&quot;&amp;gt;Status Perangkat&amp;lt;/th&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;th width=\&quot;10%\&quot;&amp;gt;Saklar ON/OFF&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh1\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 1&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/1on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/1off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh2\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 2&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/2on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/2off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh1\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 3&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/3on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/3off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;tr class=\&quot;trh2\&quot;&amp;gt;&amp;lt;td align=\&quot;left\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Relay 4&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;MATI&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;b&amp;gt;HIDUP&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;td align=\&quot;center\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/4on\&quot; /&amp;gt;HIDUP&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;a href=\&quot;/4off\&quot; /&amp;gt;MATI&amp;lt;/a&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/BODY&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;stop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;1on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;1off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;2on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;2off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;3on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;3off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;4on&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;indexOf&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;4off&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;relay4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusR4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;readString&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b style=&quot;color: red;&quot;&gt;NOTE : &lt;/b&gt;Ubah 192.168.0.182 dan sesuaikan IP Adress pada sketch.&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/SScXNcC8tvk&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/9090945361093569389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/06/kontrol-relay-dengan-arduino-dan_25.html#comment-form' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/9090945361093569389'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/9090945361093569389'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/06/kontrol-relay-dengan-arduino-dan_25.html' title='Kontrol Relay dengan Arduino dan Ethernet Shield'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2NZiq3m9QzebDjSRCuc09VcTeOJrcbOhWji6JUsc_z8FHHVvy72MH43Qfu2lynnWog6Sor4woVzQlIvxUCidnS6d-Pze4hf3MG4eKseTtbxbbO_lDk9EbDv9M4gX1cp3QfqWeQ6yoBD0/s72-c/arduino-ethernet-webserver-relay-boarduino.web.id.png" height="72" width="72"/><thr:total>24</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6008882343957334948</id><published>2016-06-24T18:43:00.000+07:00</published><updated>2016-06-24T18:47:20.837+07:00</updated><title type='text'>Mengontrol Servo dengan Arduino dan 2 Sensor Ultrasonic</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Halo bro, berjumpa kembali dengan ane di Minggu ketiga pada Bulan Suci Ramadhan.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Tidak terasa, tinggal menghitung hari lagi akan datang &lt;span style=&quot;color: red;&quot;&gt;Hari Raya&lt;/span&gt; bagi yang merayakannya :)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi02fYx6AE1L1WUois-R5xyyzZ4k8PRZJyK8yt1HlUqrf2V5zhEy4swmnTvw47XrYRgMAulzQr5KgCgG0wt_yKYsfxeLe2HL05uL5iO2PODzTAy7NJgTIzPzy0An9L0LlRMqByeta323fk/s1600/ultrasonic-boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi02fYx6AE1L1WUois-R5xyyzZ4k8PRZJyK8yt1HlUqrf2V5zhEy4swmnTvw47XrYRgMAulzQr5KgCgG0wt_yKYsfxeLe2HL05uL5iO2PODzTAy7NJgTIzPzy0An9L0LlRMqByeta323fk/s320/ultrasonic-boarduino.web.id.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Yap, setelah sekian lama ane jarang mengecek draft &lt;span style=&quot;color: red;&quot;&gt;blogger &lt;/span&gt;ini, hari ini ane sempatkan untuk membuka kembali akun blogger ini untuk memposting tutorial Arduino yang sudah ane simpan di &lt;span style=&quot;color: red;&quot;&gt;draft&lt;/span&gt;, karena kalau tidak di publish dalam waktu yang cepat mungkin akan &lt;span style=&quot;color: red;&quot;&gt;&quot;Basi&quot;&lt;/span&gt; hehehe.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Tutorial ini sebenarnya adalah salah satu request pengunjung blog BoArduino ini.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Pada saat bulan Februari 2016 kemarin ada salah satu agan yang kirim email ke ane, dia ingin membuat &lt;span style=&quot;color: red;&quot;&gt;Tempat sampah otomatis &lt;/span&gt;dengan arduino, yang cara kerjanya&lt;span style=&quot;color: red;&quot;&gt; &lt;span style=&quot;color: black;&quot;&gt;adalah dengan menggunakan 2 sensor ultrasonik. Sensor 1 untuk mendeteksi &lt;span style=&quot;color: red;&quot;&gt;objek &lt;span style=&quot;color: black;&quot;&gt;manusianya &lt;/span&gt;&lt;/span&gt;dan Sensor 2 untuk mendeteksi &lt;span style=&quot;color: red;&quot;&gt;isi&lt;/span&gt; dari tempat sampah, apabila isinya penuh maka tempat sampah tidak akan membuka dan memutar suara &quot;&lt;span style=&quot;color: red;&quot;&gt;Maaf, tempat sampah sudah terisi penuh&lt;/span&gt;&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Tetapi pada tutorial ini, kita tidak akan memutar file &lt;span style=&quot;color: red;&quot;&gt;audio &lt;/span&gt;yang memberikan pesan tersebut. Karena ini hanyalah contoh kecil dari penggunaan sensor ultrasonik lebih dari 1 menggunakan arduino. &lt;span style=&quot;color: red;&quot;&gt;Diharapkan &lt;/span&gt;dari tutorial sederhana ini, ente dapat mengembangkanya lebih jauh.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Motor Servo&amp;nbsp;&lt;/li&gt;
&lt;li&gt;2x Sensor Ultrasonik&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZGCs-PiRdTV8P55PIxW5w1Cu0C_2nfIJR2Av9oMt3rS_IH8dsv-Qusrz1E2gr2EontJWi_csH6NYlL-cBjmyz7HcgZOtJNZdneujknrQLULxHKKXv9nsCK7nfXoPLkipyv5xMD7u8xgs/s1600/Arduino-multiple-ultrasonic-sensor-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZGCs-PiRdTV8P55PIxW5w1Cu0C_2nfIJR2Av9oMt3rS_IH8dsv-Qusrz1E2gr2EontJWi_csH6NYlL-cBjmyz7HcgZOtJNZdneujknrQLULxHKKXv9nsCK7nfXoPLkipyv5xMD7u8xgs/s640/Arduino-multiple-ultrasonic-sensor-boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 5V pada Arduino dihubungkan ke VCC pada kedua sensor dan kabel merah servo.&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke GND pada kedua sensor dan kabel hitam servo.&lt;/li&gt;
&lt;li&gt;Pin 6 pada Arduino dihubungkan ke kabel kuning motor servo&lt;/li&gt;
&lt;li&gt;Pin 7 pada Arduino dihubungkan ke Echo Pin Sensor ultrasonik 1&lt;/li&gt;
&lt;li&gt;Pin 8 pada Arduino dihubungkan ke Trig Pin Sensor ultrasonik 1&lt;/li&gt;
&lt;li&gt;Pin 9 pada Arduino dihubungkan ke Echo Pin Sensor ultrasonik 2&lt;/li&gt;
&lt;li&gt;Pin 10 pada Arduino dihubungkan ke Trig Pin Sensor ultrasonik 2&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.) Setelah terinstall, jalankan program Arduino-nya.&lt;br /&gt;
5.) Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini, dan terakhir klik upload.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #5e6d03;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;NewPing&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;Servo&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#define&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;TRIGGER_PIN&lt;/span&gt; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;8&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#define&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ECHO_PIN&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;7&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#define&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;TRIGGER_PIN2&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#define&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ECHO_PIN2&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;9&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#define&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;MAX_DISTANCE&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;200&lt;/span&gt;

&lt;b&gt;Servo&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;NewPing&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;ultrasonic1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TRIGGER_PIN&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ECHO_PIN&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;MAX_DISTANCE&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;NewPing&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;ultrasonic2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;TRIGGER_PIN2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ECHO_PIN2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;MAX_DISTANCE&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;115200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;attach&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;US1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ultrasonic1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;ping_cm&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;US2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ultrasonic2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;ping_cm&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Hasil Sensor 1 :&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;US1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;cm &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Hasil Sensor 2 :&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;US2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;cm&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;US1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;US2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;US1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;US2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/qCalySPq7jw&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6008882343957334948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/06/mengontrol-servo-dengan-arduino-dan-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6008882343957334948'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6008882343957334948'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/06/mengontrol-servo-dengan-arduino-dan-2.html' title='Mengontrol Servo dengan Arduino dan 2 Sensor Ultrasonic'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi02fYx6AE1L1WUois-R5xyyzZ4k8PRZJyK8yt1HlUqrf2V5zhEy4swmnTvw47XrYRgMAulzQr5KgCgG0wt_yKYsfxeLe2HL05uL5iO2PODzTAy7NJgTIzPzy0An9L0LlRMqByeta323fk/s72-c/ultrasonic-boarduino.web.id.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-5364463481827277228</id><published>2016-06-10T18:56:00.000+07:00</published><updated>2016-06-10T18:56:43.158+07:00</updated><title type='text'>Baca Status Button dengan Arduino dan Ethernet Shield</title><content type='html'>Halo bro dan sis, ketemu lagi dengan ane di hari Jumat Barokah di Bulan Suci Ramadhan ini.&lt;br /&gt;
Seperti biasanya, Apa kabar kalian? semoga saja masih diberi nikmat untuk menjalani hidup.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj_MhEOcWJlx26lEQU99Xa9rmUECwf9lli1JtLcBLEE_dj15kVJAe5gSoOCjvXzP3bLfufQDlQohMZy7rg_15nWm_rFRXccNrY_YC85-TPlQodE47FQrJXDl47SQ0SfC5jVeyaVqgD6pE/s1600/arduino-ethernetshield-webserver-boarduino.web.id.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj_MhEOcWJlx26lEQU99Xa9rmUECwf9lli1JtLcBLEE_dj15kVJAe5gSoOCjvXzP3bLfufQDlQohMZy7rg_15nWm_rFRXccNrY_YC85-TPlQodE47FQrJXDl47SQ0SfC5jVeyaVqgD6pE/s320/arduino-ethernetshield-webserver-boarduino.web.id.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dikesempatan malam ini, kita mencoba menggunakan Arduino dan Ethernet shield untuk membaca status terakhir Button pada pin Arduino. Dan kita akan membaca pin digital input arduino melalui webserver. Oh iya FYI, Pada artikel sebelumnya yang sudah saya publish di awal bulan Juni ini kita juga telah mencoba membaca input pin Arduino, yaitu pin Analog input.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tidak berbeda jauh dengan artikel sebelumnya, di artikel ini kita juga akan membaca pin input arduino, yaitu pin digital input. Hasil pembacaan status terakhir button akan ditampilkan pada web browser dengan mengakses IP adress yang sudah kita tentukan sebelumnya pada sketch.&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Ethernet Shield&lt;/li&gt;
&lt;li&gt;1x Tacticle Switch (Button)&lt;/li&gt;
&lt;li&gt;1x Resistor 10K Ohm&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgte345mHA_CZfGywLDQq0pkB8nb4r0DXFQF0ijyG6TIeoGLhWT-pQCXZkw03FcciPTyoxL_EanlS4WpEBVNF0PbAgNyrNXEd1ABNPAMS5uVIA0Yxcd4ktEhZ1LgoUVNvIodDwSTtuOSBk/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgte345mHA_CZfGywLDQq0pkB8nb4r0DXFQF0ijyG6TIeoGLhWT-pQCXZkw03FcciPTyoxL_EanlS4WpEBVNF0PbAgNyrNXEd1ABNPAMS5uVIA0Yxcd4ktEhZ1LgoUVNvIodDwSTtuOSBk/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan Ethernet Shield pada Board Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino pada salah satu kaki Button&lt;/li&gt;
&lt;li&gt;Hubungkan Pin GND Arduino pada salah satu kaki Button&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 3 Arduino pada salah satu kaki Button&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2.) Setelah itu kita lihat Daftar client DHCP, dan kita lihat IP Adress Ethernet Shield (Wiznet)&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYMlF1JXJUocfY9LNTsTuD3D3HuAV3swj_fXYp8HKxX5SYHDRR9JMmEnm7Kk_Cqw_LpE3XXG97ItyGJF-X1rCakB0z_rySO9f9r7pgnqmjFuo0H53XJAAuR33k17Ae5DvgM5ZM8q8kN7Y/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;369&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYMlF1JXJUocfY9LNTsTuD3D3HuAV3swj_fXYp8HKxX5SYHDRR9JMmEnm7Kk_Cqw_LpE3XXG97ItyGJF-X1rCakB0z_rySO9f9r7pgnqmjFuo0H53XJAAuR33k17Ae5DvgM5ZM8q8kN7Y/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
(Atau bisa juga dengan upload sketch example &lt;span style=&quot;color: red;&quot;&gt;DhcpAddressPrinter&lt;/span&gt;)&lt;/div&gt;
&lt;br /&gt;
3.) Setelah itu kita ubah sketch pada baris berikut ini, dan sesuaikan dengan IP Adress anda&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7UoFO71RdiG41hsz0iYM9vdpyR0605klFKb9c5pdFvOFKbj1BCes0h5BcBls4fWB4i-XUB7RRoL2DNqwccrBkY8Zgj2T30LSrfd5H0Av44LKX3TvsphaPC2nuRI6McRRrKGEnv7yDkk8/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7UoFO71RdiG41hsz0iYM9vdpyR0605klFKb9c5pdFvOFKbj1BCes0h5BcBls4fWB4i-XUB7RRoL2DNqwccrBkY8Zgj2T30LSrfd5H0Av44LKX3TvsphaPC2nuRI6McRRrKGEnv7yDkk8/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
4.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
5.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
6.)&amp;nbsp;Setelah itu, jalankan program Arduino-nya.&lt;br /&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;7.)&lt;/span&gt;&lt;/span&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
8.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
9.) Lalu masukan Sketch dibawah ini.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #5e6d03;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;SPI&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #5e6d03;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;Ethernet&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;byte&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;mac&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xDE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xAD&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xBE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xEF&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xFE&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0xED&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;IPAddress&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;192&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;168&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;102&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;// Ubah dan sesuaikan IP Adress&lt;/span&gt;
&lt;b&gt;EthernetServer&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Buat server pada port 80&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Ethernet&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;mac&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;INPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Set Pin 3 sebagai input&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Mencoba mendapatkan client&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;EthernetClient&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;

 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;// Dapat client?&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;boolean&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;currentLineIsBlank&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;connected&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;// Data client tersedia untuk dibaca&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;// Baca 1 byte (karakter) dari client &amp;nbsp;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;\n&#39;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;currentLineIsBlank&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Kirim sebuah standard http response header&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;HTTP/1.1 200 OK&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Content-Type: text/html&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Connnection: close&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;!DOCTYPE html&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;html&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;head&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;title&amp;gt;Baca Digital Input&amp;lt;/title&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;1\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/head&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;body&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;dapatkanStatusButton&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/body&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;/html&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;// Setiap baris yang di terima, diakhiri dengan &quot;enter&quot;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;currentLineIsBlank&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;\r&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;// Sebuah text karakter telah diterima&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;currentLineIsBlank&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;stop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;// Tutup koneksi&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;dapatkanStatusButton&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;b&gt;EthernetClient&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;cl&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;cl&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;h1&amp;gt;Button lagi di pencet gan!&amp;lt;/h1&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;cl&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;&amp;lt;h1&amp;gt;Button tidak di pencet bray!&amp;lt;/h1&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#Membaca Status Terakhir Button pada Halaman Web&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dengan menggunakan fungsi dapatkanStatusButton() kita akan mendapatkan status yang akan ditampilkan pada webpage. Dalam fungsi &lt;span style=&quot;color: red;&quot;&gt;dapatkanStatusButton()&lt;/span&gt; akan membaca hasil switch. Teks yang ditampilkan pada browser akan menjadi paragraf HTML yang berisi tulisan &quot;&lt;span style=&quot;color: red;&quot;&gt;Button lagi di pencet gan!&lt;/span&gt;&quot; atau &quot;&lt;span style=&quot;color: red;&quot;&gt;Button tidak dipencet bray!&lt;/span&gt;&quot;, tergantung dari keadaan terakhir switch.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#Reload Halaman Web tiap 1 (Satu) Detik&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Sebuah garis HTML di &amp;lt;head&amp;gt; pada bagian dari halaman HTML dikirim ke browser dan digunakan untuk memberitahu browser agar&lt;span style=&quot;color: red;&quot;&gt; me-reload (refresh)&lt;/span&gt; halaman web tiap detik. Hal ini digunakan agar kita dapat mengetahui status terbaru button jika sudah berubah.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
client.println(&quot;&amp;lt;meta http-equiv=\&quot;&lt;span style=&quot;color: red;&quot;&gt;refresh&lt;/span&gt;\&quot; content=\&quot;1\&quot;&amp;gt;&quot;);&lt;/blockquote&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Perhatikan pada baris &lt;span style=&quot;color: red;&quot;&gt;content = &quot;1&quot;&amp;gt;&lt;/span&gt; di bawah ini&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;meta http-equiv=&quot;refresh&quot; &lt;span style=&quot;color: red;&quot;&gt;content=&quot;1&quot;&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
Angka 1 pada bagian itu yang akan memberi tau browser untuk me-reload webpage tiap 1 detik.&lt;br /&gt;
Sama seperti pada tutorial Sebelumnya yang berjudul &quot;&lt;a href=&quot;http:/#&quot; target=&quot;_blank&quot;&gt;Menghubungkan dan Mencoba Arduino Ethernet Shield&lt;/a&gt;&quot; pada tutorial itu halaman web akan me-reload (refresh) otomatis setiap &lt;span style=&quot;color: red;&quot;&gt;5 detik&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/hdeWfFPFxpg&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/5364463481827277228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/06/baca-status-button-dengan-arduino-dan.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5364463481827277228'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5364463481827277228'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/06/baca-status-button-dengan-arduino-dan.html' title='Baca Status Button dengan Arduino dan Ethernet Shield'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj_MhEOcWJlx26lEQU99Xa9rmUECwf9lli1JtLcBLEE_dj15kVJAe5gSoOCjvXzP3bLfufQDlQohMZy7rg_15nWm_rFRXccNrY_YC85-TPlQodE47FQrJXDl47SQ0SfC5jVeyaVqgD6pE/s72-c/arduino-ethernetshield-webserver-boarduino.web.id.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-8101956096805035042</id><published>2016-06-07T13:20:00.000+07:00</published><updated>2016-06-07T13:20:37.605+07:00</updated><title type='text'>Menghubungkan dan Mencoba Arduino Ethernet Shield</title><content type='html'>Halo bro, apa kabar? berjumpa lagi nih dengan saya di &lt;span style=&quot;color: red;&quot;&gt;Bulan Suci Ramadhan&lt;/span&gt; 1437 Hijriyah.&lt;br /&gt;
Saya ucapkan selamat menjalani ibadah puasa di Bulan ini bagi yang menjalankannya :)&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5PVtr0CoiDyhKUyinX8un3RUzVhO2VIAEG3TPJiXjTDKWZeVwL3jRDGTUHfBrf3hclzSva9zKrGyPciYD2g7pPhKAkJbahH3WvTUlYRxZth9VkdF45BoHW_CQcVQb2yAAwTWyNmprZTE/s1600/getting_started.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5PVtr0CoiDyhKUyinX8un3RUzVhO2VIAEG3TPJiXjTDKWZeVwL3jRDGTUHfBrf3hclzSva9zKrGyPciYD2g7pPhKAkJbahH3WvTUlYRxZth9VkdF45BoHW_CQcVQb2yAAwTWyNmprZTE/s320/getting_started.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background: rgb(255 , 255 , 255); border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Artikel ini menunjukkan ente bagaimana untuk memasangkan dan menggunakan Arduino &lt;span style=&quot;color: red;&quot;&gt;Ethernet shield&lt;/span&gt; dengan Arduino Uno, Cara menghubungkan kebel Ethernet dan untuk menguji apakah Ethernet Shield berfungsi dengan baik.&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;notranslate&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ini adalah hal pertama yang perlu Anda lakukan setelah membeli sebuah modul Arduino Ethernet Shield untuk &lt;span style=&quot;color: red;&quot;&gt;pertama kalinya&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Menguji Arduino Ethernet Shield&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: arial, helvetica, verdana, sans-serif; font-size: 0.9em; line-height: 24px; margin-bottom: 10px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Tutorial kali ini akan menunjukkan bagaimana caranya untuk membangun&amp;nbsp;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;WebServer&lt;/span&gt;&amp;nbsp;dengan menggunakan example sketch&amp;nbsp;untuk menguji Ethernet Shield.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Pada sketch &lt;span style=&quot;color: red;&quot;&gt;example &lt;/span&gt;tersebut kita akan mengkonfigurasi Arduino/Ethernet shield sebagai web server kecil yang menampilkan sebuah halaman web yang berisi nilai-nilai dari Pin &lt;span style=&quot;color: red;&quot;&gt;Analog input&lt;/span&gt; Arduino (A0 - A5).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: arial, helvetica, verdana, sans-serif; line-height: 24px; margin-bottom: 10px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Setelah upload sketch ke Arduino, Lalu kita buka IP adress yang sudah kita sesuaikan pada sketch, lalu kita buka pada &lt;span style=&quot;color: red;&quot;&gt;Browser&lt;/span&gt;.&lt;/span&gt;&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 12.96px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Maka akan menghubungkan ke &lt;span style=&quot;color: red;&quot;&gt;Webserver &lt;/span&gt;Arduino, dan akan menampilkan hasil Analog Input (A0-A5).&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 0.9em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Nilai-nilai ini diperbarui setiap &lt;span style=&quot;color: red;&quot;&gt;5 detik&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; font-family: arial, helvetica, verdana, sans-serif; line-height: 24px; margin-bottom: 10px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-size: 14.4px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;notranslate&quot; style=&quot;background-color: white; border: 0px; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 14.4px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Menentukan IP Adress dan Meng-upload Sketch pada Board Arduino&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;1.) Pertama, tancapkan Ethernet shield Arduino dan pasangkan konektor RJ45 dari Router.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;2.) Setelah itu buka software Arduino IDE, lalu upload example sketch seperti gambar dibawah.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbOQYyuMVlsjybMrd053Tm5Bw3RYnD3-eFdRODbGHhOq-wghImeu4um_0c-ri4udbNzKsY27RPxO83RGxypyzxOKnuIGTqRUYkwa6gZq7gEaowyxLdMQuVAQpmCFhic8tlIwqiUtz2q1I/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbOQYyuMVlsjybMrd053Tm5Bw3RYnD3-eFdRODbGHhOq-wghImeu4um_0c-ri4udbNzKsY27RPxO83RGxypyzxOKnuIGTqRUYkwa6gZq7gEaowyxLdMQuVAQpmCFhic8tlIwqiUtz2q1I/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;

&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;3.) Setelah itu kita buka Serial monitor untuk melihat IP Adress yang kita butuhkan.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOohlhtJHqWOnTHE0JLrsPSZ0MKf0ql_TMcRBWSECcUs6YfgUWKJb8qk_oE3Hi2tTou0ug4KJPaFbvswOuxoydNCUHT7Q_wxh2jLQwSSuY7SapHUocGynIpXlorGUgrYBMy4tlZ1CvCaI/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOohlhtJHqWOnTHE0JLrsPSZ0MKf0ql_TMcRBWSECcUs6YfgUWKJb8qk_oE3Hi2tTou0ug4KJPaFbvswOuxoydNCUHT7Q_wxh2jLQwSSuY7SapHUocGynIpXlorGUgrYBMy4tlZ1CvCaI/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;4.) Lalu kita Buka juga example sketch Ethernet Webserver seperti gambar dibawah ini&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI68c5cCbEhKd-DGWH2Jxec5_usYlkRktML1wT4Zkp4aKTWTh2bt6nDa-2bmQOaD9ixPmsIba-K2JOo09n30UIit9KEixFfmh55JX_mbjCE19p9wxbJk4GSbNpzw6SvtSo83yyiKmMdVQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI68c5cCbEhKd-DGWH2Jxec5_usYlkRktML1wT4Zkp4aKTWTh2bt6nDa-2bmQOaD9ixPmsIba-K2JOo09n30UIit9KEixFfmh55JX_mbjCE19p9wxbJk4GSbNpzw6SvtSo83yyiKmMdVQ/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;5.) Setelah itu kita ubah dan sesuaikan pada Baris IP Adress seperti gambar dibawah ini&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjixmZOczPDa3qkomNGgn1i2lqQX5mH16KiGA0cGOCjDhGg87lSxm4agksrFm0fN_z6zIFHr1pvESp9H4aH49jJ6XHKa3ABxkYy3-xM7I1CIUbVaHtFGWRI43hb6fabGgzfGnjHLe-xT7g/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjixmZOczPDa3qkomNGgn1i2lqQX5mH16KiGA0cGOCjDhGg87lSxm4agksrFm0fN_z6zIFHr1pvESp9H4aH49jJ6XHKa3ABxkYy3-xM7I1CIUbVaHtFGWRI43hb6fabGgzfGnjHLe-xT7g/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14.4px; line-height: 24px;&quot;&gt;6.) Setelah itu kita coba buka Serial monitor, maka akanmuncul seperti gambar dibawah ini.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdnvVo8JmMEPqZoqUAgBgimAVl9lX200Nppf175dcqJrFV93RhGqESoBkpikRG7lFsOetGbX0ledzS__xzfe-Z2orIGrx4KWrC1Bac0S1tQTXNJhL81O2KqMDPc0_3yFk62TaCiFhK1tU/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdnvVo8JmMEPqZoqUAgBgimAVl9lX200Nppf175dcqJrFV93RhGqESoBkpikRG7lFsOetGbX0ledzS__xzfe-Z2orIGrx4KWrC1Bac0S1tQTXNJhL81O2KqMDPc0_3yFk62TaCiFhK1tU/s400/4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
7.) Selesai. Saat kita akses IP Adress tersebut pada Browser, maka akan muncul seperti gambar&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4abXo1OQ9Mt_YDX6xyEupaonfY8PhjTYeheoJO_2iiwsHOWWSneE2Q4Lf1uErLg60tLCA0Mf8eKZcB4eItd7CC9WGRXDOOVXDzfUzfGm9DVecK__QTJoiaXNTVpb9baFPUeuF1yqLtKo/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4abXo1OQ9Mt_YDX6xyEupaonfY8PhjTYeheoJO_2iiwsHOWWSneE2Q4Lf1uErLg60tLCA0Mf8eKZcB4eItd7CC9WGRXDOOVXDzfUzfGm9DVecK__QTJoiaXNTVpb9baFPUeuF1yqLtKo/s400/6.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/8101956096805035042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/06/menghubungkan-dan-mencoba-arduino.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/8101956096805035042'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/8101956096805035042'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/06/menghubungkan-dan-mencoba-arduino.html' title='Menghubungkan dan Mencoba Arduino Ethernet Shield'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5PVtr0CoiDyhKUyinX8un3RUzVhO2VIAEG3TPJiXjTDKWZeVwL3jRDGTUHfBrf3hclzSva9zKrGyPciYD2g7pPhKAkJbahH3WvTUlYRxZth9VkdF45BoHW_CQcVQb2yAAwTWyNmprZTE/s72-c/getting_started.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-373685805324253686</id><published>2016-05-31T23:27:00.003+07:00</published><updated>2016-05-31T23:30:54.405+07:00</updated><title type='text'>Kontrol Servo dengan Metode Pengajaran (Teach Function)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Halo, Hai, Wuzzup, berjumpa lagi dengan ane pada penghujung hari dibulan &lt;span style=&quot;color: red;&quot;&gt;Mei &lt;/span&gt;Tahun 2016.&lt;br /&gt;
Tak terasa hari demi hari, waktu demi waktu sudah berlalu begitu saja dengan cepat ya gan.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyMQuwtUTR4SJQe1b8jM6CGQp1ftQoSz06OsGkiOZl8SPl0BYnF29JGwiNsPeRgTohXB8nEaZ2Dy5CN1w6EkJCKUxSk1XsELFsflyPxrLhuAPaO6p3bxPdhDQaujZ2JW12mTo98JbEouo/s1600/servo-teaching-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyMQuwtUTR4SJQe1b8jM6CGQp1ftQoSz06OsGkiOZl8SPl0BYnF29JGwiNsPeRgTohXB8nEaZ2Dy5CN1w6EkJCKUxSk1XsELFsflyPxrLhuAPaO6p3bxPdhDQaujZ2JW12mTo98JbEouo/s320/servo-teaching-boarduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada hari saat ane mempublish artikel yang sedang ente baca ini bertepatan tanggal 31 Mei 2016. Ane memposting artikel ini di penghujung bulan, wew tumben sekali ya? ada apa memangnya? Nah, sebenarnya di Bulan Mei ini bisa dibilang juga ane masih lumayan banyak kesibukan di dunia nyata, terlebih lagi untuk fokus terhadap &lt;span style=&quot;color: red;&quot;&gt;tugas &lt;/span&gt;yang diberikan oleh Dosen ane nih gan -_-&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dan ane memposting artikel ini karena ane merasa punya &lt;span style=&quot;color: red;&quot;&gt;hutang &lt;/span&gt;kepada ente semua, karena Blog ane ini ane targetkan untuk memposting &lt;span style=&quot;color: red;&quot;&gt;minimal &lt;/span&gt;4 artikel dalam satu bulannya. Dan setelah ane login blogger dan melihat artikel bulan ini, ternyata ane belum memposting artikel &lt;span style=&quot;color: red;&quot;&gt;ke-empat &lt;/span&gt;di bulan Mei ini, Okelah ane publish di penghujung pergantian bulan Mei 2016. By the way bagi ente yang Muslim, sebentar lagi kita akan berjumpa dengan Bulan Suci &lt;span style=&quot;color: red;&quot;&gt;Ramadhan&lt;/span&gt;, semoga saja dibulan ini kita dapat me&lt;span style=&quot;color: red;&quot;&gt;maksimal&lt;/span&gt;kan peribadatan kita dengan Maksimal. Amiin&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Oke tak usah bertele - tele, di artikel atau tutorial arduino kali ini, kita akan mencoba mengontrol servo dengan arduino. Lebih tepatnya kita akan mengontrol derajat putar servo sesuai dari nilai &lt;span style=&quot;color: red;&quot;&gt;potensiometer &lt;/span&gt;yang sudah kita &lt;span style=&quot;color: red;&quot;&gt;Map &lt;/span&gt;range nilainya dari &lt;span style=&quot;color: red;&quot;&gt;0-1023&lt;/span&gt; menjadi &lt;span style=&quot;color: red;&quot;&gt;0-180&lt;/span&gt;. Sama seperti artikel sebelumnya yang sudah di publish di blog ini berjudul &quot;&lt;a href=&quot;http://www.boarduino.web.id/2015/02/mengontrol-servo-dengan-potensiometer.html&quot; target=&quot;_blank&quot;&gt;Mengontrol Servo dengan Potensiometer&lt;/a&gt;&quot;. Lalu apa bedanya dengan artikel kali ini? Bedanya adalah kita akan mengembangkannya dengan menambahkan button untuk merubah state untuk mode &quot;&lt;span style=&quot;color: red;&quot;&gt;Free mode&lt;/span&gt;&quot;, &quot;&lt;span style=&quot;color: red;&quot;&gt;Record mode&lt;/span&gt;&quot; atau &quot;&lt;span style=&quot;color: red;&quot;&gt;Play mode&lt;/span&gt;&quot;. Penasaran? Mari langsung saja di simak artikelnya :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino / Genuino Board&lt;/li&gt;
&lt;li&gt;1x Potensiometer 10K&lt;/li&gt;
&lt;li&gt;1x LED (Warna bebas)&lt;/li&gt;
&lt;li&gt;1x Resistor 220 Ohm&lt;/li&gt;
&lt;li&gt;1x Resistor 10K Ohm&lt;/li&gt;
&lt;li&gt;1x Button (Tacticle Switch)&lt;/li&gt;
&lt;li&gt;1x Motor Servo&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRghWmNPlCpvhg8clYr2zieZYitdLQB2P25g5jCMWetVgCjxr28je3vGq4-MKXnh-QvoePzDgFhg5NF1IGiwnSu8jc_gheVvZsm3X6rNIN8Y5ZuTf7mVG6KTceH8RgL1f4PgeKk5n0RYA/s1600/servo_teaching_boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;388&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRghWmNPlCpvhg8clYr2zieZYitdLQB2P25g5jCMWetVgCjxr28je3vGq4-MKXnh-QvoePzDgFhg5NF1IGiwnSu8jc_gheVvZsm3X6rNIN8Y5ZuTf7mVG6KTceH8RgL1f4PgeKk5n0RYA/s640/servo_teaching_boarduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino pada VCC di Breadboard&lt;/li&gt;
&lt;li&gt;Hubungkan Pin GND Arduino pada GND di Breadboard&lt;/li&gt;
&lt;li&gt;Hubungkan Pin A0 Arduino pada Kaki tengan Potensio&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 2 Arduino pada Salah satu kaki Button&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 3 Arduino pada kabel Kuning Servo&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 4 Arduino pada Anoda LED&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.)&amp;nbsp;Setelah itu, jalankan program Arduino-nya.&lt;br /&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #95a5a6;&quot;&gt;/* Mengontrol Servo dengan Metode Teaching&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt; * Created by Muhamad Andi Prasetyo&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt; * Senin, 21 Maret 2016&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt; * Email : Muhandi.prasetyo@gmail.com&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt; * &lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: #95a5a6;&quot;&gt;www.boarduino.web.id&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #95a5a6;&quot;&gt; &lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt;*/&lt;/span&gt;

&lt;span style=&quot;color: #5e6d03;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;Servo&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt; &amp;nbsp;
&lt;b&gt;Servo&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;potensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;byte&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;penyimpanan&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;800&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;hitungRekaman&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;tombol&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusTerakhirButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tombol&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;INPUT_PULLUP&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;attach&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tombol&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusTerakhirButton&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Counter : &quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;analogRead&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;potensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;map&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1023&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;rekamNilaiPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;mainkanServo&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusTerakhirButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;mainkanServo&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Servo sedang bermain, yeah!&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hitungRekaman&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;penyimpanan&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;penyimpanan&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &amp;nbsp;&amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;rekamNilaiPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Merekam nilai potensio, Max 12 Detik&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;800&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;analogRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;potensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;map&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1023&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servoAne&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;penyimpanan&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;tombol&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hitungRekaman&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;indikator&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;button_penghitung&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hitungRekaman&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;800&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/ho1DyAKdnoA&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/373685805324253686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-servo-dengan-metode-pengajaran.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/373685805324253686'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/373685805324253686'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-servo-dengan-metode-pengajaran.html' title='Kontrol Servo dengan Metode Pengajaran (Teach Function)'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyMQuwtUTR4SJQe1b8jM6CGQp1ftQoSz06OsGkiOZl8SPl0BYnF29JGwiNsPeRgTohXB8nEaZ2Dy5CN1w6EkJCKUxSk1XsELFsflyPxrLhuAPaO6p3bxPdhDQaujZ2JW12mTo98JbEouo/s72-c/servo-teaching-boarduino.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-5835495249436977934</id><published>2016-05-21T13:36:00.001+07:00</published><updated>2016-05-21T13:38:26.934+07:00</updated><title type='text'>Kontrol Servo dengan Arduino dan Remote IR + IR Receiver</title><content type='html'>Halo bro, selamat datang... Kita berjumpa dan berkumpul kembali di blog BoArduino ini.&lt;br /&gt;
Gimana kabar? Semoga baik-baik saja dan tetap semangat untuk melakukan aktivitas (Produktif).&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxsWPIVkl0tJ2b8Qs_MjXdxu8yZSykDZLJSkroTPE40y5I5uxe54170R8QRlI3xvJQMZlBe0WRNrjwUDD9ch5nWl3XCBK7GC3V3IqGVfTn_8tvRvtdZPFQC3S2u9SR02PLMILhnNlEjeY/s1600/arduino-irreceiver-remot-servo-boarduino.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxsWPIVkl0tJ2b8Qs_MjXdxu8yZSykDZLJSkroTPE40y5I5uxe54170R8QRlI3xvJQMZlBe0WRNrjwUDD9ch5nWl3XCBK7GC3V3IqGVfTn_8tvRvtdZPFQC3S2u9SR02PLMILhnNlEjeY/s320/arduino-irreceiver-remot-servo-boarduino.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;Sekarang saat ane menulis ini, sudah Hari Sabtu. Dan hari ini berbeda dari hari weekend sebelumnya. Oh iya, ane mau konfirmasi kepada agan dan sista yang telah berkunjung, meninggalkan komentar ataupun mengirimkan pesan melalui email dan whatsapp. Mohon maaf nih sebelumnya apabila mungkin komentarnya belum muncul, atau email belum ane bales, dll. Pastinya ane punya alasan mengapa demikian, karena sebenarnya sudah beberapa minggu ini ane masih ada kesibukan untuk mengerjakan tugas dari dosen Mata kuliah &lt;span style=&quot;color: red;&quot;&gt;Mikrokontroller dan Mikroprosessor&lt;/span&gt;. Tugasnya sih masih dalam proses, doakan saja supaya ane dan kelompok ane dimudahkan ya gan :) Dan nanti insyaAllah setelah tugas ane itu selesai, ane share juga proses pembuatannya di blog ini.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada artikel ini sebenarnya hampir mirip dengan Artikel Arduino sebelumnya yang berjudul &quot;&lt;a href=&quot;http://www.boarduino.web.id/2016/05/kontrol-output-pwm-arduino-dengan-ir.html&quot; target=&quot;_blank&quot;&gt;Kontrol Output Pin PWM Arduino dengan IR Receiver&amp;nbsp;+ Remote&lt;/a&gt;&quot; Dan kita pun masih menggunakan Pin PWM, hanya saja pada kali ini output yang akan di kontrol adalah Motor Servo, sebagai contoh disini saya menggunakan Motor Servo merk Tower Pro dan Tipe SG90.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Remote Universal (TV,DVD, dll)&lt;/li&gt;
&lt;li&gt;1x IR Receiver HX1838, Silahkan Cek&amp;nbsp;&lt;a href=&quot;http://dalincom.ru/datasheet/AX-1838HS.pdf&quot; target=&quot;_blank&quot;&gt;DATASHEET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1x Motor Servo&lt;/li&gt;
&lt;li&gt;Library&amp;nbsp;&lt;a href=&quot;https://github.com/z3t0/Arduino-IRremote&quot; target=&quot;_blank&quot;&gt;IRremote&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1x Project board ( Breadboard )&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;1.) Pertama, Download Library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;IRremote&amp;nbsp;&lt;/span&gt;pada Software Arduino IDE ente.&amp;nbsp;&lt;a href=&quot;https://github.com/z3t0/Arduino-IRremote&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;br /&gt;
2.) Setelah itu Susunlah rangkaian dibawah ini pada breadboard.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HASvnwhdEI45MWS48T-ycv5DrjkbThBxiDqqzh1wfxsZ_nESPkP8LSxHWAJ9yjWShXW4z-eEuAdIedH90R0DwyGtG9JKLKK2vZjQQtearv50oMlvOhhcd_y4x-AOtfxTjBnGsiM3jJU/s1600/IR_decoder_bb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HASvnwhdEI45MWS48T-ycv5DrjkbThBxiDqqzh1wfxsZ_nESPkP8LSxHWAJ9yjWShXW4z-eEuAdIedH90R0DwyGtG9JKLKK2vZjQQtearv50oMlvOhhcd_y4x-AOtfxTjBnGsiM3jJU/s640/IR_decoder_bb.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Pin 11 pada Arduino dihubungkan ke Kaki 1 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke Kaki 2 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin 5v pada Arduino dihubungkan ke Kaki 3 IR Receiver&lt;/li&gt;
&lt;/ul&gt;
3.) Lalu tambahkan library IRremote. Klik&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Sketch&lt;/span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Include Library&lt;/span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Add .ZIP Library...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYxwVyFviOUwjLIY1s1n8ITT5VxK20iYYnBl6KJinZU5C_UTD5_mWM8GQBPuLCww7AZQjq02nvIC34Pw8Y4pMxrNd42lc6tUz1plMI1ieCbUDnhyNy7me2ptxpT2UV-ZtpsCe_UNmuz-4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYxwVyFviOUwjLIY1s1n8ITT5VxK20iYYnBl6KJinZU5C_UTD5_mWM8GQBPuLCww7AZQjq02nvIC34Pw8Y4pMxrNd42lc6tUz1plMI1ieCbUDnhyNy7me2ptxpT2UV-ZtpsCe_UNmuz-4/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
4.) Setelah itu pilih file library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;.ZIP&lt;/span&gt;&amp;nbsp;yang ente download tadi, lalu klik&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Open&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfeOsVLdfl7qdTLtpin8XNaTkHDviqzNSyuNVEnTtRYd6pHbzk1otCi9Ll6eWg5G7lk_-PZb2IBvWE3qblRdUaQMYKbr8UCh3OhwiUvlb-nEIJCuOyKLdI94_AxXbrfGI6MAVSL2mbaPI/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;207&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfeOsVLdfl7qdTLtpin8XNaTkHDviqzNSyuNVEnTtRYd6pHbzk1otCi9Ll6eWg5G7lk_-PZb2IBvWE3qblRdUaQMYKbr8UCh3OhwiUvlb-nEIJCuOyKLdI94_AxXbrfGI6MAVSL2mbaPI/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Done, Library berhasil ditambahkan ke Software Arduino IDE&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Sekarang&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;kita akan melakukan decode terhadap sinyal infrared yang dikirimkan oleh remote.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;1.) Buka sketch untuk decode, Klik&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;File&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;IRremote&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;IRrecvDemo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqMVXWFDOo_VA1z6BtPpM9Lm0hngQLxPG_3AgA9WIG1FFQMYHDx7pwpl9s2H3zvnl3B0pPWdD3m6Ejj50JxzGEUI9sbKpUzRURhQ5bsDvrQ3kt5g2Xpd2EMRAoBr5vV81Ygm4R7F1tWfM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqMVXWFDOo_VA1z6BtPpM9Lm0hngQLxPG_3AgA9WIG1FFQMYHDx7pwpl9s2H3zvnl3B0pPWdD3m6Ejj50JxzGEUI9sbKpUzRURhQ5bsDvrQ3kt5g2Xpd2EMRAoBr5vV81Ygm4R7F1tWfM/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;2.) Setelah itu maka ente cari dan ente ubah sketch pada baris seperti dibawah ini&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HEX&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Hingga menjadi sama seperti dibawah ini, lalu upload ke Arduino&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;3.) Lalu buka serial monitor dan tekan Tombol di remote untuk dapatkan hasil dari tiap button&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnG8wXmoFdM4NY12pYmDYn4JA_ZqnSZ1eoMyA2u8F2O8Xaf1CKSrdhBAWtkqd2Iu6R4DWegqFmPAeZD9XoJFriRg1dp1Rr8h2PD59R6vb4RBDisUR88KwvwhxWrn_4ukCmfeyIeCfO13k/s1600/1234+atas+kanan+bawah+kiri+ok+bukan+hexa.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnG8wXmoFdM4NY12pYmDYn4JA_ZqnSZ1eoMyA2u8F2O8Xaf1CKSrdhBAWtkqd2Iu6R4DWegqFmPAeZD9XoJFriRg1dp1Rr8h2PD59R6vb4RBDisUR88KwvwhxWrn_4ukCmfeyIeCfO13k/s400/1234+atas+kanan+bawah+kiri+ok+bukan+hexa.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;4.) Setelah kita mendapatkan hasilnya, maka catat pada Notepad (Agar lebih memudahkan).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPEWqHkMCbTi_IpYT83vYMMOeNXPCL5STGkwCM407jc68WL_St8Y6SZJcbs3T-yz2_YKUj9uC0CgFNV9O_FzdkiUWk0G7Us4Gss9YDg5Z1dZ_8aNgMpBC-ChDnd83Me3IN89d-HdrR1-A/s1600/1234+atas+kanan+bawah+kiri+ok+bukan+hexa+notepad.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPEWqHkMCbTi_IpYT83vYMMOeNXPCL5STGkwCM407jc68WL_St8Y6SZJcbs3T-yz2_YKUj9uC0CgFNV9O_FzdkiUWk0G7Us4Gss9YDg5Z1dZ_8aNgMpBC-ChDnd83Me3IN89d-HdrR1-A/s400/1234+atas+kanan+bawah+kiri+ok+bukan+hexa+notepad.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;Oke, Selesai untuk decode tombol dari Remote Infrared.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Nah, di langkah selanjutnya ini kita akan Mengontrol Servo dengan Remote Infrared.&lt;/span&gt;&lt;br /&gt;
1.) Pertama, pastikan untuk mencabut Kabel USB Arduino yang terhubung ke Komputer.&lt;br /&gt;
2.) Setelah itu kita tambahkan Motor Servo sehingga menjadi gambar seperti dibawah ini.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRZ-MavXmzWKelMhqmNigkW_yw-hIAG62XmesYW_MjLa-DHMDDJCYUeMzhyphenhyphenoxVWSFzLXl8iL0_GXB8BrIb6lIojaQzRC3D4sy64R9FLuE51SravkiY0AHTF1BVKpFSRdT5Z5K3CeP1lFQ/s1600/IR-remote-servo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;414&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRZ-MavXmzWKelMhqmNigkW_yw-hIAG62XmesYW_MjLa-DHMDDJCYUeMzhyphenhyphenoxVWSFzLXl8iL0_GXB8BrIb6lIojaQzRC3D4sy64R9FLuE51SravkiY0AHTF1BVKpFSRdT5Z5K3CeP1lFQ/s640/IR-remote-servo.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Pin 11 pada Arduino dihubungkan ke Kaki 1 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke Kaki 2 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin 5v pada Arduino dihubungkan ke Kaki 3 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin 5v pada Arduino di hubungkan ke Kabel Merah Servo&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino di hubungkan ke Kabel Hitam Servo&lt;/li&gt;
&lt;li&gt;Pin 9 pada Arduino dihubungkan ke Kabel Kuning Servo&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 20.3px;&quot;&gt;3.) Bila sudah menambahkan wiring Motor Servo, maka upload sketch dibawah ini ke Arduino.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Servo&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;IRremote&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;RECV_PIN&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;Servo_PIN&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Servo&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;servo&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;IRrecv&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;irx&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;RECV_PIN&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;decode_results&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;irx&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;enableIRIn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servo&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;attach&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;115200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servo&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;irx&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;decode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1331218487&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah 1331218487&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;180&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servo&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1331185847&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah 1331185847&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;servo&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;irx&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;resume&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/GG62l9iDW9E&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/5835495249436977934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-servo-dengan-arduino-dan-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5835495249436977934'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5835495249436977934'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-servo-dengan-arduino-dan-remote.html' title='Kontrol Servo dengan Arduino dan Remote IR + IR Receiver'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxsWPIVkl0tJ2b8Qs_MjXdxu8yZSykDZLJSkroTPE40y5I5uxe54170R8QRlI3xvJQMZlBe0WRNrjwUDD9ch5nWl3XCBK7GC3V3IqGVfTn_8tvRvtdZPFQC3S2u9SR02PLMILhnNlEjeY/s72-c/arduino-irreceiver-remot-servo-boarduino.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-3833798983918433917</id><published>2016-05-06T21:07:00.000+07:00</published><updated>2016-05-06T21:10:17.867+07:00</updated><title type='text'>Kontrol Output PWM Arduino dengan IR Receiver + Remote</title><content type='html'>Halo sobat, selamat datang di hari Jum&#39;at yang berkah ini. Gimana nih kabar ente semuanya?&lt;br /&gt;
Kamis sampai minggu, mungkin adalah liburan yang cukup panjang untuk yang merasakannya&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgerF-QczQEC8hVVZpUMquYWYoo_fw1n6H-IsOp3sjtotmuXvJrydryUI_YBRPguyUWdOatrb3gQ12Q2v0bzZ07qrx4EObATNDFUDGKMWOu8MWQusebKsNr91lOe2i2n0VIFhawjJWQpfs/s1600/unduhan.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgerF-QczQEC8hVVZpUMquYWYoo_fw1n6H-IsOp3sjtotmuXvJrydryUI_YBRPguyUWdOatrb3gQ12Q2v0bzZ07qrx4EObATNDFUDGKMWOu8MWQusebKsNr91lOe2i2n0VIFhawjJWQpfs/s320/unduhan.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ane pun mulai hari kamis sampai dengan minggu nanti, sedang menikmati &lt;span style=&quot;color: red;&quot;&gt;liburan&lt;/span&gt;. Tetapi ya sebenernya sih menurut ane gak bisa disebut liburan juga buat nih, soalnya ane tetap melakukan aktivitas yang berbeda dari aktivitas liburannya orang normal. Dan tugas kuliah pun sudah mendekati &lt;span style=&quot;color: red;&quot;&gt;Garis mati&lt;/span&gt; a.k.a (deadline). Kalau kata teman ane, atau kata anak muda zaman sekarang sih ini namanya &lt;span style=&quot;color: red;&quot;&gt;Kurang Piknik&lt;/span&gt;. Lalu, setelah ane berselancar di internet ane menemukan artikel yang berjudul &quot;&lt;a href=&quot;http://health.detik.com/read/2015/07/03/083528/2959238/763/terbukti-kurang-piknik-bikin-otak-dipenuhi-pikiran-negatif&quot; target=&quot;_blank&quot;&gt;Terbukti, Kurang Piknik Bikin Otak Dipenuhi Pikiran Negatif&lt;/a&gt;&quot;, ane pun hanya bisa diam dan tercengang, hehehe jadi pingin piknik juga nih jadinya :). Kalau kalian gimana nih? apakah kalian kurang piknik juga nih? hehe&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Oke gan sudah dulu ya curhatnya, kita langsung menuju pembahasan saja. Pada artikel kali ini, masih menggunakan protokol Infrared dan Arduino. Di artikel ini kitapun masih menggunakan 2 komponen utama untuk berkomunikasinya yaitu &lt;span style=&quot;color: red;&quot;&gt;IR Receiver&lt;/span&gt; dan &lt;span style=&quot;color: red;&quot;&gt;IR LED&lt;/span&gt;. Kalau di artikel sebelum artikel ini, kita telah mencoba untuk mengontrol relay dengan arduino dan remot infrared, atau bisa juga disebut menyalakan lampu dengan remot, atau bisa juga disebut kontrol arduino dengan remot, atau apalah terserah dari pribadi masing-masing ingin menyebutnya apa :P&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Nah, kalau di artikel sebelumnya kita hanya dapat mengontrol output arduino untuk &lt;span style=&quot;color: red;&quot;&gt;ON&lt;/span&gt;/&lt;span style=&quot;color: red;&quot;&gt;OFF&lt;/span&gt; atau hanya memberikan logika &lt;span style=&quot;color: red;&quot;&gt;HIGH&lt;/span&gt;/&lt;span style=&quot;color: red;&quot;&gt;LOW&lt;/span&gt; saja pada pin Output tersebut. Pada kali ini, kita akan mengontrolnya dengan Output PWM, dan tentunya output yang kita gunakan yang terhubung pada &lt;span style=&quot;color: red;&quot;&gt;Pin PWM&lt;/span&gt; Arduino. Bagi ente yang belum tau atau belum berkenalan dengan apa itu &lt;span style=&quot;color: red;&quot;&gt;PWM&lt;/span&gt; (Pulse Width Modulation), Silahkan bisa mencari referensi dari buku, internet atau lainnya.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x LED (warna bebas)&lt;/li&gt;
&lt;li&gt;1x Resistor 220 Ohm &lt;/li&gt;
&lt;li&gt;1x Remote Universal (TV,DVD, dll)&lt;/li&gt;
&lt;li&gt;1x IR Receiver HX1838, Silahkan Cek&amp;nbsp;&lt;a href=&quot;http://dalincom.ru/datasheet/AX-1838HS.pdf&quot; target=&quot;_blank&quot;&gt;DATASHEET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Library&amp;nbsp;&lt;a href=&quot;https://github.com/z3t0/Arduino-IRremote&quot; target=&quot;_blank&quot;&gt;IRremote&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Project board ( Breadboard )&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;1.) Pertama, Download Library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;IRremote&amp;nbsp;&lt;/span&gt;pada Software Arduino IDE ente.&amp;nbsp;&lt;a href=&quot;https://github.com/z3t0/Arduino-IRremote&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;br /&gt;
2.) Setelah itu Susunlah rangkaian dibawah ini pada breadboard.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HASvnwhdEI45MWS48T-ycv5DrjkbThBxiDqqzh1wfxsZ_nESPkP8LSxHWAJ9yjWShXW4z-eEuAdIedH90R0DwyGtG9JKLKK2vZjQQtearv50oMlvOhhcd_y4x-AOtfxTjBnGsiM3jJU/s1600/IR_decoder_bb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HASvnwhdEI45MWS48T-ycv5DrjkbThBxiDqqzh1wfxsZ_nESPkP8LSxHWAJ9yjWShXW4z-eEuAdIedH90R0DwyGtG9JKLKK2vZjQQtearv50oMlvOhhcd_y4x-AOtfxTjBnGsiM3jJU/s640/IR_decoder_bb.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Pin 11 pada Arduino dihubungkan ke Kaki 1 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke Kaki 2 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin 5v pada Arduino dihubungkan ke Kaki 3 IR Receiver&lt;/li&gt;
&lt;/ul&gt;
3.) Lalu tambahkan library IRremote. Klik&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Sketch&lt;/span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Include Library&lt;/span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Add .ZIP Library...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYxwVyFviOUwjLIY1s1n8ITT5VxK20iYYnBl6KJinZU5C_UTD5_mWM8GQBPuLCww7AZQjq02nvIC34Pw8Y4pMxrNd42lc6tUz1plMI1ieCbUDnhyNy7me2ptxpT2UV-ZtpsCe_UNmuz-4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYxwVyFviOUwjLIY1s1n8ITT5VxK20iYYnBl6KJinZU5C_UTD5_mWM8GQBPuLCww7AZQjq02nvIC34Pw8Y4pMxrNd42lc6tUz1plMI1ieCbUDnhyNy7me2ptxpT2UV-ZtpsCe_UNmuz-4/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
4.) Setelah itu pilih file library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;.ZIP&lt;/span&gt;&amp;nbsp;yang ente download tadi, lalu klik&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;Open&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfeOsVLdfl7qdTLtpin8XNaTkHDviqzNSyuNVEnTtRYd6pHbzk1otCi9Ll6eWg5G7lk_-PZb2IBvWE3qblRdUaQMYKbr8UCh3OhwiUvlb-nEIJCuOyKLdI94_AxXbrfGI6MAVSL2mbaPI/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;207&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfeOsVLdfl7qdTLtpin8XNaTkHDviqzNSyuNVEnTtRYd6pHbzk1otCi9Ll6eWg5G7lk_-PZb2IBvWE3qblRdUaQMYKbr8UCh3OhwiUvlb-nEIJCuOyKLdI94_AxXbrfGI6MAVSL2mbaPI/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Done, Library berhasil ditambahkan ke Software Arduino IDE&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Sekarang&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;kita akan melakukan decode terhadap sinyal infrared yang dikirimkan oleh remote.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;1.) Buka sketch untuk decode, Klik&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;File&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;IRremote&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;IRrecvDemo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqMVXWFDOo_VA1z6BtPpM9Lm0hngQLxPG_3AgA9WIG1FFQMYHDx7pwpl9s2H3zvnl3B0pPWdD3m6Ejj50JxzGEUI9sbKpUzRURhQ5bsDvrQ3kt5g2Xpd2EMRAoBr5vV81Ygm4R7F1tWfM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqMVXWFDOo_VA1z6BtPpM9Lm0hngQLxPG_3AgA9WIG1FFQMYHDx7pwpl9s2H3zvnl3B0pPWdD3m6Ejj50JxzGEUI9sbKpUzRURhQ5bsDvrQ3kt5g2Xpd2EMRAoBr5vV81Ygm4R7F1tWfM/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;2.) Setelah itu maka ente cari dan ente ubah sketch pada baris seperti dibawah ini&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HEX&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Hingga menjadi sama seperti dibawah ini, lalu upload ke Arduino&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;3.) Lalu buka serial monitor dan tekan Tombol di remote untuk dapatkan hasil dari tiap button&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnG8wXmoFdM4NY12pYmDYn4JA_ZqnSZ1eoMyA2u8F2O8Xaf1CKSrdhBAWtkqd2Iu6R4DWegqFmPAeZD9XoJFriRg1dp1Rr8h2PD59R6vb4RBDisUR88KwvwhxWrn_4ukCmfeyIeCfO13k/s1600/1234+atas+kanan+bawah+kiri+ok+bukan+hexa.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnG8wXmoFdM4NY12pYmDYn4JA_ZqnSZ1eoMyA2u8F2O8Xaf1CKSrdhBAWtkqd2Iu6R4DWegqFmPAeZD9XoJFriRg1dp1Rr8h2PD59R6vb4RBDisUR88KwvwhxWrn_4ukCmfeyIeCfO13k/s400/1234+atas+kanan+bawah+kiri+ok+bukan+hexa.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;4.) Setelah kita mendapatkan hasilnya, maka catat pada Notepad (Agar lebih memudahkan).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGnOQEL5rwtei1JYTF0KpLTlNVeUivsXuigJV9HaeTbC1x-WIn7cLGxSOFyj-d5Xb4rpViBTR0NosT8Ffb6Jg8WsB3tyo4eJfjjUzexMuC0TmtTaXEOxhR9YdhdlAyuhMBWPmYohIkqSI/s1600/1234+atas+kanan+bawah+kiri+ok+bukan+hexa+notepad.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGnOQEL5rwtei1JYTF0KpLTlNVeUivsXuigJV9HaeTbC1x-WIn7cLGxSOFyj-d5Xb4rpViBTR0NosT8Ffb6Jg8WsB3tyo4eJfjjUzexMuC0TmtTaXEOxhR9YdhdlAyuhMBWPmYohIkqSI/s400/1234+atas+kanan+bawah+kiri+ok+bukan+hexa+notepad.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;Oke, Selesai untuk decode tombol dari Remote Infrared.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;color: red; font-size: 14px; line-height: 22.4px;&quot;&gt;Selanjutnya adalah langkah untuk mengontrol Output PWM Arduino dengan Remote Infrared&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;1.) Pertama, pastikan untuk mencabut kabel USB Arduino bila ingin menyusun rangkaian.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;2.) Bila sudah, mari susunlah rangkaian seperti gambar dibawah ini (&lt;span style=&quot;color: red;&quot;&gt;Untuk Motor DC&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXtVNkTvb_DcO8Hm-veRhr48tdOkaaXW2EjX5MBbfkes1y9wiGp3V8a5VwPfO_6HC4oGFJBGC5ldpKPiTYIfDKf9ysH8abRIY-nSmCpO8BehEEUH2-tuFQYMs27KXRbUZyy4fYd0xh18w/s1600/Kontrol-Motor-DC-Remote-BoArduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXtVNkTvb_DcO8Hm-veRhr48tdOkaaXW2EjX5MBbfkes1y9wiGp3V8a5VwPfO_6HC4oGFJBGC5ldpKPiTYIfDKf9ysH8abRIY-nSmCpO8BehEEUH2-tuFQYMs27KXRbUZyy4fYd0xh18w/s640/Kontrol-Motor-DC-Remote-BoArduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;Atau menyusun rangkaian dibawah ini (Untuk LED)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZG6K0vpXnAyam9vtEH7xoWaJdaDRFPILpNEAa0QdzJiUolpIq6NQk5RUXloLpz0o2kmAcBBswcwGet4j8e69DNGMbfzvlp7i2miNM5GINF3qD3DfQuAmhFgmIO6DdtKJhm2haVijYIiI/s1600/Arduino-ir-remote-pwm.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZG6K0vpXnAyam9vtEH7xoWaJdaDRFPILpNEAa0QdzJiUolpIq6NQk5RUXloLpz0o2kmAcBBswcwGet4j8e69DNGMbfzvlp7i2miNM5GINF3qD3DfQuAmhFgmIO6DdtKJhm2haVijYIiI/s640/Arduino-ir-remote-pwm.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;3.) Setelah upload sesuaikan terlebih dahulu sketch dibawah ini, lalu upload pada Arduino&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;


&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: black;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;IRremote&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;RECV_PIN&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;pwmPin&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;IRrecv&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;RECV_PIN&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;decode_results&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;115200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;enableIRIn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pwmPin&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Awali dengan 0&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;decode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; 
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1331177687&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Tombol OK&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//100% Duty Cycle&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1331202167&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Tombol Bawah&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;// 0% Duty Cycke&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1331218487&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah 1331218487&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;+=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1331185847&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah 1331185847&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;-=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;analogWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;pwmPin&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Nilai PWM : &quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;nilaiPWM&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot; &amp;nbsp;| &amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;Hasil Tombol Remote : &quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;resume&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;NOTE : &lt;/span&gt;Ubah dan sesuaikan hasil tiap tombol dengan hasil Remote Infrared ente.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/tj90LZhHHnc&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/3833798983918433917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-output-pwm-arduino-dengan-ir.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/3833798983918433917'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/3833798983918433917'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-output-pwm-arduino-dengan-ir.html' title='Kontrol Output PWM Arduino dengan IR Receiver + Remote'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgerF-QczQEC8hVVZpUMquYWYoo_fw1n6H-IsOp3sjtotmuXvJrydryUI_YBRPguyUWdOatrb3gQ12Q2v0bzZ07qrx4EObATNDFUDGKMWOu8MWQusebKsNr91lOe2i2n0VIFhawjJWQpfs/s72-c/unduhan.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-3456609335567004641</id><published>2016-05-02T14:09:00.001+07:00</published><updated>2016-05-02T14:10:13.131+07:00</updated><title type='text'>Kontrol Relay dengan Arduino dan IR Receiver + Remote IR</title><content type='html'>Halo semua, selamat datang dan salam sejahtera untuk semua yang berkunjung disini.&lt;br /&gt;
Sekarang sudah bulan Mei 2016 dan hari ini adalah hari Senin, hari setelah MayDay.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4G3wEDg7l4H5z4NoxNgxg18NZvpXYhL7NLN3T4MweJJFIP2tTkBSDRUVjMG-IbEToG3-0vshEa_gYKf4iCxJs2gEYjf9xYvTqIBKh7j8BCU8oeWW_f386wX11sz85ZbSSrRy2vKTAWFQ/s1600/unduhan.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4G3wEDg7l4H5z4NoxNgxg18NZvpXYhL7NLN3T4MweJJFIP2tTkBSDRUVjMG-IbEToG3-0vshEa_gYKf4iCxJs2gEYjf9xYvTqIBKh7j8BCU8oeWW_f386wX11sz85ZbSSrRy2vKTAWFQ/s320/unduhan.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Apa kabar nih kalian semua? semoga kalian masih diberikan nikmat oleh Tuhan. Amiin. Berjumpa lagi, pada pagi hari ini setelah ane mengerjakan tugas dari dosen, ane menyempatkan kembali untuk membagikan pengalaman ane dengan menuliskan tentang apa yang sudah ane pelajari di blog ini, yang ane harapkan semoga apa yang ane tulis di blog ini menjadi bermanfaat untuk ane maupun orang lain.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Di artikel ini, kita akan mencoba &lt;span style=&quot;color: red;&quot;&gt;Interfacing Arduino dengan Infrared (IR) protokol&lt;/span&gt;. Seperti yang kita ketahui bahwa sebagian atau beberapa peralatan elektronik yang ada di rumah kita menggunakan Infrared, seperti contohnya Televisi, Air Conditioner, DVD Player, dan masih banyak lainnya. Dengan menggunakan &lt;span style=&quot;color: red;&quot;&gt;Infrared&lt;/span&gt;, dapat memudahkan pekerjaan manusia seperti halnya remote TV, kita dapat mengatur volume, mengganti channel, dll. Begitupun juga remot pada Air Conditioner dapat menaikkan dan menurunkan suhu, menyalakan atau mematikan AC.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSDw9GslQZstR5z213XJzcinPepV-FNJWZNDuNaulHXinj1mdz52m_e7DrVMQhv-N5Z2dezt7WPCZboIhJoPPY_J-6fxBLEDpQJGdpHw81j5rt76Ji8eRaI5zv7P5uyCKIBIETht4kTE/s1600/Cara-kerja-remote-infrared-www.boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSDw9GslQZstR5z213XJzcinPepV-FNJWZNDuNaulHXinj1mdz52m_e7DrVMQhv-N5Z2dezt7WPCZboIhJoPPY_J-6fxBLEDpQJGdpHw81j5rt76Ji8eRaI5zv7P5uyCKIBIETht4kTE/s640/Cara-kerja-remote-infrared-www.boarduino.web.id.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
Dalam komunikasi wireless seperti ini pastilah ada dua komponen yang utama, apakah itu? Yap, Tentu saja &lt;span style=&quot;color: red;&quot;&gt;Transmitter&lt;/span&gt; (sebagain pengirim) dan &lt;span style=&quot;color: red;&quot;&gt;Receiver &lt;/span&gt;(sebagai penerima). Sama halnya seperti kita mengirim pesan SMS, maka akan ada yang menerimanya. Kalau kalian mempunyai Remote Infrared (IR), bisa kalian liat pada bagian atas Remote terdapat LED berwarna bening, nah itulah yang disebut IR Transmitter atau biasa disebut juga &lt;span style=&quot;color: red;&quot;&gt;IR LED&lt;/span&gt;. Dan kalian bisa lihat juga pada TV misalnya, didalam bagian TV (biasanya dekat led indikator) Terdapat &lt;span style=&quot;color: red;&quot;&gt;IR Receiver&lt;/span&gt;, untuk menerima sinyal yang kita kirim dari Remot, dan men&lt;span style=&quot;color: red;&quot;&gt;decode&lt;/span&gt;nya.&lt;br /&gt;
&lt;br /&gt;
Pada kali ini, kita juga akan melakukan hal yang sama, bedanya adalah outputnya. Kalau biasanya kita outputnya adalah TV, DVD player, AC, dan lainnya, Sekarang kita gunakan Output dengan Relay yang tentunya dapat &lt;span style=&quot;color: red;&quot;&gt;mengontrol peralatan listrik&lt;/span&gt; dirumah kita menggunakan Remote. Hmm gimana gan? apakah menarik? Oke mari Langsung di simak dan praktikkan gan :)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Remote Universal (TV,DVD, dll)&lt;/li&gt;
&lt;li&gt;1x IR Receiver HX1838, Silahkan Cek &lt;a href=&quot;http://dalincom.ru/datasheet/AX-1838HS.pdf&quot; target=&quot;_blank&quot;&gt;DATASHEET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1x Relay Modul&lt;/li&gt;
&lt;li&gt;Library&amp;nbsp;&lt;a href=&quot;https://github.com/z3t0/Arduino-IRremote&quot; target=&quot;_blank&quot;&gt;IRremote&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1x Project board ( Breadboard )&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;1.) Pertama, Download Library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;IRremote&amp;nbsp;&lt;/span&gt;pada Software Arduino IDE ente. &lt;a href=&quot;https://github.com/z3t0/Arduino-IRremote&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;br /&gt;
2.) Setelah itu Susunlah rangkaian dibawah ini pada breadboard.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HASvnwhdEI45MWS48T-ycv5DrjkbThBxiDqqzh1wfxsZ_nESPkP8LSxHWAJ9yjWShXW4z-eEuAdIedH90R0DwyGtG9JKLKK2vZjQQtearv50oMlvOhhcd_y4x-AOtfxTjBnGsiM3jJU/s1600/IR_decoder_bb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HASvnwhdEI45MWS48T-ycv5DrjkbThBxiDqqzh1wfxsZ_nESPkP8LSxHWAJ9yjWShXW4z-eEuAdIedH90R0DwyGtG9JKLKK2vZjQQtearv50oMlvOhhcd_y4x-AOtfxTjBnGsiM3jJU/s640/IR_decoder_bb.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Pin 11 pada Arduino dihubungkan ke Kaki 1 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke Kaki 2 IR Receiver&lt;/li&gt;
&lt;li&gt;Pin 5v pada Arduino dihubungkan ke Kaki 3 IR Receiver&lt;/li&gt;
&lt;/ul&gt;
3.) Lalu tambahkan library IRremote. Klik &lt;span style=&quot;color: red;&quot;&gt;Sketch&lt;/span&gt; -&amp;gt; &lt;span style=&quot;color: red;&quot;&gt;Include Library&lt;/span&gt; -&amp;gt; &lt;span style=&quot;color: red;&quot;&gt;Add .ZIP Library...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYxwVyFviOUwjLIY1s1n8ITT5VxK20iYYnBl6KJinZU5C_UTD5_mWM8GQBPuLCww7AZQjq02nvIC34Pw8Y4pMxrNd42lc6tUz1plMI1ieCbUDnhyNy7me2ptxpT2UV-ZtpsCe_UNmuz-4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYxwVyFviOUwjLIY1s1n8ITT5VxK20iYYnBl6KJinZU5C_UTD5_mWM8GQBPuLCww7AZQjq02nvIC34Pw8Y4pMxrNd42lc6tUz1plMI1ieCbUDnhyNy7me2ptxpT2UV-ZtpsCe_UNmuz-4/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
4.) Setelah itu pilih file library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;.ZIP&lt;/span&gt;&amp;nbsp;yang ente download tadi, lalu klik &lt;span style=&quot;color: red;&quot;&gt;Open&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfeOsVLdfl7qdTLtpin8XNaTkHDviqzNSyuNVEnTtRYd6pHbzk1otCi9Ll6eWg5G7lk_-PZb2IBvWE3qblRdUaQMYKbr8UCh3OhwiUvlb-nEIJCuOyKLdI94_AxXbrfGI6MAVSL2mbaPI/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;207&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfeOsVLdfl7qdTLtpin8XNaTkHDviqzNSyuNVEnTtRYd6pHbzk1otCi9Ll6eWg5G7lk_-PZb2IBvWE3qblRdUaQMYKbr8UCh3OhwiUvlb-nEIJCuOyKLdI94_AxXbrfGI6MAVSL2mbaPI/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Done, Library berhasil ditambahkan ke Software Arduino IDE&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Sekarang&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&amp;nbsp;kita akan melakukan decode terhadap sinyal infrared yang dikirimkan oleh remote.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;1.) Buka sketch untuk decode, Klik &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;File&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt; -&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Examples&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt; -&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;IRremote&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt; -&amp;gt; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;IRrecvDemo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqMVXWFDOo_VA1z6BtPpM9Lm0hngQLxPG_3AgA9WIG1FFQMYHDx7pwpl9s2H3zvnl3B0pPWdD3m6Ejj50JxzGEUI9sbKpUzRURhQ5bsDvrQ3kt5g2Xpd2EMRAoBr5vV81Ygm4R7F1tWfM/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqMVXWFDOo_VA1z6BtPpM9Lm0hngQLxPG_3AgA9WIG1FFQMYHDx7pwpl9s2H3zvnl3B0pPWdD3m6Ejj50JxzGEUI9sbKpUzRURhQ5bsDvrQ3kt5g2Xpd2EMRAoBr5vV81Ygm4R7F1tWfM/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;2.) Setelah itu maka ente cari dan ente ubah sketch pada baris seperti dibawah ini&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HEX&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Hingga menjadi sama seperti dibawah ini, lalu upload ke Arduino&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;3.) Lalu buka serial monitor dan tekan Tombol di remote untuk dapatkan hasil dari tiap button&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnG8wXmoFdM4NY12pYmDYn4JA_ZqnSZ1eoMyA2u8F2O8Xaf1CKSrdhBAWtkqd2Iu6R4DWegqFmPAeZD9XoJFriRg1dp1Rr8h2PD59R6vb4RBDisUR88KwvwhxWrn_4ukCmfeyIeCfO13k/s1600/1234+atas+kanan+bawah+kiri+ok+bukan+hexa.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnG8wXmoFdM4NY12pYmDYn4JA_ZqnSZ1eoMyA2u8F2O8Xaf1CKSrdhBAWtkqd2Iu6R4DWegqFmPAeZD9XoJFriRg1dp1Rr8h2PD59R6vb4RBDisUR88KwvwhxWrn_4ukCmfeyIeCfO13k/s400/1234+atas+kanan+bawah+kiri+ok+bukan+hexa.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;4.) Setelah kita mendapatkan hasilnya, maka catat pada Notepad (Agar lebih memudahkan).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOlZUlhpzP_UwJ5SQpXgVnM_T9ojJO28IVqYdf07jjS39zs3m07T7siSzyDSM9oP42_-Kuz5Fm2ua_g5ARGuHBMjCc6eLSTeyyI0ExT9Z0Btix6uSBIIvFUGugVJk5lwRf-oPnp92fOmE/s1600/1234+atas+kanan+bawah+kiri+ok+bukan+hexa+notepad.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOlZUlhpzP_UwJ5SQpXgVnM_T9ojJO28IVqYdf07jjS39zs3m07T7siSzyDSM9oP42_-Kuz5Fm2ua_g5ARGuHBMjCc6eLSTeyyI0ExT9Z0Btix6uSBIIvFUGugVJk5lwRf-oPnp92fOmE/s400/1234+atas+kanan+bawah+kiri+ok+bukan+hexa+notepad.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22.4px;&quot;&gt;Oke, Selesai untuk decode tombol dari Remote Infrared.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;

&lt;span style=&quot;color: red;&quot;&gt;Nah, di langkah selanjutnya ini kita akan Mengontrol Relay dengan Remote Infrared.&lt;/span&gt;&lt;br /&gt;
1.) Pertama, pastikan untuk mencabut Kabel USB Arduino yang terhubung ke Komputer.&lt;br /&gt;
2.) Setelah itu kita tambahkan relay modul &lt;span style=&quot;color: red;&quot;&gt;tanpa mengubah&lt;/span&gt; rangkaian awal yang kita susun.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN3N7yWSyGZJVI0CDq5k9t4Bf4pPg1IyVqvDm3OARPbOvN0NtIcgtKW_zpF8qxzC0GiFMmst4tw9CLt5WQ4rXfgsfFDeHhqpVEIP5guxjpdb35RuMKX-rBIyzb4pSXKbLafot4HmRk8XA/s1600/Arduino-Relay.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN3N7yWSyGZJVI0CDq5k9t4Bf4pPg1IyVqvDm3OARPbOvN0NtIcgtKW_zpF8qxzC0GiFMmst4tw9CLt5WQ4rXfgsfFDeHhqpVEIP5guxjpdb35RuMKX-rBIyzb4pSXKbLafot4HmRk8XA/s640/Arduino-Relay.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel Arduino ke Relay Module&lt;b&gt; :&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 5V pada Arduino dihubungkan ke VCC Relay modul&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke GNDRelay modul&lt;/li&gt;
&lt;li&gt;Pin 2 pada Arduino dihubungkan ke IN1 Relay modul&lt;/li&gt;
&lt;li&gt;Pin 3 pada Arduino dihubungkan ke IN2 Relay modul&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Pin 4 pada Arduino dihubungkan ke IN3 Relay modul&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Pin 5 pada Arduino dihubungkan ke IN4 Relay modul&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
3.) Bila sudah menambahkan wiring dari relay modul, kita upload sketch dibawah ini.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;Hide&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #5e6d03;&quot;&gt;#include&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;IRremote&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;IRpin&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; 
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;R1&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;R2&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;R3&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;R4&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;IRrecv&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;IRpin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;b&gt;decode_results&lt;/b&gt; &lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;enableIRIn&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; 
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;decode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;Eksekusi&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;irrecv&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;resume&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;Eksekusi&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;switch&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;results&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3772784863&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah dan Sesuaikan &lt;/span&gt;3772784863 &lt;/pre&gt;
&lt;pre&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R1&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R1&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3772817503&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah dan Sesuaikan 3772817503&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R2&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3772801183&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah dan Sesuaikan 3772801183&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R3&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R3&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;3772780783&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Ubah dan Sesuaikan 3772780783&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R4&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;R4&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;:&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;NOTE : &lt;/span&gt;Ubah dan sesuaikan hasilnya dengan hasil yang sesuai tombol Remote Infrared anda.
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/_yRxsOEPQmk&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/3456609335567004641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-relay-dengan-arduino-dan-ir.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/3456609335567004641'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/3456609335567004641'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/05/kontrol-relay-dengan-arduino-dan-ir.html' title='Kontrol Relay dengan Arduino dan IR Receiver + Remote IR'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4G3wEDg7l4H5z4NoxNgxg18NZvpXYhL7NLN3T4MweJJFIP2tTkBSDRUVjMG-IbEToG3-0vshEa_gYKf4iCxJs2gEYjf9xYvTqIBKh7j8BCU8oeWW_f386wX11sz85ZbSSrRy2vKTAWFQ/s72-c/unduhan.jpg" height="72" width="72"/><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-782012814102750152</id><published>2016-04-20T13:19:00.000+07:00</published><updated>2016-04-20T13:19:57.294+07:00</updated><title type='text'>Monitoring Suhu dengan Arduino dan Processing</title><content type='html'>Halo bro, berjumpa kembali dengan ane di Minggu terakhir di bulan April Tahun 2016.&lt;br /&gt;
Semoga saja kita semua masih diberikan Nikmat sehat, Iman, dan lainnya oleh Tuhan, Amiin.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2SBhBnvsfuZNCXblxLgZwB-wJqRR3qDL00zA96JRmcC1qHR7aYUxygG52WHkqndn-O5IwbjlEq8oPFv_Xqy-S3BX5G8fUT6te5LaA3VAr4UIa1DvBReMYRe7LcpRFSaTnUcBSgMjb8U/s1600/monitoring-suhu-arduino-processing.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2SBhBnvsfuZNCXblxLgZwB-wJqRR3qDL00zA96JRmcC1qHR7aYUxygG52WHkqndn-O5IwbjlEq8oPFv_Xqy-S3BX5G8fUT6te5LaA3VAr4UIa1DvBReMYRe7LcpRFSaTnUcBSgMjb8U/s320/monitoring-suhu-arduino-processing.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada minggu ketiga di Bulan April ini kebetulan ane masih menghadapi UTS di kampus tempat ane menuntut ilmu, dan sudah memasuki hari ketiga nih gan. Karena sekarang ane masih standby dirumah sambil menunggu waktu berangkat ke kampus, ane mencoba sempatkan dulu posting di blog ini. Doakan saja ane supaya diberi kemudahan ya gan :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
Oh iya, ane juga mau kasih tau nih agan dan sista yang berkunjung disini, Sebelumnya ane minta maaf untuk kalian yang telah meninggalkan komentar, mengirim pesan lewat email ataupun chat di whatsapp dengan ane tapi mungkin ada yang komentarnya belum muncul, emailnya belum dibalas, atau chat di whatsapp belum di balas. Sekali lagi ane ucapin mohon maaf, karena ane juga manusia biasa dan kebetulan di bulan april dan mungkin sampai bulan mei nanti ane masih ada kesibukan di dunia nyata. Karena ane dapat tugas dari Dosen ane di kampus. Dan kebetulan ane projectnya dengan Arduino juga, mungkin juga nanti ane share di blog ini :)&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Okelah gan, sudah dulu ceritanya... Mari langsung di simak, praktikkan dan pahami saja.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x IC LM35 (Sensor Suhu)&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Project board (Breadboard)&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;background-color: white; color: #444444; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #444444; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot; /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;1.)&amp;nbsp; Susunlah rangkaian berikut ini pada breadboard.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkJl6GqxpTRbqNaK4uvyLQ_jTTqieRprewulDFCHrwm3MD1vv6ZI5K4nTJbyrCJZPOZSa6dcbF4JTs2n9EC1l_MI0_hLsmoHpM8obrYKJ9Ycif0HZ7ftLR_sm9z0-r-9aW5wJA6e5LacE/s1600/arduino-lm35-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkJl6GqxpTRbqNaK4uvyLQ_jTTqieRprewulDFCHrwm3MD1vv6ZI5K4nTJbyrCJZPOZSa6dcbF4JTs2n9EC1l_MI0_hLsmoHpM8obrYKJ9Ycif0HZ7ftLR_sm9z0-r-9aW5wJA6e5LacE/s400/arduino-lm35-boarduino.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Hubungkan Pin 5V pada Arduino ke kaki Nomor 1 LM35 (VCC)&lt;/li&gt;
&lt;li&gt;Hubungkan Pin A0 pada Arduino ke kaki Nomor 2 LM35 (OUT)&lt;/li&gt;
&lt;li&gt;Hubungkan Pin A0 pada Arduino ke kaki Nomor 3 LM35 (GND)&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot; style=&quot;text-decoration: none;&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;( If Needed )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;4.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah terinstall, jalankan program Arduino-nya.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;7.) Lalu masukan Sketch dibawah ini, dan klik upload.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #95a5a6;&quot;&gt;/*Menampilkan suhu LM35 pada Processing&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt; * 14 Januari 2016&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt; * &lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: #95a5a6;&quot;&gt;http://www.boarduino.web.id&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;color: #95a5a6;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #95a5a6;&quot;&gt;*/&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Kecepatan komunikasi serial&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Tampung sementara hasil A0 di variable int LM35&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;LM35&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;analogRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;A0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//hasil LM35*0.48828125 (Untuk menghasilkan °C)&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;suhuCelcius&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;round&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;LM35&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0.48828125&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//hasil Celcius *9.0/5.0 + 32.0 ((Untuk menghasilkan °F)&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;suhuFahrenheit&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;round&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;suhuCelcius&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9.0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;5.0&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;32.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;suhuCelcius&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Print hasil suhu Celcius&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;C&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;suhuFahrenheit&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Print hasil suhu Fahrenheit&lt;/span&gt;
 &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;&quot;F&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;//Delay setengah detik&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
8.) Download software Processing IDE di&amp;nbsp;&lt;a href=&quot;https://processing.org/download/?processing&quot; target=&quot;_blank&quot;&gt;Processing.org&lt;/a&gt;&amp;nbsp;(If Needed)&lt;br /&gt;
9.) Setelah itu masukkan coding dibawah ini pada Software Processing IDE.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT BRAY untuk melihat coding&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;Hide&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT BRAY&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT BRAY&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #33997e;&quot;&gt;import&lt;/span&gt; processing.serial.*;  &lt;span style=&quot;color: #666666;&quot;&gt;//Import library serial&lt;/span&gt;
Serial&amp;nbsp;port;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Buat serial objek bernama &quot;port&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e2661a;&quot;&gt;String&lt;/span&gt; suhu_celcius = &lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;&quot;&lt;/span&gt;;    &lt;span style=&quot;color: #666666;&quot;&gt;//Variable untuk suhu Celcius&lt;/span&gt;
&lt;span style=&quot;color: #e2661a;&quot;&gt;String&lt;/span&gt; suhu_fahrenheit = &lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;&quot;&lt;/span&gt;; &lt;span style=&quot;color: #666666;&quot;&gt;//Variable untuk suhu Fahrenheit&lt;/span&gt;
&lt;span style=&quot;color: #e2661a;&quot;&gt;String&lt;/span&gt; data = &lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;&quot;&lt;/span&gt;;
&lt;span style=&quot;color: #e2661a;&quot;&gt;int&lt;/span&gt; index = 0;
&lt;span style=&quot;color: #e2661a;&quot;&gt;PFont&lt;/span&gt; font;

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;size&lt;/span&gt;(400,400); &lt;span style=&quot;color: #666666;&quot;&gt;//Buat objek 400x400 pixel&lt;/span&gt;
&amp;nbsp;&amp;nbsp;port&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #33997e;&quot;&gt;new&lt;/span&gt; Serial(&lt;span style=&quot;color: #33997e;&quot;&gt;this&lt;/span&gt;, &lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;COM3&quot;&lt;/span&gt;, 9600); &lt;span style=&quot;color: #666666;&quot;&gt;//Sesuaikan &quot;COM3&quot;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;port.bufferUntil(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;.&#39;&lt;/span&gt;); 
&amp;nbsp;&amp;nbsp;font&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;loadFont&lt;/span&gt;(&lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;AgencyFB-Bold-200.vlw&quot;&lt;/span&gt;); &lt;span style=&quot;color: #666666;&quot;&gt;//Load font&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;textFont&lt;/span&gt;(font, 200); &lt;span style=&quot;color: #666666;&quot;&gt;//Jadikan size font 200&lt;/span&gt;
}

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;draw&lt;/b&gt;&lt;/span&gt;()
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;background&lt;/span&gt;(0,0,0); &lt;span style=&quot;color: #666666;&quot;&gt;//Jadikan background hitam&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;fill&lt;/span&gt;(46, 209, 2);  &lt;span style=&quot;color: #666666;&quot;&gt;//Warna text suhu celcius dalam (R,G,B)&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;text&lt;/span&gt;(suhu_celcius, 70, 175); &lt;span style=&quot;color: #666666;&quot;&gt;//Koordinat text suhu celcius&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;fill&lt;/span&gt;(0, 102, 153); &lt;span style=&quot;color: #666666;&quot;&gt;//Warna text suhu fahrenheit dalam (R,G,B)&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;text&lt;/span&gt;(suhu_fahrenheit, 70, 370); &lt;span style=&quot;color: #666666;&quot;&gt;//Koordinat text suhu fahrenheit&lt;/span&gt;
}
&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; serialEvent (Serial port)
{
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Ambil seluruh string dari serial&lt;/span&gt;
&amp;nbsp;&amp;nbsp;data&amp;nbsp;=&amp;nbsp;port.readStringUntil(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;.&#39;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Hapus periode akhir dari data string&lt;/span&gt;
&amp;nbsp;&amp;nbsp;data&amp;nbsp;=&amp;nbsp;data.&lt;span style=&quot;color: #006699;&quot;&gt;substring&lt;/span&gt;(0, data.&lt;span style=&quot;color: #006699;&quot;&gt;length&lt;/span&gt;() - 1);
&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Mencari koma antara celcius dan fahrenheit&lt;/span&gt;
&amp;nbsp;&amp;nbsp;index&amp;nbsp;=&amp;nbsp;data.&lt;span style=&quot;color: #006699;&quot;&gt;indexOf&lt;/span&gt;(&lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;,&quot;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Mendapatkan suhu celcius&lt;/span&gt;
&amp;nbsp;&amp;nbsp;suhu_celcius&amp;nbsp;=&amp;nbsp;data.&lt;span style=&quot;color: #006699;&quot;&gt;substring&lt;/span&gt;(0, index);
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Mendapatkan suhu fahrenheit&lt;/span&gt;
&amp;nbsp;&amp;nbsp;suhu_fahrenheit&amp;nbsp;=&amp;nbsp;data.&lt;span style=&quot;color: #006699;&quot;&gt;substring&lt;/span&gt;(index+1, data.&lt;span style=&quot;color: #006699;&quot;&gt;length&lt;/span&gt;());
}
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
10.) Lalu download font &lt;span style=&quot;color: red;&quot;&gt;AgencyFB-Bold-200.vlw&lt;/span&gt; dan masukkan dalam folder bernama &quot;&lt;span style=&quot;color: red;&quot;&gt;data&lt;/span&gt;&quot;&lt;br /&gt;
11.) Atau bila masih bingung, lanjut saja download File nya dengan cara&amp;nbsp;&lt;a href=&quot;https://drive.google.com/file/d/0B2ZJlFy76RFsX2JrSG9CUTh5bGc/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;KLIK DISINI&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;12.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah selesai, jalankan sotware Processing IDE-nya dan jalankan.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/782012814102750152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/04/monitoring-suhu-dengan-arduino-dan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/782012814102750152'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/782012814102750152'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/04/monitoring-suhu-dengan-arduino-dan.html' title='Monitoring Suhu dengan Arduino dan Processing'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2SBhBnvsfuZNCXblxLgZwB-wJqRR3qDL00zA96JRmcC1qHR7aYUxygG52WHkqndn-O5IwbjlEq8oPFv_Xqy-S3BX5G8fUT6te5LaA3VAr4UIa1DvBReMYRe7LcpRFSaTnUcBSgMjb8U/s72-c/monitoring-suhu-arduino-processing.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-625454352522464039</id><published>2016-04-05T12:22:00.000+07:00</published><updated>2016-04-05T12:22:49.260+07:00</updated><title type='text'>Komunikasi Dua Arah Antara Arduino dan Processing</title><content type='html'>Halo bro, selamat datang kembali. Apa kabar kalian semua? semoga maih diberikan kesehatan.&lt;br /&gt;
Sekarang sudah di minggu pertama bulan april, wow sepertinya waktu cepat sekali berlalunya.&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40MbwGDi8t4-lVnojQC7uYqRPeMiqYpZ4gwKWv8O2qqDnfk5pa2VpHdaCIUOVmk31ZYxxmFH2chfLuiy3uLeim9xfmSOenOb3jZBQtJFSjQND21ZqZNPF_0zAn8aAkbAr_1wTu9tXKV4/s1600/komunikasi-arduino-processing.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40MbwGDi8t4-lVnojQC7uYqRPeMiqYpZ4gwKWv8O2qqDnfk5pa2VpHdaCIUOVmk31ZYxxmFH2chfLuiy3uLeim9xfmSOenOb3jZBQtJFSjQND21ZqZNPF_0zAn8aAkbAr_1wTu9tXKV4/s320/komunikasi-arduino-processing.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;Semoga saja hari-hari berikutnya dan hari hari yang sudah kita lewati menjadi bermanfaat dan semoga saja juga apa yang sudah kita lakukan semuanya menjadi tidak sia-sia untuk diri kita sendiri maupun untuk orang yang berada di sekitar kita.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ya intinya, kita berharap semoga yang terbaik deh buat kita semua, Amiin.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada hari ini, kebetulan ane masih berada dirumah dan sambil menunggu waktu berangkat ke kampus maka ane sisihkan dulu waktu beberapa jam untuk menulis artikel di blog ini gan :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pada kali ini kita akan bermain Arduino dan processing, sama seperti artikel sebelumnya yang ane publish di awal bulan april ini, berjudul &quot;&lt;a href=&quot;http://www.boarduino.web.id/2016/04/basic-komunikasi-serial-arduino-dengan.html&quot; target=&quot;_blank&quot;&gt;Basic Komunikasi Serial Arduino dan Processing&lt;/a&gt;&quot;. Bila pada artikel tersebut kita hanya berkomunikasi &lt;span style=&quot;color: red;&quot;&gt;satu arah&lt;/span&gt; yaitu Arduino sebagai &lt;span style=&quot;color: red;&quot;&gt;sender &lt;/span&gt;(pengirim) dan Processing IDE sebagai &lt;span style=&quot;color: red;&quot;&gt;receiver &lt;/span&gt;(penerima), Nah maka dikesempatan kali ini kita akan mencoba komunikasi &lt;span style=&quot;color: red;&quot;&gt;dua arah&lt;/span&gt; (Two-way communication) antara Arduino dan Processing seperti layaknya kita menigirim atau menerima &lt;span style=&quot;color: red;&quot;&gt;SMS &lt;/span&gt;(short message service) dari orang lain.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;1x Arduino / Genuino Compatible&amp;nbsp;&lt;/li&gt;
&lt;li&gt;1x Tactile switch (button)&lt;/li&gt;
&lt;li&gt;1x LED (Warna bebas)&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Project board (Breadboard)&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;background-color: white; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot; /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;1.)&amp;nbsp; Susunlah rangkaian berikut ini pada breadboard.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbHsDWpGGIE2_kZWJ6BY74wiP3HrA3ZALTyI5VcOpsUwqz8R5wtEyrsR4KAdt500n2aHt_1SJAn5wZHh9FSsULZm_BTyzNt1vS98rKcocdrKWH3b2bzS3xZ0Iy3RAtHK8qxsBjiY7RT1M/s1600/KomunikasiDuaArah-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbHsDWpGGIE2_kZWJ6BY74wiP3HrA3ZALTyI5VcOpsUwqz8R5wtEyrsR4KAdt500n2aHt_1SJAn5wZHh9FSsULZm_BTyzNt1vS98rKcocdrKWH3b2bzS3xZ0Iy3RAtHK8qxsBjiY7RT1M/s400/KomunikasiDuaArah-boarduino.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;droid sans&#39;, arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Hubungkan Pin 12 pada Salah satu kaki tacticle switch (Button)&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 8 pada Anoda LED.&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot; style=&quot;text-decoration: none;&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;( If Needed )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;4.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah terinstall, jalankan program Arduino-nya.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;7.) Lalu masukan Sketch dibawah ini, dan klik upload.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;Hide&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;led&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;led&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;OUTPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;pinMode&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;INPUT&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;available&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusLED&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusLED&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;1&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;led&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusLED&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;digitalWrite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;led&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;LOW&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;digitalRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;statusButton&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #00979c;&quot;&gt;HIGH&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt; &amp;nbsp;&amp;nbsp;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #5e6d03;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt;Serial&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
8.) Download software Processing IDE di&amp;nbsp;&lt;a href=&quot;https://processing.org/download/?processing&quot; target=&quot;_blank&quot;&gt;Processing.org&lt;/a&gt;&amp;nbsp;(If Needed)&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;9.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah selesai, jalankan sotware Processing IDE-nya dan masukan coding dibawah ini&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT BRAY untuk melihat coding&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;Hide&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT BRAY&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT BRAY&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #33997e;&quot;&gt;import&lt;/span&gt; processing.serial.*; &lt;span style=&quot;color: #666666;&quot;&gt;//Import serial library &lt;/span&gt;
Serial&amp;nbsp;port;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Buat serial object bernama &quot;port&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e2661a;&quot;&gt;float&lt;/span&gt; kecerahan = 0; &lt;span style=&quot;color: #666666;&quot;&gt;//Variable untuk menampung hasil serial&lt;/span&gt;

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;size&lt;/span&gt;(300,300); &lt;span style=&quot;color: #666666;&quot;&gt;//Buat objek 300x300 pixel&lt;/span&gt;
&amp;nbsp;&amp;nbsp;port&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #33997e;&quot;&gt;new&lt;/span&gt; Serial(&lt;span style=&quot;color: #33997e;&quot;&gt;this&lt;/span&gt;, &lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;COM3&quot;&lt;/span&gt;, 9600); &lt;span style=&quot;color: #666666;&quot;&gt;//Sesuaikan &quot;COM3&quot;&lt;/span&gt;
&amp;nbsp;&amp;nbsp;port.bufferUntil(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;\n&#39;&lt;/span&gt;);
}

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;draw&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;background&lt;/span&gt;(kecerahan,0,0); &lt;span style=&quot;color: #666666;&quot;&gt;//Merah,Hijau,Biru (R,G,B)&lt;/span&gt;
&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Jika mouse di klik kiri, maka kirim data &quot;1&quot; ke Arduino&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #669900;&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: #d94a7a;&quot;&gt;mousePressed&lt;/span&gt; &amp;amp;&amp;amp; (&lt;span style=&quot;color: #d94a7a;&quot;&gt;mouseButton&lt;/span&gt; == &lt;span style=&quot;color: #718a62;&quot;&gt;LEFT&lt;/span&gt;)){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;port.write(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;1&#39;&lt;/span&gt;);
}
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #666666;&quot;&gt;//Jika mouse di klik kanan, maka kirim daya &quot;0&quot; ke Arduino&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #669900;&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #d94a7a;&quot;&gt;mousePressed&lt;/span&gt; &amp;amp;&amp;amp; (&lt;span style=&quot;color: #d94a7a;&quot;&gt;mouseButton&lt;/span&gt; == &lt;span style=&quot;color: #718a62;&quot;&gt;RIGHT&lt;/span&gt;)){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;port.write(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;0&#39;&lt;/span&gt;);
&amp;nbsp;&amp;nbsp;}
}

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; serialEvent (Serial port) {
&amp;nbsp;kecerahan&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;float&lt;/span&gt;(port.readStringUntil(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;\n&#39;&lt;/span&gt;)); &lt;span style=&quot;color: #666666;&quot;&gt;//Baca hasil serial&lt;/span&gt;
}
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
10.) Setelah itu klik RUN pada software Processing, dan selamat bermain :)&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/_x6_0JcJIYY&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, Selamat mencoba, Semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/625454352522464039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/04/komunikasi-dua-arah-antara-arduino-dan.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/625454352522464039'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/625454352522464039'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/04/komunikasi-dua-arah-antara-arduino-dan.html' title='Komunikasi Dua Arah Antara Arduino dan Processing'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh40MbwGDi8t4-lVnojQC7uYqRPeMiqYpZ4gwKWv8O2qqDnfk5pa2VpHdaCIUOVmk31ZYxxmFH2chfLuiy3uLeim9xfmSOenOb3jZBQtJFSjQND21ZqZNPF_0zAn8aAkbAr_1wTu9tXKV4/s72-c/komunikasi-arduino-processing.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6714835732812050153</id><published>2016-04-05T11:11:00.000+07:00</published><updated>2016-04-05T11:11:07.555+07:00</updated><title type='text'>Akses Kontrol dengan Keypad Password 4x4 di Arduino</title><content type='html'>Okebro dan juga Okesis, welcome back with me di kesempatan yang semoga berbahagia ini :)&lt;br /&gt;
Hari demi hari berlalu, dan ternyata sekarang sudah di minggu terakhir Bulan Maret Tahun 2016.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJWDCVwIzbInHkFH-anOFsLqw69euf8SN_FDq8YjPvMMtBm4Mu9DKatpAD6BKkH2b4SkKLGM2v5FogTMHnUD43itRM8ici35VlEWS1e7LFfZcVXSLs4PPWNlPoPIgglv9A1t2OlwrLJw/s1600/keypad-password-Arduino-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJWDCVwIzbInHkFH-anOFsLqw69euf8SN_FDq8YjPvMMtBm4Mu9DKatpAD6BKkH2b4SkKLGM2v5FogTMHnUD43itRM8ici35VlEWS1e7LFfZcVXSLs4PPWNlPoPIgglv9A1t2OlwrLJw/s320/keypad-password-Arduino-boarduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Semoga saja hari-hari yang sudah terlewati dan juga hari yang saat ini kita jalani sekarang, selalu menjadi penuh berkah dan semoga bermanfaat untuk diri kita maupun orang lain yang ada disekitar kita, Amiin.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hari ini, kita akan mencoba mensimulasikan &lt;span style=&quot;color: red;&quot;&gt;Akses Kontrol Arduino dengan Password&lt;/span&gt;. Dan untuk meng-inputkan password alias kata sandi, kita akan menggunakan Keypad membrane. (Saya menggunakan 4x4).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hasil dari keypad yang di tekan, nantinya akan dikirimkan ke Arduino untuk di segera proses.&lt;br /&gt;
Apabila hasil yang kita inputkan pada keypad &lt;span style=&quot;color: red;&quot;&gt;benar&lt;/span&gt;, maka akan menggerakan &lt;span style=&quot;color: red;&quot;&gt;motor servo&lt;/span&gt; dan menyalakan &lt;span style=&quot;color: red;&quot;&gt;Led indikator hijau&lt;/span&gt; selama yang kita mau, dapat disesuaikan di sketch. Sebaliknya, apabila hasil yang kita inputkan pada keypad &lt;span style=&quot;color: red;&quot;&gt;tidak sesuai&lt;/span&gt; dengan password yang telah kita buat pada sketch, maka servo akan tetap diam dan &lt;span style=&quot;color: red;&quot;&gt;Led indikator merah&lt;/span&gt; menyala (Tetap Tertutup).&lt;br /&gt;
&lt;br /&gt;
Pada pengaplikasian yang sesungguhnya, anda dapat &lt;span style=&quot;color: red;&quot;&gt;mengganti outputnya&lt;/span&gt; menjadi relay modul untuk men-trigger &lt;span style=&quot;color: red;&quot;&gt;Electric door lock&lt;/span&gt; yang nantinya untuk membuka dan mengunci pintu anda.&lt;br /&gt;
Okelah kalau begitu, mari langsung di simak dan praktekkan saja tutorial dibawah ini.&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Keypad 4x4&amp;nbsp;&lt;/li&gt;
&lt;li&gt;1x Motor Servo &lt;/li&gt;
&lt;li&gt;2x LED Merah dan Hijau&lt;/li&gt;
&lt;li&gt;2x Resistor 220 Ohm&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board) &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivyWzXRkWyxLY0zt2oF8PtAgXEJUQ50EspGJuvxOcPcZtdnCxMBSwWRX586Qhujod0Aauqg2rTfTB9Q9ZtNSOgFkpRACpExmQ5mpsrADNL65BG8BFX9PlT5MAe6o1phHYowAQBvKITgf8/s1600/kepass4x4-boarduino.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivyWzXRkWyxLY0zt2oF8PtAgXEJUQ50EspGJuvxOcPcZtdnCxMBSwWRX586Qhujod0Aauqg2rTfTB9Q9ZtNSOgFkpRACpExmQ5mpsrADNL65BG8BFX9PlT5MAe6o1phHYowAQBvKITgf8/s640/kepass4x4-boarduino.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Hubungkan Pin 9 pada Arduino ke Pin 1 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 8 pada Arduino ke Pin 2 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 7 pada Arduino ke Pin 3 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 6 pada Arduino ke Pin 4 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 5 pada Arduino ke Pin 5 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 4 pada Arduino ke Pin 6 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 3 pada Arduino ke Pin 7 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 2 pada Arduino ke Pin 8 pada Keypad 4x4&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 13 pada Arduino ke Anoda LED Merah&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 12 pada Arduino ke Anoda LED Hijau&lt;/li&gt;
&lt;li&gt;Hubungkan Pin 11 pada Arduino ke Kabel Kuning Servo &lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.)&amp;nbsp;Setelah itu, jalankan program Arduino-nya.&lt;br /&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &amp;lt;Password.h&amp;gt;&lt;br /&gt;
#include &amp;lt;Keypad.h&amp;gt;&lt;br /&gt;
#include &amp;lt;Servo.h&amp;gt;&lt;br /&gt;
Servo myservo;&lt;br /&gt;
int LEDmerah = 13;&lt;br /&gt;
int LEDhijau = 12;&lt;br /&gt;
Password password = Password( &quot;1436&quot; ); //Ubah password&lt;br /&gt;
&lt;br /&gt;
const byte baris = 4; //Baris&lt;br /&gt;
const byte kolom = 4; //Kolom&lt;br /&gt;
&lt;br /&gt;
char keys[baris][kolom] = {&lt;br /&gt;
{&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;A&#39;},&lt;br /&gt;
{&#39;4&#39;,&#39;5&#39;,&#39;6&#39;,&#39;B&#39;},&lt;br /&gt;
{&#39;7&#39;,&#39;8&#39;,&#39;9&#39;,&#39;C&#39;},&lt;br /&gt;
{&#39;*&#39;,&#39;0&#39;,&#39;#&#39;,&#39;D&#39;}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
byte barisPin[baris] = {9,8,7,6};&lt;br /&gt;
byte kolomPin[kolom]= {5,4,3,2};&lt;br /&gt;
&lt;br /&gt;
// Buat objek keypad&lt;br /&gt;
Keypad keypad = Keypad( makeKeymap(keys), barisPin, kolomPin, baris, kolom );&lt;br /&gt;
&lt;br /&gt;
void setup(){&lt;br /&gt;
&amp;nbsp; Serial.begin(9600);&lt;br /&gt;
&amp;nbsp; delay(200); &lt;br /&gt;
&amp;nbsp; pinMode(LEDhijau, OUTPUT);&amp;nbsp; //Indikator Terbuka&lt;br /&gt;
&amp;nbsp; pinMode(LEDmerah, OUTPUT);&amp;nbsp; //Indikator Terkunci&lt;br /&gt;
&amp;nbsp; myservo.attach(11); //Servo pada pin 11&lt;br /&gt;
&amp;nbsp; keypad.addEventListener(keypadEvent);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
&amp;nbsp; keypad.getKey();&lt;br /&gt;
&amp;nbsp; myservo.write(0);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; void keypadEvent(KeypadEvent eKey){&lt;br /&gt;
&amp;nbsp; switch (keypad.getState()){&lt;br /&gt;
&amp;nbsp; case PRESSED:&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; Serial.print(&quot;Enter: &quot;);&lt;br /&gt;
&amp;nbsp; Serial.println(eKey);&lt;br /&gt;
&amp;nbsp; delay(10);&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; Serial.write(254);&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; switch (eKey){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; case &#39;A&#39;: Login(); delay(1); break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; case &#39;B&#39;: password.reset(); delay(1); break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default: password.append(eKey); delay(1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void Login(){ &lt;br /&gt;
if (password.evaluate()){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot;Akses Diterima!&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.write(254);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myservo.write(180);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; digitalWrite(LEDhijau, HIGH);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(5000);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myservo.write(10);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; digitalWrite(LEDhijau, LOW);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(500);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
else{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(&quot;Akses Ditolak!&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.write(254);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(10);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; myservo.write(0);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; digitalWrite(LEDmerah, HIGH);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(500);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; digitalWrite(LEDmerah, LOW);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;NOTE :&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Apabila terjadi error saat sketch di compile, pastikan pada Arduino IDE anda sudah ditambahkan Library &lt;span style=&quot;color: red;&quot;&gt;Password &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;Keypad&lt;/span&gt;. Bila belum, silahkan &lt;a href=&quot;http://playground.arduino.cc/uploads/Code/Password.zip&quot; target=&quot;&quot;&gt;KLIK INI&lt;/a&gt; dan &lt;a href=&quot;http://playground.arduino.cc/uploads/Code/keypad.zip&quot;&gt;KLIK INI&lt;/a&gt; untuk download.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/O4rjAopSzLM&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/center&gt;
&lt;center&gt;
&lt;/center&gt;
&lt;center&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/center&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6714835732812050153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/03/akses-kontrol-dengan-keypad-password.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6714835732812050153'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6714835732812050153'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/03/akses-kontrol-dengan-keypad-password.html' title='Akses Kontrol dengan Keypad Password 4x4 di Arduino'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGJWDCVwIzbInHkFH-anOFsLqw69euf8SN_FDq8YjPvMMtBm4Mu9DKatpAD6BKkH2b4SkKLGM2v5FogTMHnUD43itRM8ici35VlEWS1e7LFfZcVXSLs4PPWNlPoPIgglv9A1t2OlwrLJw/s72-c/keypad-password-Arduino-boarduino.png" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-438032853918835525</id><published>2016-04-01T00:35:00.003+07:00</published><updated>2016-04-01T00:36:54.080+07:00</updated><title type='text'>Basic Komunikasi Serial Arduino dengan Processing</title><content type='html'>Halo selamat datang agan dan sista yang sedang berkunjung atau mungkin tersesat ke blog ini.&lt;br /&gt;
Karena saat saya menulis ini malam hari, maka selamat malam saya ucapkan untuk kalian.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqVdg4AFQ5qFFzzxJUDFc_fJbS5zMiWTpGm9SSOqYhcrs10gu4zzJeecKV2ngHuS8LArnkpXn7FY_IH1i138cu8UNVZUAHIPR8OzZSxzCZZEwt58TGaI_nhrrUnRrIK-89raKZly5tLY/s1600/basic-arduino-processing-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqVdg4AFQ5qFFzzxJUDFc_fJbS5zMiWTpGm9SSOqYhcrs10gu4zzJeecKV2ngHuS8LArnkpXn7FY_IH1i138cu8UNVZUAHIPR8OzZSxzCZZEwt58TGaI_nhrrUnRrIK-89raKZly5tLY/s320/basic-arduino-processing-boarduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Yap dikesempatan hari ini, kita akan mencoba melakukan &lt;span style=&quot;color: red;&quot;&gt;Dasar komunikasi serial antara Arduino dan Processing IDE&lt;/span&gt;. Dan Sebelum kita beranjak lebih jauh dan dalam nih gan, alangkah baiknya kalau kita berkenalan terlebih dahulu dengan Processing IDE. Mungkin diantara kalian sudah ada yang kenal atau sudah paham tentang apa itu Processing dan lain lain,&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Akan tetapi pasti ada saja yang belum paham, belum pernah berkenalan atau mungkin belum pernah mendengar &quot;&lt;span style=&quot;color: red;&quot;&gt;Apa itu Processing?&lt;/span&gt;&quot;. Benar tidak gan? kalau benar mari kita berkenal dulu.&lt;/div&gt;
&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Processing adalah&lt;/span&gt;&amp;nbsp;bahasa pemrograman dan lingkungan pemograman (Development Enviroment) open source untuk memprogram gambar, animasi, dan interaksi. Digunakan oleh pelajar, seniman, desainer, peneliti, hobbyist untuk belajar, membuat prototipe, dan produksi. Processing digunakan untuk mengajarkan dasar-dasar pemograman komputer dalam konteks rupa dan berfungsi sebagai buku sketsa perangkat lunak (software) dan tool produksi professional.&amp;nbsp;Processing bebas di &lt;a href=&quot;https://processing.org/download/&quot; target=&quot;_blank&quot;&gt;download &lt;/a&gt;dan tersedia untuk Linux, Mac OS dan Windows.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Untuk pengenalan lebih lanjutnya, anda bisa mencari referensi di search engine atau &lt;a href=&quot;http://blogs.itb.ac.id/wnugroho/processing/&quot; target=&quot;_blank&quot;&gt;Klik Disini&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dan pada artikel kali ini, kita akan mencoba Dasar dari Komunikasi Serial antara Arduino dan Processing, yang mana kita menggunakan 1 buah potensiometer untuk mengatur nilai dari warna Red, Green atau Blue yang ada pada canvas berukuran &lt;span style=&quot;color: red;&quot;&gt;500x500px&lt;/span&gt; yang hampir mirip juga dengan &lt;span style=&quot;color: red;&quot;&gt;LED RGB&lt;/span&gt;. Anda juga dapat mencobanya juga menjadi seperti &lt;span style=&quot;color: red;&quot;&gt;color mixing&lt;/span&gt;, dengan menambahkan 2 buah potensio lagi untuk mengontrol dan menggabungkan warnanya.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Okelah gan, karena saat saya menulis ini sudah larut malam, mari langsung ke TKP!&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Potensiometer&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Project board (Breadboard)&lt;/li&gt;
&lt;/ul&gt;
&lt;br style=&quot;background-color: white; color: #444444; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #444444; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot; /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;1.)&amp;nbsp; Susunlah rangkaian berikut ini pada breadboard.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #444444; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh84nYOcUxJmVS2dZxCy_l_lgk89_iyrq2Q1CO7bE-8xi_dquMb0rcAdrFauatazzCn320Icuz93j0xqzZdIBQI7rQLvsqPvfZyPUcPG7wQx_D-4R3pMOGmwDWGwQ885mIKawqVTQGModU/s1600/ArduinoPotensio-MATLAB.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #2560aa; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh84nYOcUxJmVS2dZxCy_l_lgk89_iyrq2Q1CO7bE-8xi_dquMb0rcAdrFauatazzCn320Icuz93j0xqzZdIBQI7rQLvsqPvfZyPUcPG7wQx_D-4R3pMOGmwDWGwQ885mIKawqVTQGModU/s400/ArduinoPotensio-MATLAB.png&quot; style=&quot;max-width: 100%; width: auto;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; font-family: &#39;Droid Sans&#39;, Arial, sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;
&lt;li&gt;Hubungkan Pin 5V Arduino pada salah satu kaki pinggir Potensio&lt;/li&gt;
&lt;li&gt;Hubungkan Pin GND Arduino pada salah satu kaki pinggir lain Potensio&lt;/li&gt;
&lt;li&gt;Hubungkan Pin A0 Arduino dengan kaki tengan Potensio&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot; style=&quot;text-decoration: none;&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;( If Needed )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;4.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah terinstall, jalankan program Arduino-nya.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;&amp;nbsp;Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;7.) Lalu masukan Sketch dibawah ini, dan klik upload.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;-webkit-user-select: text; color: #333333; font-size: 14px; line-height: 22.4px;&quot;&gt;&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;setup&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;9600&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Kecepatan komunikasi serial&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;
 &amp;nbsp;
&lt;span style=&quot;color: #00979c;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #5e6d03;&quot;&gt;loop&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #00979c;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;analogRead&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;A0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt; &lt;span style=&quot;color: #434f54;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d35400;&quot;&gt;map&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;1023&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;Serial&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #434f54;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d35400;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;hasilPotensio&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #434f54;&quot;&gt;//Print hasil potensio&lt;/span&gt;
 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #d35400;&quot;&gt;delay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
8.) Download software Processing IDE di &lt;a href=&quot;https://processing.org/download/?processing&quot; target=&quot;_blank&quot;&gt;Processing.org&lt;/a&gt;&amp;nbsp;(If Needed)&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;9.)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20.3px;&quot;&gt;Setelah selesai, jalankan sotware Processing IDE-nya dan masukan coding dibawah ini&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT BRAY untuk melihat coding&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT BRAY&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT BRAY&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #33997e;&quot;&gt;import&lt;/span&gt; processing.serial.*; //Import serial library 
Serial&amp;nbsp;port; //Buat serial object bernama &quot;port&quot;
&lt;span style=&quot;color: #e2661a;&quot;&gt;float&lt;/span&gt; kecerahan = 0; //Variable untuk menampung hasil Potensio

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;setup&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;size&lt;/span&gt;(500,500); //Buat objek 500x500 pixel
&amp;nbsp;&amp;nbsp;port&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #33997e;&quot;&gt;new&lt;/span&gt; Serial(&lt;span style=&quot;color: #33997e;&quot;&gt;this&lt;/span&gt;, &lt;span style=&quot;color: #7d4793;&quot;&gt;&quot;COM3&quot;&lt;/span&gt;, 9600); //Sesuaikan &quot;COM3&quot;
&amp;nbsp;&amp;nbsp;port.bufferUntil(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;\n&#39;&lt;/span&gt;);
}

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #006699;&quot;&gt;&lt;b&gt;draw&lt;/b&gt;&lt;/span&gt;() {
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;background&lt;/span&gt;(0,0,kecerahan); //Merah,Hijau,Biru (R,G,B)
}

&lt;span style=&quot;color: #33997e;&quot;&gt;void&lt;/span&gt; serialEvent (Serial port) {
&amp;nbsp;kecerahan&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #006699;&quot;&gt;float&lt;/span&gt;(port.readStringUntil(&lt;span style=&quot;color: #7d4793;&quot;&gt;&#39;\n&#39;&lt;/span&gt;)); //Baca hasil serial
}
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
10.) Setelah itu klik Run pada software Processing IDE, dan putar tuas Potensiometer.&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;droid sans&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 20.3px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/sSHW0xEAS2c&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/438032853918835525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/04/basic-komunikasi-serial-arduino-dengan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/438032853918835525'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/438032853918835525'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/04/basic-komunikasi-serial-arduino-dengan.html' title='Basic Komunikasi Serial Arduino dengan Processing'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqVdg4AFQ5qFFzzxJUDFc_fJbS5zMiWTpGm9SSOqYhcrs10gu4zzJeecKV2ngHuS8LArnkpXn7FY_IH1i138cu8UNVZUAHIPR8OzZSxzCZZEwt58TGaI_nhrrUnRrIK-89raKZly5tLY/s72-c/basic-arduino-processing-boarduino.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-7264652060042631964</id><published>2016-03-19T22:35:00.003+07:00</published><updated>2016-03-19T22:40:36.289+07:00</updated><title type='text'>Menampilkan Suhu pada P10 Led Matrix dengan Arduino</title><content type='html'>Oke bro selamat datang di blog ini, semoga kita semua masih diberikan kesehatan, Amiin.&lt;br /&gt;
Hari ini hari Sabtu malam, atau biasa anak muda bilang &lt;span style=&quot;color: red;&quot;&gt;&quot;Malming&quot;&lt;/span&gt; alias Malam minggu.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrCJltsbK7FPu8TcFHAhR1ujzm37Gr1qHDmFRN3beySdlaJxDYPEVbqN-JsvpZncvvivegSUnxHaRLFeCoomzOFzyjNabmdYct7sVOZrD-2VgTgCdtu333OkdQ0BDD0SA6LcbF1bI5eUE/s1600/p10-lm35-boarduino.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;177&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrCJltsbK7FPu8TcFHAhR1ujzm37Gr1qHDmFRN3beySdlaJxDYPEVbqN-JsvpZncvvivegSUnxHaRLFeCoomzOFzyjNabmdYct7sVOZrD-2VgTgCdtu333OkdQ0BDD0SA6LcbF1bI5eUE/s320/p10-lm35-boarduino.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Malam minggu ini, ketika mayoritas kaula muda sedang asyik bermain, berpacaran atau sedang nongkrong-nongkrong yang menurut saya &lt;span style=&quot;color: red;&quot;&gt;tidak ada manfaatnya&lt;/span&gt;, Di malam minggu ini kita akan belajar dan bermain dengan Arduino ataupun belajar disiplin ilmu yang lainnya yang penting &lt;span style=&quot;color: red;&quot;&gt;bermanfaat&lt;/span&gt;. Maaf sebelumnya nih gan, bukannya saya ingin menggurui atau mengajarkan kalian, Karena saya juga masih muda, Menurut saya mumpung agan-agan atau sista-sista masih ber-usia muda, tolong &lt;span style=&quot;color: red;&quot;&gt;jangan sia siakan masa muda&lt;/span&gt; kalian hanya dengan bersenang-senang saja, hura-hura dan lain lain, kita harus berfikir juga untuk masa depan kita, agar hidup kita menjadi &lt;span style=&quot;color: red;&quot;&gt;bermanfaat&lt;/span&gt;, Amiin&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Okelah Kalau begitu langsung saja menuju bagian pembahasan. Di artikel kali ini, kita akan mencoba menampilkan hasil dari sensor suhu &lt;span style=&quot;color: red;&quot;&gt;LM35 &lt;/span&gt;pada &lt;span style=&quot;color: red;&quot;&gt;Panel P10&lt;/span&gt; Led matrix 16x32 dengan Arduino, Suhu yang kita tampilkan pada panel tersebut dalam satuan derajat &lt;span style=&quot;color: red;&quot;&gt;celcius (&lt;span style=&quot;background-color: white; font-family: arial, sans-serif; font-size: x-small; line-height: 18.2px;&quot;&gt;°&lt;/span&gt;c)&lt;/span&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x IC LM35 &lt;/li&gt;
&lt;li&gt;1x P10 LED Matrix 16x32&lt;/li&gt;
&lt;li&gt;Library DMD dan TimerOne &lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.) Pertama, download lah &lt;span style=&quot;color: red;&quot;&gt;Library DMD&lt;/span&gt; dan &lt;span style=&quot;color: red;&quot;&gt;TimerOne&lt;/span&gt; dengan &lt;a href=&quot;https://github.com/freetronics/DMD&quot; target=&quot;_blank&quot;&gt;KLIK INI&lt;/a&gt; dan juga &lt;a href=&quot;https://github.com/PaulStoffregen/TimerOne&quot; target=&quot;_blank&quot;&gt;KLIK INI&lt;/a&gt;&lt;br /&gt;
2.) Setelah sudah di download, maka susunlah rangkaian&lt;span style=&quot;color: red;&quot;&gt; &lt;span style=&quot;color: black;&quot;&gt;seperti gambar dibawah ini&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqbpILLXFePKNo_54POZDw__umGlfRCUe3mDRQAKsG-_5gd8FK8CBiY0-_Ady867xBxbEK1R7l_ibDVYq17OTSx5NQCCAmgt6eosZguSBj6zdFIInZxrGjVlKTzyq6v_McQ7QBjUHzGS0/s1600/Lm35-ledmatrixp10.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqbpILLXFePKNo_54POZDw__umGlfRCUe3mDRQAKsG-_5gd8FK8CBiY0-_Ady867xBxbEK1R7l_ibDVYq17OTSx5NQCCAmgt6eosZguSBj6zdFIInZxrGjVlKTzyq6v_McQ7QBjUHzGS0/s640/Lm35-ledmatrixp10.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 5V pada Arduino dihubungkan ke kaki VCC di LM35&lt;/li&gt;
&lt;li&gt;Pin A0 pada Arduino dihubungkan ke kaki OUT di LM35&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke kaki GND di LM35&lt;/li&gt;
&lt;li&gt;Pin 9 pada Arduino dihubungkan ke Pin 1 pada Led Matrix&lt;/li&gt;
&lt;li&gt;Pin 6 pada Arduino dihubungkan ke Pin 2 pada Led Matrix&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke Pin 3 pada Led Matrix&lt;/li&gt;
&lt;li&gt;Pin 7 pada Arduino dihubungkan ke Pin 4 pada Led Matrix&lt;/li&gt;
&lt;li&gt;Pin 13 pada Arduino dihubungkan ke Pin 8 pada Led Matrix&lt;/li&gt;
&lt;li&gt;Pin 8 pada Arduino dihubungkan ke Pin 10 pada Led Matrix&lt;/li&gt;
&lt;li&gt;Pin 11 pada Arduino dihubungkan ke Pin 12 pada Led Matrix &lt;/li&gt;
&lt;/ul&gt;
3.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
4.) Download dan Install program Arduino IDE di &lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt; &lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
5.) Setelah terinstall, jalankan program Arduino-nya.&lt;br /&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;6.)&lt;/span&gt;&lt;/span&gt; Lalu kita tambahkan library DMD, klik &lt;span style=&quot;color: red;&quot;&gt;Sketch &lt;/span&gt;-&amp;gt; &lt;span style=&quot;color: red;&quot;&gt;Include Library&lt;/span&gt; -&amp;gt; &lt;span style=&quot;color: red;&quot;&gt;Add .ZIP Library...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGaOPKDiG4IHUSKO2xdn1MUcWWYiweBOPOfBKbqXe589Fn-a-Bzgb8vl2RNP_MirjtPmkoyBX-0xTf1YEXGQ6BVNw5wf-FgLqMJKSTfOgsdWvZ7KHOp2g6M8EYly3XBMyOfxWHMstzhEs/s1600/111.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGaOPKDiG4IHUSKO2xdn1MUcWWYiweBOPOfBKbqXe589Fn-a-Bzgb8vl2RNP_MirjtPmkoyBX-0xTf1YEXGQ6BVNw5wf-FgLqMJKSTfOgsdWvZ7KHOp2g6M8EYly3XBMyOfxWHMstzhEs/s400/111.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
7.) Lalu pilih file &lt;span style=&quot;color: red;&quot;&gt;DMD-Master.zip&lt;/span&gt; yang sudah ente download tadi lalu klik Open&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7f5gRcin8sYdsnA6jle05utuZOyQL4ZlxzjlmgoVuZoOZsS3fSyJWhpwCgMLNO8OaQBp_dNSNbo5sIzBpJieUC2Pf2iP-TVZA3eC5nyis5902y-JLlsPRQ78T9_mDLEyzvZGmI4GZVw8/s1600/222.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;137&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7f5gRcin8sYdsnA6jle05utuZOyQL4ZlxzjlmgoVuZoOZsS3fSyJWhpwCgMLNO8OaQBp_dNSNbo5sIzBpJieUC2Pf2iP-TVZA3eC5nyis5902y-JLlsPRQ78T9_mDLEyzvZGmI4GZVw8/s400/222.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
8.) Lalu ulangi step seperti nomor 6, lalu pilih file &lt;span style=&quot;color: red;&quot;&gt;TimerOne-master.zip&lt;/span&gt; lalu klik Open&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ-aI37SBr9jhUKHwTiU1BeHsAr6-NQgwCuSPlnV9LjvYsIMxqNpiwx1K95em3CevcXJ_sd8EIu7CkUGEcMLdr-N4QZh4yA3j9JLsCNbj0yMcx3EEvTmYfAmyCOrVC_9G17uFGtUORZtI/s1600/333.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ-aI37SBr9jhUKHwTiU1BeHsAr6-NQgwCuSPlnV9LjvYsIMxqNpiwx1K95em3CevcXJ_sd8EIu7CkUGEcMLdr-N4QZh4yA3j9JLsCNbj0yMcx3EEvTmYfAmyCOrVC_9G17uFGtUORZtI/s400/333.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
9.) Setelah selesai menambahkan library, upload sketch dibawah ini ke Board Arduino&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &amp;lt;SPI.h&amp;gt;&lt;br /&gt;
#include &amp;lt;DMD.h&amp;gt;&lt;br /&gt;
#include &amp;lt;TimerOne.h&amp;gt;&lt;br /&gt;
#include &quot;SystemFont5x7.h&quot;&lt;br /&gt;
#define DISPLAYS_ACROSS 1&lt;br /&gt;
#define DISPLAYS_DOWN 1&lt;br /&gt;
DMD dmd(DISPLAYS_ACROSS, DISPLAYS_DOWN);&lt;br /&gt;
float a;&lt;br /&gt;
char b[5];&lt;br /&gt;
&lt;br /&gt;
void ScanDMD() { &lt;br /&gt;
&amp;nbsp; dmd.scanDisplayBySPI();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void setup(void) {&lt;br /&gt;
&amp;nbsp;Timer1.initialize( 5000 );&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;Timer1.attachInterrupt( ScanDMD );&lt;br /&gt;
&amp;nbsp;dmd.clearScreen( true );&lt;br /&gt;
&amp;nbsp;Serial.begin(9600);&amp;nbsp;&amp;nbsp; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(void) {&lt;br /&gt;
&amp;nbsp; dmd.clearScreen( true );&lt;br /&gt;
&amp;nbsp; a = 0;&lt;br /&gt;
&amp;nbsp; a = analogRead(A0);&lt;br /&gt;
&amp;nbsp; a = (5.0*a*100.0)/1024.0; &lt;br /&gt;
&amp;nbsp; Serial.println(a);&lt;br /&gt;
&amp;nbsp; dtostrf(a, 4, 2, b);&lt;br /&gt;
&amp;nbsp; dmd.selectFont(SystemFont5x7);&lt;br /&gt;
&amp;nbsp; dmd.drawString( 2, 3, b, 5, GRAPHICS_NORMAL );&lt;br /&gt;
&amp;nbsp; delay(5000);&amp;nbsp;&amp;nbsp; &lt;br /&gt;
}&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/TYv6OwePMVw&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/center&gt;
&lt;center&gt;
&lt;/center&gt;
&lt;center&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/center&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/7264652060042631964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/03/menampilkan-suhu-pada-p10-led-matrix.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/7264652060042631964'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/7264652060042631964'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/03/menampilkan-suhu-pada-p10-led-matrix.html' title='Menampilkan Suhu pada P10 Led Matrix dengan Arduino'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrCJltsbK7FPu8TcFHAhR1ujzm37Gr1qHDmFRN3beySdlaJxDYPEVbqN-JsvpZncvvivegSUnxHaRLFeCoomzOFzyjNabmdYct7sVOZrD-2VgTgCdtu333OkdQ0BDD0SA6LcbF1bI5eUE/s72-c/p10-lm35-boarduino.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-5186683519554959238</id><published>2016-03-05T18:23:00.000+07:00</published><updated>2016-03-05T18:25:40.684+07:00</updated><title type='text'>Mengontrol Banyak Servo dengan Android dan Arduino</title><content type='html'>Oke bro dan sis, berjumpa lagi dengan saya pada minggu pertama di Bulan Maret Tahun 2016.&lt;br /&gt;
Semoga kita menjadi lebih sehat agar dapat semangat untuk terus belajar dan berkarya, Amiin.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTKrXKKkkDDf83lPx_wUSiJUu6vrpOtQE9_nbDN07a3b0QYORpfpCW_FiJbh8c4EAfzGT9E9QNFNBRvaTW9lDl31QfSocZ-vwBtGyEGMIVOwMEla6JUxV_egFjcgDIuSkaWiTOj9b3S8g/s1600/arduino-servo-android-boarduino.web.id.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTKrXKKkkDDf83lPx_wUSiJUu6vrpOtQE9_nbDN07a3b0QYORpfpCW_FiJbh8c4EAfzGT9E9QNFNBRvaTW9lDl31QfSocZ-vwBtGyEGMIVOwMEla6JUxV_egFjcgDIuSkaWiTOj9b3S8g/s320/arduino-servo-android-boarduino.web.id.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Di kesempatan hari ini, kita akan mencoba Mengontrol banyak servo melalui Android. Pada artikel sebelumnya yang ada di blog ini, saya juga pernah mempublish artikel yang berjudul &quot;&lt;a href=&quot;http://www.boarduino.web.id/2015/02/mengontrol-motor-servo-dengan-android.html&quot; target=&quot;_blank&quot;&gt;Mengontrol Servo dengan Android dan Arduino&lt;/a&gt;&quot;. Sebenarnya tidak ada banyak perbedaan dari artikel tersebut, perbedaannya hanya saja kali ini kita akan mengontrol &lt;span style=&quot;color: red;&quot;&gt;lebih banyak servo&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Dengan menggunakan Smartphone android untuk mengontrol derajat putaran servo, maka tentunya akan lebih memudahkan kita dalam menyelesaikan project Arduino kita. Contoh kecilnya, jika anda mempunyai Robotic Arm seperti &lt;a href=&quot;http://www.mearm.com/&quot; target=&quot;_blank&quot;&gt;MeArm&lt;/a&gt;, anda dapat mengatur derajat putaran Servo &lt;span style=&quot;color: red;&quot;&gt;base&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;shoulder&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;elbow &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;gripper &lt;/span&gt;menggunakan Android via Bluetooth dengan aplikasi &lt;a href=&quot;https://play.google.com/store/apps/details?id=appinventor.ai_Muhandi_prasetyo.Servoduino&quot; target=&quot;_blank&quot;&gt;Arduino Bluetooth 6CH Servo&lt;/a&gt;&amp;nbsp;ini atau aplikasi&amp;nbsp;&lt;a href=&quot;https://play.google.com/store/apps/details?id=appinventor.ai_Muhandi_prasetyo.MeArm&quot; target=&quot;_blank&quot;&gt;MeArm Controller&lt;/a&gt; yang ada di playstore.&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino UNO&lt;/li&gt;
&lt;li&gt;1x Bluetooth modul ( HC-05 atau HC-06 juga boleh)&lt;/li&gt;
&lt;li&gt;6x Motor servo&lt;/li&gt;
&lt;li&gt;1x Project board ( Breadboard )&lt;/li&gt;
&lt;li&gt;Smartphone Android&lt;/li&gt;
&lt;li&gt;Aplikasi android &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Arduino Bluetooth 6CH Servo&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt; Download di Playstore&lt;b&gt; &lt;a href=&quot;https://play.google.com/store/apps/details?id=appinventor.ai_Muhandi_prasetyo.Servoduino&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.) Susunlah rangkaian berikut pada breadboard&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg_vZ0eRvoMO9U1tq-pKbo8Vxn6k8eeVDY2Bc8-BWbEw6nKn-qBdRt7xs-0vcH9druA4nRU6u_pMO5jeveH9nzr4rFRMXZESwt2zEc78AQ5rI-8EL6P9yOCjV7YnRFisJ25XDY3Zy52rg/s1600/Multiple+Servos+Android-Boarduino.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;416&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg_vZ0eRvoMO9U1tq-pKbo8Vxn6k8eeVDY2Bc8-BWbEw6nKn-qBdRt7xs-0vcH9druA4nRU6u_pMO5jeveH9nzr4rFRMXZESwt2zEc78AQ5rI-8EL6P9yOCjV7YnRFisJ25XDY3Zy52rg/s640/Multiple+Servos+Android-Boarduino.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 5V pada arduino dihubungkan ke VCC modul bluetooth&lt;/li&gt;
&lt;li&gt;Pin GND pada arduino dihubungkan ke GND pada modul bluetooth&lt;/li&gt;
&lt;li&gt;Pin RXD pada arduino dihubungkan ke TX pada modul bluetooth&lt;/li&gt;
&lt;li&gt;Pin TXD pada arduino dihubungkan ke RX pada modul bluetooth&lt;/li&gt;
&lt;li&gt;Pin 3 pada arduino dihubungkan ke kabel kuning Servo channel 1&lt;/li&gt;
&lt;li&gt;Pin 5 pada arduino dihubungkan ke kabel kuning Servo channel 2&lt;/li&gt;
&lt;li&gt;Pin 6 pada arduino dihubungkan ke kabel kuning Servo channel 3&lt;/li&gt;
&lt;li&gt;Pin 9 pada arduino dihubungkan ke kabel kuning Servo channel 4&lt;/li&gt;
&lt;li&gt;Pin 10 pada arduino dihubungkan ke kabel kuning Servo channel 5&lt;/li&gt;
&lt;li&gt;Pin 11 pada arduino dihubungkan ke kabel kuning Servo channel 6&lt;/li&gt;
&lt;li&gt;Kabel merah pada semua servo di jumper ke 5V ( Tegangan positif )&lt;/li&gt;
&lt;li&gt;Kabel hitam pada semua servo di jumper ke GND ( Tengangan negatif )&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di &lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt; &lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.) Setelah terinstall, jalankan program Arduino-nya.&lt;br /&gt;
5.) Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini, dan terakhir klik upload.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
/*6 Channel Servo Motor Control ~ www.boarduino.blogspot.com */&lt;br /&gt;
#include &amp;lt;Servo.h&amp;gt;&lt;br /&gt;
Servo servo_channel_1;&lt;br /&gt;
Servo servo_channel_2;&lt;br /&gt;
Servo servo_channel_3;&lt;br /&gt;
Servo servo_channel_4;&lt;br /&gt;
Servo servo_channel_5;&lt;br /&gt;
Servo servo_channel_6;&lt;br /&gt;
&lt;br /&gt;
int hasil_servo_channel_1;&lt;br /&gt;
int hasil_servo_channel_2;&lt;br /&gt;
int hasil_servo_channel_3;&lt;br /&gt;
int hasil_servo_channel_4;&lt;br /&gt;
int hasil_servo_channel_5;&lt;br /&gt;
int hasil_servo_channel_6;&lt;br /&gt;
int hasil_serial;&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
&amp;nbsp; Serial.begin(38400); //Sesuaikan baudrate dengan modul bluetooth anda!&lt;br /&gt;
&amp;nbsp; Serial.setTimeout(4);&lt;br /&gt;
&amp;nbsp; servo_channel_1.attach(3);&lt;br /&gt;
&amp;nbsp; servo_channel_2.attach(5);&lt;br /&gt;
&amp;nbsp; servo_channel_3.attach(6);&lt;br /&gt;
&amp;nbsp; servo_channel_4.attach(9);&lt;br /&gt;
&amp;nbsp; servo_channel_5.attach(10);&lt;br /&gt;
&amp;nbsp; servo_channel_6.attach(11);&lt;br /&gt;
&amp;nbsp; servo_channel_1.write(hasil_servo_channel_1);&lt;br /&gt;
&amp;nbsp; servo_channel_2.write(hasil_servo_channel_2);&lt;br /&gt;
&amp;nbsp; servo_channel_3.write(hasil_servo_channel_3);&lt;br /&gt;
&amp;nbsp; servo_channel_4.write(hasil_servo_channel_4);&lt;br /&gt;
&amp;nbsp; servo_channel_5.write(hasil_servo_channel_5);&lt;br /&gt;
&amp;nbsp; servo_channel_6.write(hasil_servo_channel_6);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
&amp;nbsp; if (Serial.available()&amp;gt;0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_serial = Serial.parseInt();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (hasil_serial &amp;gt;0 &amp;amp;&amp;amp; hasil_serial &amp;lt;180) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_1 = hasil_serial;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_1 = map(hasil_serial, 0, 180, 0, 180);&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; servo_channel_1.write(hasil_servo_channel_1);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if (hasil_serial &amp;gt;180 &amp;amp;&amp;amp; hasil_serial &amp;lt;360) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_2 = hasil_serial;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_2 = map(hasil_serial, 180, 360, 0, 180); &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; servo_channel_2.write(hasil_servo_channel_2);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if (hasil_serial &amp;gt;360 &amp;amp;&amp;amp; hasil_serial &amp;lt;540) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_3 = hasil_serial;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_3 = map(hasil_serial, 360, 540, 0, 180);&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; servo_channel_3.write(hasil_servo_channel_3);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (hasil_serial &amp;gt;540 &amp;amp;&amp;amp; hasil_serial &amp;lt;720) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_4 = hasil_serial;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_4 = map(hasil_serial, 540, 720, 0, 180);&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; servo_channel_4.write(hasil_servo_channel_4);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (hasil_serial &amp;gt;720 &amp;amp;&amp;amp; hasil_serial &amp;lt;900) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_5 = hasil_serial;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_5 = map(hasil_serial, 720, 900, 0, 180);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; servo_channel_5.write(hasil_servo_channel_5);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (hasil_serial &amp;gt;900 &amp;amp;&amp;amp; hasil_serial &amp;lt;1080) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_6 = hasil_serial;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasil_servo_channel_6 = map(hasil_serial, 900, 1080, 0, 180);&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; servo_channel_6.write(hasil_servo_channel_6);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
} &lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/5186683519554959238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/03/mengontrol-banyak-servo-dengan-android.html#comment-form' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5186683519554959238'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/5186683519554959238'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/03/mengontrol-banyak-servo-dengan-android.html' title='Mengontrol Banyak Servo dengan Android dan Arduino'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTKrXKKkkDDf83lPx_wUSiJUu6vrpOtQE9_nbDN07a3b0QYORpfpCW_FiJbh8c4EAfzGT9E9QNFNBRvaTW9lDl31QfSocZ-vwBtGyEGMIVOwMEla6JUxV_egFjcgDIuSkaWiTOj9b3S8g/s72-c/arduino-servo-android-boarduino.web.id.png" height="72" width="72"/><thr:total>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-2130130554645023283</id><published>2016-03-01T00:09:00.001+07:00</published><updated>2016-03-01T00:10:21.484+07:00</updated><title type='text'>Mengontrol Arah Putaran Motor DC dengan Accelerometer</title><content type='html'>Halo semuanya, selamat datang bagi kalian yang mungkin selalu berkunjung ke Blog ini.&lt;br /&gt;
Sekarang sudah awal Bulan Maret 2016, semoga selalu sehat dan tetap semangat belajar, Amiin.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBTaaM5Dh3izn-rGL86e8NGuXixSlbIDDsToNdqXcR-NH3FcTPCN4InytQrWPJaXGtX1PQoFMS04_e_sUcfdK7Q9Z5zpiqUy654U88piOU-_nGl3Ir6pziLi5yuWEYfH3NQUZQ8hEkyLo/s1600/cwccw.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBTaaM5Dh3izn-rGL86e8NGuXixSlbIDDsToNdqXcR-NH3FcTPCN4InytQrWPJaXGtX1PQoFMS04_e_sUcfdK7Q9Z5zpiqUy654U88piOU-_nGl3Ir6pziLi5yuWEYfH3NQUZQ8hEkyLo/s320/cwccw.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Intermezzo &lt;/span&gt;: Sebelum kita mencobanya, alangkah baiknya kita berkenalan terlebih dahulu dengan si Doi. Apa itu modul sensor &lt;span style=&quot;color: red;&quot;&gt;GY521 MPU6050?&lt;/span&gt; MPU6050 adalah chip IC invense yang di dalamnya terdapat sensor accelerometer dan gyroscop yang sudah terintegrasi. Alasan menggunakan sensor ini adalah karena harganya relatif &lt;span style=&quot;color: red;&quot;&gt;murah &lt;/span&gt;dimana sudah mendapatkan &lt;span style=&quot;color: red;&quot;&gt;2 sensor&lt;/span&gt; yang sudah terintegrasi.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Berikut adalah spesifikasi dari Modul GY521 MPU6050:&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Berbasis Chip MPU-6050&lt;/li&gt;
&lt;li&gt;Supply tegangan berkisar 3-5V&lt;/li&gt;
&lt;li&gt;Gyroscope range + 250 500 1000 2000 ° / s&lt;/li&gt;
&lt;li&gt;Acceleration range: ± 2 ± 4 ± 8 ± 16 g&lt;/li&gt;
&lt;li&gt;Communication standard I2C&lt;/li&gt;
&lt;li&gt;Chip built-in 16 bit AD converter, 16 bits data output&lt;/li&gt;
&lt;li&gt;Jarak antar pin header 2.54 mm&lt;/li&gt;
&lt;li&gt;Dimensi modul 20.3mm x 15.6mm&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Karena pada saat saya menulis artikel ini sudah larut malam, maka akan saya persingkat waktunya. Pada kali ini kita akan memanfaatkan Arduino dan modul sensor GY521 &lt;span style=&quot;color: red;&quot;&gt;MPU6050 &lt;/span&gt;untuk mengendalikan arah putaran dari 1 buah Motor DC untuk di kontrol &lt;span style=&quot;color: red;&quot;&gt;Clockwise &lt;/span&gt;dan &lt;span style=&quot;color: red;&quot;&gt;Counter Clockwise&lt;/span&gt; dengan driver motor IC &lt;span style=&quot;color: red;&quot;&gt;L293D &lt;/span&gt;atau Adafruit L293D &lt;span style=&quot;color: red;&quot;&gt;Motorshield&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino (Compatible)&lt;/li&gt;
&lt;li&gt;1x Motor DC&lt;/li&gt;
&lt;li&gt;1x MPU6050&amp;nbsp;&lt;/li&gt;
&lt;li&gt;1x IC L293D / L293D Motorshield&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;li&gt;Library&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;I2Cdev&amp;nbsp;&lt;/span&gt;dan&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;MPU6050&lt;/span&gt;, silahkan klik&amp;nbsp;&lt;a href=&quot;https://drive.google.com/file/d/0B2ZJlFy76RFsUU11NmRCd24yMHc/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.) Pertama, susunlah rangkaian seperti gambar dibawah ini&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZHmz3UsF-LEvvs6qz1Zaf1q7-1cm1KbcsdOQ2UR1mZnxNxzvCohlMe4aH1GE8qwU1yg6t-WIorMw_rk-UZIJASby9yq7uXJfmli9vRbgY8daWuP_7dlsgGZPYYn-lPmf_NST_IAWSCbU/s1600/Kontrol+arah+putaran+Motor+DC+dengan+MPU6050_bb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;341&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZHmz3UsF-LEvvs6qz1Zaf1q7-1cm1KbcsdOQ2UR1mZnxNxzvCohlMe4aH1GE8qwU1yg6t-WIorMw_rk-UZIJASby9yq7uXJfmli9vRbgY8daWuP_7dlsgGZPYYn-lPmf_NST_IAWSCbU/s400/Kontrol+arah+putaran+Motor+DC+dengan+MPU6050_bb.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 3,3V pada arduino dihubungkan ke VCC pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin GND pada arduino dihubungkan ke GND pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin A4 pada arduino dihubungkan ke SCL pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin A5 pada arduino dihubungkan ke SDA pada MPU6050&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 1 pada IC L293D ke Pin 9 pada Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 2 pada IC L293D ke Pin 3 pada Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 7 pada IC L293D ke Pin 5 pada Arduino&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 3 pada IC L293D ke Salah satu Input pada Motor DC&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 6 pada IC L293D ke Salah satu Input pada Motor DC&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 8 dan 16 pada IC L293D ke VCC&lt;/li&gt;
&lt;li&gt;Hubungkan Kaki 4, 5, 12 dan 13 pada IC L293D ke GND&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di&amp;nbsp;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.) Setelah terinstall, jalankan program Arduino-nya.&lt;br /&gt;
5.) Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini, dan terakhir klik upload.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &quot;Wire.h&quot;&lt;br /&gt;
#include &quot;I2Cdev.h&quot;&lt;br /&gt;
#include &quot;MPU6050.h&quot;&lt;br /&gt;
&lt;br /&gt;
MPU6050 mpu;&lt;br /&gt;
&lt;br /&gt;
int16_t ax, ay, az;&lt;br /&gt;
int16_t gx, gy, gz;&lt;br /&gt;
&lt;br /&gt;
#define pin1 3&lt;br /&gt;
#define pin2 5&lt;br /&gt;
&lt;br /&gt;
void setup(){&lt;br /&gt;
&amp;nbsp;Serial.begin(9600);&lt;br /&gt;
&amp;nbsp;Serial.println(&quot;Inisialisasi MPU&quot;);&lt;br /&gt;
&amp;nbsp;mpu.initialize();&lt;br /&gt;
&amp;nbsp;pinMode(pin2,OUTPUT);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
&amp;nbsp;mpu.getMotion6(&amp;amp;ax, &amp;amp;ay, &amp;amp;az, &amp;amp;gx, &amp;amp;gy, &amp;amp;gz);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ax = map(ax, -17000, 17000, -1500, 1500);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;if(ax &amp;gt; 0){&lt;br /&gt;
&amp;nbsp; if(ax&amp;lt;255){&lt;br /&gt;
&amp;nbsp; Serial.println(ax);&lt;br /&gt;
&amp;nbsp; analogWrite(pin2,ax);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;else{&lt;br /&gt;
&amp;nbsp; Serial.println(&quot;+255&quot;);&lt;br /&gt;
&amp;nbsp; analogWrite(pin2,255);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;if(ax&amp;lt;0){&lt;br /&gt;
&amp;nbsp; if(ax&amp;gt;-255){&lt;br /&gt;
&amp;nbsp; Serial.println(ax);&lt;br /&gt;
&amp;nbsp; analogWrite(pin1, ax-ax-ax);&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;else{&lt;br /&gt;
&amp;nbsp; Serial.println(&quot;-255&quot;);&lt;br /&gt;
&amp;nbsp; analogWrite(pin1, 255);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;delay(1000);&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;NOTE&lt;/b&gt; &lt;/span&gt;: Apabila mengontrol Motor DC dengan rangkaian seperti diatas, maka membutuhkan power supply external. Karena arduino kurang kuat untuk menggerakan Motor DC.&lt;br /&gt;
&lt;br /&gt;
Dan apabila ente kebetulan mempunyai L293D Motorshield, maka gunakan konfigurasi ini :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Tancapkan L293D Motorshield pada Arduino&lt;/li&gt;
&lt;li&gt;Pasangkan Motor DC pada terminal M4 pada Motorshield&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Pin 3,3V pada arduino dihubungkan ke VCC pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin GND pada arduino dihubungkan ke GND pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin A4 pada arduino dihubungkan ke SCL pada MPU6050&lt;/li&gt;
&lt;li&gt;Pin A5 pada arduino dihubungkan ke SDA pada MPU6050&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Lalu masukkan Sketch dibawah ini dan Upload pada Board Arduino ente.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;margin-bottom: 2px;&quot;&gt;
&lt;b&gt;&lt;small&gt;Klik LIHAT DONG untuk melihat sketch&lt;/small&gt;&lt;/b&gt;
&lt;input onclick=&quot;if (this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display != &#39;&#39;) { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;&#39;; this.innerText = &#39;&#39;; this.value = &#39;TUTUP&#39;; } else { this.parentNode.parentNode.getElementsByTagName(&#39;div&#39;)[1].getElementsByTagName(&#39;div&#39;)[0].style.display = &#39;none&#39;; this.innerText = &#39;&#39;; this.value = &#39;LIHAT DONG&#39;; }&quot; style=&quot;font-size: 10px; margin: 0px; padding: 0px; width: 90px;&quot; type=&quot;button&quot; value=&quot;LIHAT DONG&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 1px inset; margin: 0px; padding: 6px;&quot;&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
#include &amp;lt;I2Cdev.h&amp;gt;&lt;br /&gt;
#include &amp;lt;MPU6050.h&amp;gt;&lt;br /&gt;
#include &amp;lt;AFMotor.h&amp;gt;&lt;br /&gt;
AF_DCMotor motor1(4, MOTOR12_64KHZ);&lt;br /&gt;
&lt;br /&gt;
MPU6050 mpu;&lt;br /&gt;
int16_t ax, ay, az;&lt;br /&gt;
int16_t gx, gy, gz;&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
&amp;nbsp; Wire.begin();&lt;br /&gt;
&amp;nbsp; Serial.begin(9600);&lt;br /&gt;
&amp;nbsp; Serial.println(&quot;Inisialisasi MPU&quot;);&lt;br /&gt;
&amp;nbsp; mpu.initialize();&lt;br /&gt;
&amp;nbsp; Serial.println(mpu.testConnection() ? &quot;Connected&quot; : &quot;Connection failed&quot;);&lt;br /&gt;
&amp;nbsp; motor1.setSpeed(100);&lt;br /&gt;
}&lt;br /&gt;
void loop() {&lt;br /&gt;
&amp;nbsp; mpu.getMotion6(&amp;amp;ax, &amp;amp;ay, &amp;amp;az, &amp;amp;gx, &amp;amp;gy, &amp;amp;gz);&lt;br /&gt;
&amp;nbsp; Serial.println(ax);&lt;br /&gt;
if (ax &amp;lt;= -30){&lt;br /&gt;
&amp;nbsp; motor1.run(FORWARD);&lt;br /&gt;
&amp;nbsp; delay(10);&lt;br /&gt;
}&lt;br /&gt;
else if (ax &amp;gt;= 30){&lt;br /&gt;
&amp;nbsp; motor1.run(BACKWARD);&lt;br /&gt;
&amp;nbsp; delay(10);&lt;br /&gt;
}&lt;br /&gt;
else{&lt;br /&gt;
&amp;nbsp; motor1.run(RELEASE);&lt;br /&gt;
&amp;nbsp; delay(10);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;color: red;&quot;&gt;NOTE : &lt;/b&gt;Apabila saat di compile mendapatkan pesan error, tambahkan &lt;a href=&quot;https://github.com/adafruit/Adafruit-Motor-Shield-library&quot; target=&quot;_blank&quot;&gt;Library AFMotor.h&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/s26evz-Pesk&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/2130130554645023283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/03/mengontrol-arah-putaran-motor-dc-dengan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/2130130554645023283'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/2130130554645023283'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/03/mengontrol-arah-putaran-motor-dc-dengan.html' title='Mengontrol Arah Putaran Motor DC dengan Accelerometer'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBTaaM5Dh3izn-rGL86e8NGuXixSlbIDDsToNdqXcR-NH3FcTPCN4InytQrWPJaXGtX1PQoFMS04_e_sUcfdK7Q9Z5zpiqUy654U88piOU-_nGl3Ir6pziLi5yuWEYfH3NQUZQ8hEkyLo/s72-c/cwccw.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-8842258757944974314</id><published>2016-02-26T15:47:00.000+07:00</published><updated>2018-09-30T21:14:48.181+07:00</updated><title type='text'>Masuk ke Mode AT Command HC-05 dengan USB TTL</title><content type='html'>Halo bro, selamat datang kembali... Semoga masih dalam keadaan Sehat dan terus semangat.&lt;br /&gt;
Hari-hari terus berganti, semoga kita dapat memanfaatkan waktu sebaik mungkin ya gan :)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_0_rTsz55Jjir43y43Brc_KVQYDTeeeZaEoacP_oqKn_AsBgNfbIlngNbpdB4C2hFd0MMUSJIwQ-RvK3hoDX7Cj1KC2msPy47r-ADwNrsoeacwxMn38vT8wjlCLoPfELj80FcpTdCanE/s1600/atcommand.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_0_rTsz55Jjir43y43Brc_KVQYDTeeeZaEoacP_oqKn_AsBgNfbIlngNbpdB4C2hFd0MMUSJIwQ-RvK3hoDX7Cj1KC2msPy47r-ADwNrsoeacwxMn38vT8wjlCLoPfELj80FcpTdCanE/s1600/atcommand.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Di artikel kali ini masih ada hubungan dengan Artikel sebelumnya yang berjudul &quot;&lt;a href=&quot;http://www.boarduino.web.id/2016/01/cara-masuk-ke-mode-at-command-hc-05.html&quot; target=&quot;_blank&quot;&gt;Masuk ke Mode AT Command HC-05 dengan Arduino&lt;/a&gt;&quot;. Tidak ada perbedaan yang sangat jauh pada tutorial sebelumnya, hanya sedikit berbeda metodenya saja. Kali ini juga kita akan &quot;&lt;span style=&quot;color: red;&quot;&gt;Masuk Mode AT Command HC-05 dengan USB TTL&lt;/span&gt;&quot;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Okelah, Mari langsung simak artikelnya :)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
USB to TTL atau sering juga disebut USB to UART adalah salah satu dari banyaknya jenis kabel converter yang sering kita temui jika bermain dalam bidang mikrokontroller dan komunikasi micro ke komputer. Kabel USB to TTL ini memungkinkan pengguna untuk membuat perangkat elektronika seperti mikrokontroller nya dapat berkomunikasi dengan komputer.&lt;br /&gt;
&lt;br /&gt;
Lalu, untuk apa AT Command pada modul HC-05? Salah satu contoh kecil dengan AT Command pada Modul Bluetooth HC-05 adalah Mengetahui &lt;span style=&quot;color: red;&quot;&gt;versi software&lt;/span&gt;, Mengetahui atau mengubah &lt;span style=&quot;color: red;&quot;&gt;nama&lt;/span&gt; modul HC-05, Mengetahui atau mengubah &lt;span style=&quot;color: red;&quot;&gt;password &lt;/span&gt;modul HC-05 dan juga Mengetahui atau mengubah Kecepatan komunikasi serial modul HC-05 (&lt;span style=&quot;color: red;&quot;&gt;Baudrate&lt;/span&gt;).&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x USB TTL (Cotohnya, saya gunakan CP2102)&lt;/li&gt;
&lt;li&gt;1x Modul Bluetooth HC-05&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Breadboard (Project Board)&lt;/li&gt;
&lt;li&gt;Software &lt;span style=&quot;color: red;&quot;&gt;Hyper Terminal&lt;/span&gt;, klik &lt;a href=&quot;http://www.hilgraeve.com/hyperterminal/&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Untuk melihat AT Command Set, &lt;a href=&quot;http://www.linotux.ch/arduino/HC-0305_serial_module_AT_commamd_set_201104_revised.pdf&quot; target=&quot;_blank&quot;&gt;KLIK DISINI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkah :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
1.) Susun konfigurasi kabel sesuai gambar dibawah ini.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyphenhyphen04UHIYEnJsPHHWTix4s5xlvHsJ4X7OYIbj6_qjAtrjSfrNA03aaaneBmU2OefFzZhP68XqDJwfkjZREN1dnWczwyp0BNk8_CLkEES4mu-gddts7ssi91hKrnQitbUgQaaAQscbCQ9I/s1600/INIHC05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyphenhyphen04UHIYEnJsPHHWTix4s5xlvHsJ4X7OYIbj6_qjAtrjSfrNA03aaaneBmU2OefFzZhP68XqDJwfkjZREN1dnWczwyp0BNk8_CLkEES4mu-gddts7ssi91hKrnQitbUgQaaAQscbCQ9I/s640/INIHC05.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;VCC pada USB TTL dihubungkan ke VCC pada HC-05&lt;/li&gt;
&lt;li&gt;VCC pada USB TTL dihubungkan ke KEY pada HC-05&lt;/li&gt;
&lt;li&gt;GND pada USB TTL dihubungkan ke GND pada HC-05&lt;/li&gt;
&lt;li&gt;RX pada USB TTL dihubungkan ke TXD pada HC-05&lt;/li&gt;
&lt;li&gt;TX pada USB TTL dihubungkan ke RXD pada HC-05&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
2.) Setelah itu tancapkan USB TTL ente pada Port USB yang ada di PC.&lt;br /&gt;
3.) Lalu Download dan install Software Hyperterminal pada Windows ente.&lt;br /&gt;
4.) Bila sudah ter-install Software Hyperterminal, jalankan Softwarenya, lalu klik &lt;span style=&quot;color: red;&quot;&gt;File&lt;/span&gt; -&amp;gt; &lt;span style=&quot;color: red;&quot;&gt;Properties&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIX9r04ANntjbArqEoCQKVmwVqe202_KoMalPSPRor0bnNFR2ErNVn7GlpNvHNjV91aNdiGJF5zQVgkvUDcddhdYBE1-hfgH2_IZ6YI-m7BpRbIdRqqYBNwhR0D1iiTLbpj4Gj9FVjMEs/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIX9r04ANntjbArqEoCQKVmwVqe202_KoMalPSPRor0bnNFR2ErNVn7GlpNvHNjV91aNdiGJF5zQVgkvUDcddhdYBE1-hfgH2_IZ6YI-m7BpRbIdRqqYBNwhR0D1iiTLbpj4Gj9FVjMEs/s640/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
5.) Lalu buka &lt;span style=&quot;color: red;&quot;&gt;Device manager&lt;/span&gt; dari windows ente, dan lihat COM Port USB TTL yang terderksi.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaIY0Cpbkf_JtlPuT7Agxe-WrEIl07VlLGS6zjdygpk44Z6IwU1-Q0QgSzokcW7H3DsYbIfMFuwyq-QBx9lBRjj-N_RXtC9JYdA9De8xN6pU6MnRKruEXS5q4ThIVeci_Q68Oz8ZN09bw/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaIY0Cpbkf_JtlPuT7Agxe-WrEIl07VlLGS6zjdygpk44Z6IwU1-Q0QgSzokcW7H3DsYbIfMFuwyq-QBx9lBRjj-N_RXtC9JYdA9De8xN6pU6MnRKruEXS5q4ThIVeci_Q68Oz8ZN09bw/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
6.) Bila sudah terdeteksi, mari beralih kembali ke Software hyperterminal dan &lt;span style=&quot;color: red;&quot;&gt;Set COM Port&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPoTJVMn_W2LdXq_oNrZ90evvtFpR9rEYD9l6YMgJ_b2DGcQKTwtHXEu9P5zVzvMgrpQQL-HxdRW2cpvje59_xMSjoocs8iSZqhNrmJk9qvR6w1UjDZFcv15fxedG2g6uzpj1YP9kV6Ps/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;379&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPoTJVMn_W2LdXq_oNrZ90evvtFpR9rEYD9l6YMgJ_b2DGcQKTwtHXEu9P5zVzvMgrpQQL-HxdRW2cpvje59_xMSjoocs8iSZqhNrmJk9qvR6w1UjDZFcv15fxedG2g6uzpj1YP9kV6Ps/s640/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
7.) Setelah sudah set COM Port, klik &lt;span style=&quot;color: red;&quot;&gt;Configure&lt;/span&gt;, lalu Set Bits per second menjadi &lt;span style=&quot;color: red;&quot;&gt;38400&lt;/span&gt;, lalu &lt;span style=&quot;color: red;&quot;&gt;OK&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM3e_dJa6Z_52BJMl-eyxjwB0r3M5TJPe35DupvpSaJ6FcddJbUGHzB-8ajWvQQQCRb436d2-kry9Tho0m9ZhwQLMMadY1lAR8Qw6Vt42yxqY3e_mv_fT2kfkscUFq8bm6LQLhCf3qNaI/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM3e_dJa6Z_52BJMl-eyxjwB0r3M5TJPe35DupvpSaJ6FcddJbUGHzB-8ajWvQQQCRb436d2-kry9Tho0m9ZhwQLMMadY1lAR8Qw6Vt42yxqY3e_mv_fT2kfkscUFq8bm6LQLhCf3qNaI/s640/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
8.) Bila sudah Set Port, Selanjutnya kita klik &lt;span style=&quot;color: red;&quot;&gt;Tab Setting&lt;/span&gt;, lalu klik lagi &lt;span style=&quot;color: red;&quot;&gt;ASCII Setup&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix_HvhGxzWZMiDXKZ1uQ-D5ir_UHVnXQinl65uQadlNx5PVpNSHFW2ZaVlrm5QF3F8Y8JFVKAaPMra4a-jD4VW1XzlSRQsR6VZFM64mFWt9L6K-3ctDO25FTEpmBqvN9WrUbgjatDk9QE/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix_HvhGxzWZMiDXKZ1uQ-D5ir_UHVnXQinl65uQadlNx5PVpNSHFW2ZaVlrm5QF3F8Y8JFVKAaPMra4a-jD4VW1XzlSRQsR6VZFM64mFWt9L6K-3ctDO25FTEpmBqvN9WrUbgjatDk9QE/s640/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
9.) Cheklist pada &quot;&lt;span style=&quot;color: red;&quot;&gt;Send line ends with line feed&lt;/span&gt;&quot; dan &quot;&lt;span style=&quot;color: red;&quot;&gt;Echo typed character localy&lt;/span&gt;&quot; lalu klik OK&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh99QCHkS20TtuuzOCmChdzoMP1php2Z8BhYio2CX0jGXQK7aaoQs3gL5m_I6YkXQjtE7g84myQ0-HdqKWptE-eTyo-03A8-hBxRq3i0BUX4jwLcS-DdOvZO5KUyS45OvDoIVOdz50NNRs/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh99QCHkS20TtuuzOCmChdzoMP1php2Z8BhYio2CX0jGXQK7aaoQs3gL5m_I6YkXQjtE7g84myQ0-HdqKWptE-eTyo-03A8-hBxRq3i0BUX4jwLcS-DdOvZO5KUyS45OvDoIVOdz50NNRs/s640/6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
10.) Setelah selesai, maka ente sudah bisa mengirimkan perintah AT melalui Hyperterminal.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKmM0rySjmLXWGXNvPDzLZBZbNb6JLkAu4v7-PR6WrM1J5SNWjr4pKvmjC-ga0uhTL7m486Remc5y3zqrHIOw1SYXV5Pz_qyS_mhecF8UBiEpxGuxybfzxHhvOxW4uPa7-927U6mm0kjI/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKmM0rySjmLXWGXNvPDzLZBZbNb6JLkAu4v7-PR6WrM1J5SNWjr4pKvmjC-ga0uhTL7m486Remc5y3zqrHIOw1SYXV5Pz_qyS_mhecF8UBiEpxGuxybfzxHhvOxW4uPa7-927U6mm0kjI/s640/7.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/8842258757944974314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/02/masuk-ke-mode-at-command-hc-05-dengan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/8842258757944974314'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/8842258757944974314'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/02/masuk-ke-mode-at-command-hc-05-dengan.html' title='Masuk ke Mode AT Command HC-05 dengan USB TTL'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_0_rTsz55Jjir43y43Brc_KVQYDTeeeZaEoacP_oqKn_AsBgNfbIlngNbpdB4C2hFd0MMUSJIwQ-RvK3hoDX7Cj1KC2msPy47r-ADwNrsoeacwxMn38vT8wjlCLoPfELj80FcpTdCanE/s72-c/atcommand.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3039359024652951658.post-6625937147023172199</id><published>2016-02-26T15:46:00.000+07:00</published><updated>2016-02-26T15:48:00.832+07:00</updated><title type='text'>Mengontrol Output Pin PWM Arduino melalui Android</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;
Halo semua, bertemu kembali di hari weekend di minggu terakhir Bulan Februari Tahun 2016.&lt;br /&gt;
Masih dalam suasana liburan, semoga kita semakin semangat untuk terus selalu giat belajar.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhikMrI5I8rsO5gpvpQOmRNMRUQgmw-f4au84OFqr2CitFCIy09w4xhhyVHrBc_hnfyTg0tNxaGmOVMjEzQ2OnwDe0pILrJIV1LwqWNPwMImfRk39pIVFeS36i7MOQKD56iAXvAOSyL0io/s1600/pwm.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhikMrI5I8rsO5gpvpQOmRNMRUQgmw-f4au84OFqr2CitFCIy09w4xhhyVHrBc_hnfyTg0tNxaGmOVMjEzQ2OnwDe0pILrJIV1LwqWNPwMImfRk39pIVFeS36i7MOQKD56iAXvAOSyL0io/s320/pwm.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Apa itu Pulse Width Modulation (PWM)?&lt;/span&gt; PWM adalah salah satu teknik modulasi dengan mengubah lebar pulsa (duty cylce) dengan nilai amplitudo dan frekuensi yang tetap. Satu siklus pulsa merupakan kondisi high kemudian berada di zona transisi ke kondisi low. Lebar pulsa PWM berbanding lurus dengan amplitudo sinyal asli yang belum termodulasi.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Duty Cycle&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;merupakan&lt;/span&gt; representasi dari kondisi logika high dalam suatu periode sinyal dan di nyatakan dalam bentuk (%) dengan range &lt;span style=&quot;color: red;&quot;&gt;0%&lt;/span&gt; sampai 100%, sebagai contoh jika sinyal berada dalam kondisi high terus menerus artinya memiliki duty cycle sebesar &lt;span style=&quot;color: red;&quot;&gt;100%&lt;/span&gt;. Jika waktu sinyal keadaan high sama dengan keadaan low maka sinyal mempunyai duty cycle sebesar 50%.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Penggunaan PWM biasanya ditemui untuk pengaturan &lt;span style=&quot;color: red;&quot;&gt;kecepatan motor dc&lt;/span&gt;, pengaturan &lt;span style=&quot;color: red;&quot;&gt;cerah/redup LED&lt;/span&gt;, dan pengendalian &lt;span style=&quot;color: red;&quot;&gt;sudut motor servo&lt;/span&gt;. Contoh PWM pada pengaturan kecepatan motor dc semakin besar nilai duty cycle maka akan berpengaruh terhadap cepatnya putaran motor. Apabila nilai duty cylce-nya kecil maka motor akan bergerak melambat.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Di artikel kali ini kita akan mencoba mengontrol Output Pin PWM Arduino melalui Android. Seperti yang kita tau, range output PWM arduino adalah &lt;span style=&quot;color: red;&quot;&gt;0-255&lt;/span&gt; dan kita akan menggunakan &lt;span style=&quot;color: red;&quot;&gt;hasil Slider&lt;/span&gt; pada aplikasi android untuk mengontrol kecerahan dari LED yang terhubung ke Pin PWM.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Alat dan Bahan yang dibutuhkan :&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1x Arduino Compatible&lt;/li&gt;
&lt;li&gt;1x Modul Bluetooth&lt;/li&gt;
&lt;li&gt;1x Resistor 220 Ohm&lt;/li&gt;
&lt;li&gt;1x LED ( Warna Bebas )&lt;/li&gt;
&lt;li&gt;1x Projectboard ( Breadboard )&lt;/li&gt;
&lt;li&gt;Kabel jumper secukupnya&lt;/li&gt;
&lt;li&gt;Smartphone Android &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkahnya :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1.)&amp;nbsp; Susunlah rangkaian seperti gambar berikut ini.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNBM_N3uEmtkBZ6DRTxFBcEBGsDr0NujV7om-hWcDXiuK2t4C4wJoM0lmV7PQn6TMDh2urtTDgXvpSr20StXcOYB0UCCET0T1BuXuXrHr8NgNrJhoFBYAlPPwW9o1CK-FtN4rQhdHzhII/s1600/PWMduino.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;386&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNBM_N3uEmtkBZ6DRTxFBcEBGsDr0NujV7om-hWcDXiuK2t4C4wJoM0lmV7PQn6TMDh2urtTDgXvpSr20StXcOYB0UCCET0T1BuXuXrHr8NgNrJhoFBYAlPPwW9o1CK-FtN4rQhdHzhII/s640/PWMduino.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red;&quot;&gt;Keterangan Konfigurasi Kabel : &lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Pin 5V pada Arduino dihubungkan ke kaki VCC Modul Bluetooth&lt;/li&gt;
&lt;li&gt;Pin GND pada Arduino dihubungkan ke kaki GND Modul Bluetooth&lt;/li&gt;
&lt;li&gt;Pin 10 pada Arduino dihubungkan ke Pin TX Modul Bluetooth&lt;/li&gt;
&lt;li&gt;Pin 11 pada Arduino dihubungkan ke Pin RX Modul Bluetooth&lt;/li&gt;
&lt;li&gt;Pin 9 pada Arduino dihubungkan ke Anoda LED&lt;/li&gt;
&lt;/ul&gt;
2.) Setelah itu sambungkan Arduino pada Laptop/PC dengan menggunakan kabel serial.&lt;br /&gt;
3.) Download dan Install program Arduino IDE di &lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;a href=&quot;http://arduino.cc/download.php?f=/arduino-1.0.6-windows.exe&quot;&gt;Arduino.cc&lt;/a&gt; &lt;span style=&quot;color: black;&quot;&gt;( If Needed )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
4.) Setelah terinstall, jalankan program Arduino-nya.&lt;br /&gt;
&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;5.)&lt;/span&gt;&lt;/span&gt; Klik menu &quot;Tools -&amp;gt; Board -&amp;gt; Arduino Uno&quot;&lt;br /&gt;
6.) Klik menu &quot;Tools -&amp;gt; Port -&amp;gt; ( Pilih Port arduino yang terdeteksi di komputer anda )&lt;br /&gt;
7.) Lalu masukan Sketch dibawah ini, dan terakhir klik upload.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
#include &amp;lt;SoftwareSerial.h&amp;gt;&lt;br /&gt;
SoftwareSerial bluetooth(10, 11);&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; pinMode(9, OUTPUT);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Serial.begin(9600);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; bluetooth.begin(38400);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
if(bluetooth.available()&amp;gt; 0 )&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int hasilSlider = bluetooth.read();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Serial.println(hasilSlider);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; analogWrite(9, hasilSlider);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}&amp;nbsp;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/AQOTCZh8Ch0&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;Langkah - Langkah membuat aplikasi Android :&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Pertama, mari kita ke website App inventor 2 Online silahkan klik &lt;a href=&quot;http://ai2.appinventor.mit.edu/&quot; target=&quot;_blank&quot;&gt;MIT App Inventor 2&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Setelah itu, langsung saja di Simak dan Praktekan Video Tutorial dibawah ini gan :)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Kembangkan sendiri layout aplikasi buatan ente, sesuka ente. &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Happy inventing gan, jangan lupa mainkan Logika dan Imajinasi ente ya...&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;center&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/BnXEeoFp8Cg&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Terimakasih telah berkunjung, selamat mencoba, semoga bermanfaat.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://blog.semitekindo.co.id/feeds/6625937147023172199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://blog.semitekindo.co.id/2016/02/mengontrol-output-pin-pwm-arduino.html#comment-form' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6625937147023172199'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3039359024652951658/posts/default/6625937147023172199'/><link rel='alternate' type='text/html' href='https://blog.semitekindo.co.id/2016/02/mengontrol-output-pin-pwm-arduino.html' title='Mengontrol Output Pin PWM Arduino melalui Android'/><author><name>Muhamad Andi Prasetyo</name><uri>http://www.blogger.com/profile/12227869068076183023</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhikMrI5I8rsO5gpvpQOmRNMRUQgmw-f4au84OFqr2CitFCIy09w4xhhyVHrBc_hnfyTg0tNxaGmOVMjEzQ2OnwDe0pILrJIV1LwqWNPwMImfRk39pIVFeS36i7MOQKD56iAXvAOSyL0io/s72-c/pwm.png" height="72" width="72"/><thr:total>18</thr:total></entry></feed>