{"id":344,"date":"2010-12-22T02:57:44","date_gmt":"2010-12-22T02:57:44","guid":{"rendered":"http:\/\/louisc.co.uk\/FYP\/?p=344"},"modified":"2016-11-05T11:17:47","modified_gmt":"2016-11-05T11:17:47","slug":"adding-the-lcd-16x2-lcd-display","status":"publish","type":"post","link":"https:\/\/louisc.co.uk\/?p=344","title":{"rendered":"Adding the LCD (16X2 LCD DISPLAY) HD44780"},"content":{"rendered":"<h1>Introduction<\/h1>\n<p>The LCD display in question is based on the very popular HD44780 controller. The Arduino platform has plenty of support for this controller and a library for its use is included with the Arduino IDE. The LCD will be driven in its 4-bit operation mode which requires the least pins. The 4-bit mode works by sending one nibble (4-bits) at a time to construct the entire byte. The display also has a character rom which simplifies use even further. If required custom characters can be programmed in but they are stored in volatile memory.<\/p>\n<h2>Success !<\/h2>\n<p><a href=\"http:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/FYP_islou_co_uk-7309.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-345\" title=\"LED Driver Display (16x2 HD44780)\" src=\"http:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/FYP_islou_co_uk-7309.jpg\" alt=\"\" width=\"540\" height=\"461\" srcset=\"https:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/FYP_islou_co_uk-7309-300x256.jpg 300w, https:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/FYP_islou_co_uk-7309.jpg 540w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<h2>Using the Analogue Pins<\/h2>\n<p>Now that both the wireless module and LED driver IC are connected, digital pins available are running low. The LCD requires six ports on the microcontroller. Although many of the digital pins were taken the Arduino still had six free analogue ports. After a quick piece of research on the Arduino website it was discovered that the analogue pins can be addressed as digital pins by simply counting up six from pin 13, the last digital pin. This means pins 14 through 19 simply are digital representations of analogue pins 0 through 5. The display was connected and the library initialized to use the new pins, the LCD was working.<\/p>\n<h2>Wiring Diagram for Prototype:<\/h2>\n<p><a href=\"http:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/LCD_bb-Edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-346\" title=\"LCD Pins setup on analogue \" src=\"http:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/LCD_bb-Edit.png\" alt=\"\" width=\"422\" height=\"241\" srcset=\"https:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/LCD_bb-Edit-300x171.png 300w, https:\/\/louisc.co.uk\/wp-content\/uploads\/2011\/01\/LCD_bb-Edit.png 704w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/a><\/p>\n<h2>PINOUT<\/h2>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\">\n<tbody>\n<tr>\n<td>Pin<\/td>\n<td>Name<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Ground<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>5v Power<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Contrast Voltage (10K Pot in our case)<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>R\/S &#8211; Register Select (select between data or command register)<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>R\/W &#8211; Read\/Write (Select if reading or writing)<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>EN &#8211; Enable line<\/td>\n<\/tr>\n<tr>\n<td>7-14<\/td>\n<td>We are in 4-bit mode so we only use pins 11-14<\/td>\n<\/tr>\n<tr>\n<td>15-16<\/td>\n<td>Back-light power (In our case 5v LED BL)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The LCD display in question is based on the very popular HD44780 controller. The Arduino platform has plenty of support for this controller and a library for its use is included with the Arduino IDE. The LCD will be driven in its 4-bit operation mode which requires the least pins. The 4-bit mode works by sending one nibble (4-bits) at a time to construct the entire byte. The display also has a character rom which simplifies [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[32],"tags":[34,35,41],"class_list":["post-344","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightive-reactive-lighting-system","tag-arduino","tag-atmel","tag-hd44780"],"_links":{"self":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":14,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":581,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions\/581"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=\/wp\/v2\/media\/473"}],"wp:attachment":[{"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/louisc.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}