{"id":194,"date":"2014-09-28T01:42:55","date_gmt":"2014-09-28T08:42:55","guid":{"rendered":"http:\/\/ismellsmoke.net\/\/?p=194"},"modified":"2014-09-28T04:29:21","modified_gmt":"2014-09-28T11:29:21","slug":"hacking-a-bv4618-20x4-lcd-part-2","status":"publish","type":"post","link":"https:\/\/ismellsmoke.net\/?p=194","title":{"rendered":"Hacking a BV4618 20&#215;4 LCD (Part-2)"},"content":{"rendered":"<p>In <a href=\"https:\/\/ismellsmoke.net\/\/?p=180\" target=\"_blank\">Part-1<\/a> of this blog post series Ol&#8217; Sopwith described the <em>ByVac<\/em> <em>BV4618<\/em> LCD and how to wire it up to an Arduino Uno. If you are interested in how to program an Arduino to talk to this LCD, pull up a chair and let&#8217;s get started.<\/p>\n<p>I wrote up a detailed implementation guide for the <em>BV4618<\/em> LCD that walks through the entire process to get the LCD into one of your cool Arduino projects. If you are new to the Arduino and want a quick guide on how to setup the developer IDE you can follow this guide.<\/p>\n<div id=\"attachment_207\" style=\"width: 222px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2014\/09\/Snap38.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-207\" class=\"wp-image-207 size-medium\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2014\/09\/Snap38-212x300.jpg\" alt=\"Arduino 'How-To' Series\" width=\"212\" height=\"300\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2014\/09\/Snap38-212x300.jpg 212w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2014\/09\/Snap38.jpg 483w\" sizes=\"auto, (max-width: 212px) 100vw, 212px\" \/><\/a><p id=\"caption-attachment-207\" class=\"wp-caption-text\">Arduino &#8216;How-To&#8217; Series<\/p><\/div>\n<p><center><div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><a href=\"https:\/\/ismellsmoke.net\/?sdm_process_download=1&download_id=215\" class=\"sdm_download green\" title=\"Arduino &#8216;How-To&#8217; &#8211; BV4618 Implementation Guide\" target=&quot;_blank&quot;>Download &#039;How-To&#039;<\/a><\/div><\/div><\/center><center><\/center><center><\/center>\u00a0<!--more--><\/p>\n<p>If you are an experienced Arduino hacker and just want to know how to wire-up an Arduino to the <em>Bv4618 <\/em>LCD, below is a wiring diagram:<\/p>\n<div id=\"attachment_217\" style=\"width: 226px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2014\/09\/Snap1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-217\" class=\"wp-image-217 size-medium\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2014\/09\/Snap1-216x300.jpg\" alt=\"Arduino - BV4618 Wiring\" width=\"216\" height=\"300\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2014\/09\/Snap1-216x300.jpg 216w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2014\/09\/Snap1.jpg 506w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/><\/a><p id=\"caption-attachment-217\" class=\"wp-caption-text\">Arduino &#8211; BV4618 Wiring<\/p><\/div>\n<p>If you only want to write to the LCD and have no desire to read from it &#8211; you can eliminate the Rx wire. This means you have a fully functioning 4&#215;20 LCD using three wires. How cool is that? If you do this be sure to occasionally call the flush() function. If you do not do this the communication buffer will overflow and your program will behave erratically.<\/p>\n<p>Here is the link to the ByVac<a title=\"ByVac BV4618 datasheet\" href=\"http:\/\/www.byvac.co.uk\/downloads\/datasheets\/BV4618%20DataSheet.pdf\" target=\"_blank\"> BV4618 datasheet<\/a><br \/>\nHere is a link to the ByVac <a title=\"BV4618 Arduino library\" href=\"http:\/\/www.byvac.com\/downloads\/bv4618\/BV4618_lcdkey_arduino_lib.zip\" target=\"_blank\">BV4618 Arduino library<\/a><\/p>\n<p>Here is the source code to my simple HelloWorld_BV4618 sketch.<\/p>\n<div id=\"attachment_233\" style=\"width: 431px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2014\/09\/HelloWorld.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-233\" class=\"wp-image-233 size-full\" src=\"https:\/\/ismellsmoke.net\/\/wp-content\/uploads\/2014\/09\/HelloWorld.jpg\" alt=\"Hello_BV4618 Sketch\" width=\"421\" height=\"495\" srcset=\"https:\/\/ismellsmoke.net\/wp-content\/uploads\/2014\/09\/HelloWorld.jpg 421w, https:\/\/ismellsmoke.net\/wp-content\/uploads\/2014\/09\/HelloWorld-255x300.jpg 255w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/a><p id=\"caption-attachment-233\" class=\"wp-caption-text\">Hello_BV4618 Sketch<\/p><\/div>\n<p><center><div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><a href=\"https:\/\/ismellsmoke.net\/?sdm_process_download=1&download_id=236\" class=\"sdm_download green\" title=\"Hello_BV4618 Sketch\" target=&quot;_blank&quot;>Download Sketch<\/a><\/div><\/div><\/center><center><\/center><center><\/center>&nbsp;<\/p>\n<p>You can download the source code by clicking on the above button. The sketch is contained in a text file. Simply rename the .txt extension to .ino and save it in a new sketch folder named Hello_BV4618.<\/p>\n<p>Hack the World!<\/p>\n<p><em>Sopwith<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Part-1 of this blog post series Ol&#8217; Sopwith described the ByVac BV4618 LCD and how to wire it up to an Arduino Uno. If you are interested in how to program an Arduino to talk to this LCD, pull &hellip; <a href=\"https:\/\/ismellsmoke.net\/?p=194\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,6],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-arduino","category-general","category-how-to"],"_links":{"self":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":38,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":274,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions\/274"}],"wp:attachment":[{"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ismellsmoke.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}