{"id":3727,"date":"2021-03-23T20:04:27","date_gmt":"2021-03-23T20:04:27","guid":{"rendered":"http:\/\/rodmilstead.com\/pt\/?page_id=3727"},"modified":"2025-03-11T15:47:42","modified_gmt":"2025-03-11T15:47:42","slug":"arduino-lcd-display","status":"publish","type":"page","link":"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-lcd-display\/","title":{"rendered":"Arduino &#038; LCD Display"},"content":{"rendered":"<p>This circuit and program is all in Tinkercad &#8211; no &#8220;real&#8221; Arduino needed.<\/p>\n<p><a href=\"https:\/\/youtu.be\/YqkHU2ACOko\" target=\"_blank\" rel=\"noopener\">Click here for an assignment description.\u00a0 It&#8217;s pretty exciting.\u00a0<\/a><\/p>\n<p>In this assignment you will create a circuit in Tinkercad that uses an:<br \/>\nArduino<br \/>\nbreadboard<br \/>\n220 ohm resistor (red, red, brown stripes)<br \/>\nan LCD display<br \/>\nwires as needed<\/p>\n<p><strong>Part 1:<br \/>\nFollow the screenshot<\/strong> to build your circuit then scroll down to see the sample code.\u00a0 <span style=\"color: #339966;\"><span style=\"color: #ff6600;\">Please<\/span> <span style=\"color: #008000;\">color <span style=\"color: #ff00ff;\">code<\/span><\/span> <span style=\"color: #3366ff;\">your<\/span> <span style=\"color: #993300;\">wires.<\/span><\/span> Then enter the code shown in the screenshot below.\u00a0 Test it.\u00a0 <a href=\"https:\/\/youtu.be\/ufZmUe6TPYQ\" target=\"_blank\" rel=\"noopener\">Click here to learn about programming your Arduino LCD circuit.<\/a><\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.37-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3728 aligncenter\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.37-PM.png\" alt=\"\" width=\"845\" height=\"461\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.37-PM.png 845w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.37-PM-300x164.png 300w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.37-PM-768x419.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.58-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3730 aligncenter\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.58-PM.png\" alt=\"\" width=\"372\" height=\"265\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.58-PM.png 372w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-23-at-12.56.58-PM-300x214.png 300w\" sizes=\"auto, (max-width: 372px) 100vw, 372px\" \/><\/a><\/p>\n<p><strong>Part 2:<\/strong><br \/>\nAfter you have built the circuit and program do the following &#8211; <span style=\"color: #ff0000;\"><strong>this is the circuit that you will submit for the assignment<\/strong><\/span>:<\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-6695\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM-1024x811.png\" alt=\"\" width=\"660\" height=\"523\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM-1024x811.png 1024w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM-300x238.png 300w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM-768x608.png 768w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM.png 1454w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a> <a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/2025-LCD-blink-LED-1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6698\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/2025-LCD-blink-LED-1.gif\" alt=\"\" width=\"600\" height=\"338\" \/><\/a><br \/>\n1. modify your circuit to include an LED.\u00a0 <a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-11-at-8.03.39-AM.png\" target=\"_blank\" rel=\"noopener\">Click here for a sample circuit.\u00a0<\/a><br \/>\n2. modify your program to make the LED turn on for a second and then turn OFF for a second.\u00a0 Add a one second delay between the LED ON and the LED OFF.\u00a0 <a href=\"http:\/\/rodmilstead.com\/pt\/arduino-blink-using-123d-circuits\/\" target=\"_blank\" rel=\"noopener\">Here&#8217;s a link to the basics of wiring and programming an LED.\u00a0<\/a><br \/>\n3. Program the display to display your name then &#8220;LED ON&#8221; or &#8220;LED OFF&#8221; when the LED is on or off.<br \/>\n<strong>HINT:<\/strong> look at the order of the code that makes the LED blink and the LCD display. Like this:<br \/>\nshow your name<br \/>\nwait a half a second<br \/>\nLED on<br \/>\nLCD display &#8220;red on&#8221;<br \/>\nwait a half a second<br \/>\nLCD off<br \/>\nLCD display &#8220;red off&#8221;<br \/>\nwait a half a second<\/p>\n<p>4. Please color code your wires.<br \/>\n<strong>HINT: use lcd.clear() to erase the text on the display before the next message appears.<\/strong><\/p>\n<p>You will turn in a Tinkercad link for your completed assignment.\u00a0 Here&#8217;s how to generate the link: <a href=\"http:\/\/rodmilstead.com\/pt\/subtcad\/\" target=\"_blank\" rel=\"noopener\">http:\/\/rodmilstead.com\/pt\/subtcad\/<\/a><\/p>\n<p><strong>Resources:<\/strong><br \/>\n<strong>lcd.setCursor (0,0)<\/strong> sets the cursor position. The first number is the column and the second number is the row.\u00a0 So lcd,setCursor(2,0) would start in the first row, third column because the columns and rows start at 0. They correspond to this diagram:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4628\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/01\/lcd-coordinate-1024x460.jpg\" alt=\"\" width=\"660\" height=\"296\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/01\/lcd-coordinate-1024x460.jpg 1024w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/01\/lcd-coordinate-300x135.jpg 300w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/01\/lcd-coordinate-768x345.jpg 768w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2023\/01\/lcd-coordinate.jpg 1444w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This circuit and program is all in Tinkercad &#8211; no &#8220;real&#8221; Arduino needed. Click here for an assignment description.\u00a0 It&#8217;s pretty exciting.\u00a0 In this assignment you will create a circuit in Tinkercad that uses an: Arduino breadboard 220 ohm resistor (red, red, brown stripes) an LCD display wires as needed Part 1: Follow the screenshot &hellip; <a href=\"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-lcd-display\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino &#038; LCD Display<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":183,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3727","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=3727"}],"version-history":[{"count":19,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3727\/revisions"}],"predecessor-version":[{"id":6699,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3727\/revisions\/6699"}],"up":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/183"}],"wp:attachment":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=3727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}