{"id":361,"date":"2016-04-17T16:33:45","date_gmt":"2016-04-17T15:33:45","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=361"},"modified":"2016-07-18T21:19:48","modified_gmt":"2016-07-18T20:19:48","slug":"interfacing-16x2-lcd-with-arduino","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/interfacing-16x2-lcd-with-arduino\/","title":{"rendered":"Interfacing 16&#215;2 LCD with Arduino"},"content":{"rendered":"<p>The 16&#215;2 LCD is a cheap display that can be used to display text output from an Arduino.<\/p>\n<p><strong>Below is the schematic<\/strong><\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/04\/LCD-16x2.png\" rel=\"attachment wp-att-362\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-362 size-full\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/04\/LCD-16x2.png\" alt=\"LCD 16x2\" width=\"1475\" height=\"828\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/04\/LCD-16x2.png 1475w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/04\/LCD-16x2-300x168.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/04\/LCD-16x2-768x431.png 768w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/04\/LCD-16x2-1024x575.png 1024w\" sizes=\"auto, (max-width: 1475px) 100vw, 1475px\" \/><\/a><\/p>\n<ol>\n<li>The <span style=\"color: #ff6600;\">VO <\/span>is for setting the contrast (or readability) of the characters.<\/li>\n<li><span style=\"color: #ff6600;\">A <\/span>and <span style=\"color: #ff6600;\">K <\/span>are the LED pins (backlight of the LCD)<\/li>\n<\/ol>\n<p>Arduino has libraries for interfacing with this type of LCDs. The library has various examples including for text scrolling.<\/p>\n<p><strong>Basic example &#8211; simple text print<\/strong><\/p>\n<pre class='wp-code-highlight prettyprint'>\/\/ include the library code:\r\n#include &lt;LiquidCrystal.h&gt;\r\n\r\n\/\/ initialize the library with the numbers of the interface pins\r\nLiquidCrystal lcd(12, 11, 5, 4, 3, 2); \/\/ RS, Enable, D4, D5, D6, D7\r\n\r\nvoid setup() \r\n{\r\n\u00a0 \/\/ set up the LCD's number of columns and rows:\r\n\u00a0 lcd.begin(16, 2);\r\n\u00a0 \/\/ Print a message to the LCD.\r\n\u00a0 lcd.print(\"hello, world!\");\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The 16&#215;2 LCD is a cheap display that can be used to display text output from an Arduino. Below is the schematic The VO is for setting the contrast (or readability) of the characters. A and K are the LED pins (backlight of the LCD) Arduino has libraries for interfacing with this type of LCDs.&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/interfacing-16x2-lcd-with-arduino\/\">Continue reading <span class=\"screen-reader-text\">Interfacing 16&#215;2 LCD with Arduino<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[48,46,47],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-16x2-lcd","tag-jhd-162a","tag-lcd","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":5,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/361\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/361\/revisions\/444"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}