{"id":1407,"date":"2019-07-13T19:34:29","date_gmt":"2019-07-13T19:34:29","guid":{"rendered":"https:\/\/thezhut.com\/?page_id=1407"},"modified":"2019-10-20T16:39:25","modified_gmt":"2019-10-20T16:39:25","slug":"how-to-setup-use-the-i2c-1602-lcd-display","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=1407","title":{"rendered":"How To Setup &#038; Use The I2C 1602 LCD Display"},"content":{"rendered":"<h1>On this episode of basic Arduino we will take a look at how to setup and use the I2C controlled 1602 LCD display with our Arduino boards.<\/h1>\n<p><iframe loading=\"lazy\" title=\"How To Setup &amp; Use The I2C 1602 LCD Display\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/I_WcNvQbyQM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h1><a href=\"https:\/\/www.facebook.com\/zarduino\" target=\"_blank\" rel=\"noopener noreferrer\">Check us out on Facebook!<\/a><\/h1>\n<p>&nbsp;<\/p>\n<h1><a href=\"https:\/\/bitbucket.org\/fmalpartida\/new-liquidcrystal\/downloads\" target=\"_blank\" rel=\"noopener noreferrer\">Download the ARDUINO I2C LCD Library Here!<\/a><\/h1>\n<p>&nbsp;<\/p>\n<h1><a href=\"https:\/\/youtu.be\/Htdia6cdlos\" target=\"_blank\" rel=\"noopener noreferrer\">How to find the address of any I2C device connected to your Arduino board<\/a><\/h1>\n<p>&nbsp;<\/p>\n<h1>Parts List:<\/h1>\n<p>affiliate links<\/p>\n<h2><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=1eddbad5becb71bb40bfe5a42da32d69\" target=\"_blank\" rel=\"noopener noreferrer\">ARDUINO Board<\/a><\/h2>\n<h2><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=1602 lcd&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=5cd56bbce7356e0bd428a45e7a08fd0e\" target=\"_blank\" rel=\"noopener noreferrer\">1602 LCD Display<\/a><\/h2>\n<h2><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=Potentiometer&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=9ac441dfbb459165559f9d5fa3aec530\" target=\"_blank\" rel=\"noopener noreferrer\">Potentiometer<\/a><\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1>Schematic&#8217;s:<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1411\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/lcd5-300x162.jpg\" alt=\"\" width=\"641\" height=\"346\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/lcd5-300x162.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/lcd5-768x414.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/lcd5-1024x552.jpg 1024w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/lcd5.jpg 1548w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1413\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/LCD_pot-300x162.png\" alt=\"\" width=\"639\" height=\"345\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/LCD_pot-300x162.png 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/LCD_pot-768x415.png 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/LCD_pot-1024x553.png 1024w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/LCD_pot.png 1395w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h1>ARDUINO Code:<\/h1>\n<h1>\/\/ CUSTOM TEXT:<\/h1>\n<p>#include &lt;Wire.h&gt;<br \/>\n#include &lt;LiquidCrystal_I2C.h&gt;<br \/>\nLiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); \/\/ Set the LCD I2C address<\/p>\n<p>void setup()<br \/>\n{<br \/>\nlcd.begin(16, 2); \/\/ initialize the lcd for 16 chars 2 lines, turn on backlight<br \/>\nlcd.clear();<\/p>\n<p>}<br \/>\nvoid loop()<br \/>\n{<br \/>\nlcd.setCursor(5, 0);<br \/>\nlcd.print(&#8220;BASIC&#8221;);<br \/>\nlcd.setCursor(4, 1);<br \/>\nlcd.print(&#8220;ARDUINO&#8221;);<br \/>\ndelay(2000);<br \/>\nlcd.clear();<br \/>\ndelay(2000);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h1>\/\/LCD Potentiometer:<\/h1>\n<p>#include &lt;Wire.h&gt;<br \/>\n#include &lt;LiquidCrystal_I2C.h&gt;<\/p>\n<p>LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);<br \/>\nvoid setup()<br \/>\n{<br \/>\nlcd.begin(16, 2); \/\/ initialize the lcd<br \/>\nlcd.clear();<\/p>\n<p>}<br \/>\nvoid loop()<br \/>\n{<br \/>\nint val = (analogRead(A1)); \/\/read analog pin A0<br \/>\nlcd.setCursor(5, 0);<br \/>\nlcd.print(&#8220;VALUE=&#8221;);<br \/>\nlcd.setCursor(6, 1);<br \/>\nlcd.print(val);<br \/>\ndelay(500);<br \/>\nlcd.clear();<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On this episode of basic Arduino we will take a look at how to setup and use the I2C controlled 1602 LCD display with our Arduino boards. &nbsp; Check us out on Facebook! &nbsp; Download the ARDUINO I2C LCD Library &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=1407\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1382,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-1407","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1407"}],"version-history":[{"count":9,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1407\/revisions"}],"predecessor-version":[{"id":1468,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1407\/revisions\/1468"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1382"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}