{"id":3,"date":"2011-06-17T10:22:41","date_gmt":"2011-06-17T09:22:41","guid":{"rendered":"http:\/\/www.hman-projects.de\/?p=3"},"modified":"2011-07-11T08:06:10","modified_gmt":"2011-07-11T07:06:10","slug":"pollin-wdc2704-display-am-arduino","status":"publish","type":"post","link":"http:\/\/www.hman-projects.de\/?p=3","title":{"rendered":"Pollin WDC2704 Display am Arduino im 4 Bit-Mode"},"content":{"rendered":"<p>Hallo zusammen, da ich nun selbst das Problem l\u00f6sen konnte, hier die Anleitung f\u00fcr die Nachwelt.<br \/>\nBei Pollin gab es mal das WDC2740 Display preiswert zu kaufen.<br \/>\nEine einfache Ansteuerung des Displays \u00fcber die LCDLib und 4 Bit scheiterte im ersten Anlauf.<\/p>\n<p>L\u00f6sung: Das Display ist intern 2 Displays , die Anschlussleitungen m\u00fcssen sehr kurz gehalten werden, Datenleitungen und RS \u00fcber 100Ohm entkoppeln, Initialisierung als 40&#215;2-Display, obwohl nur 27&#215;2 sichtbar sind&#8230;.. viele Stolperfallen eben.<\/p>\n<p>Hier die Beschaltung:<\/p>\n<p>LCD \/ Arduino<\/p>\n<p>R\/W auf Masse direkt am Display<br \/>\nLCD RS \u00fcber 100R auf Arduino D13<br \/>\nLCD ENA2 auf Arduino D12<br \/>\nLCD ENA1 auf Arduino D11<br \/>\nLCD D07 \u00fcber 100R auf Arduino D10<br \/>\nLCD D06 \u00fcber 100R auf Ardiono D09<br \/>\nLCD D05 \u00fcber 100R auf Arduino D08<br \/>\nLCD D04 \u00fcber 100R auf Ardiono D07<\/p>\n<p>Ansteuerung dann:<\/p>\n<p>#include &lt;LiquidCrystal.h&gt;<br \/>\n\/\/ we need 2 LCD-Instances<br \/>\nLiquidCrystal lcd1(13, 11, 7,8,9,10);<br \/>\nLiquidCrystal lcd2(13, 12, 7,8,9,10);<\/p>\n<p>void setup() {<br \/>\n\/\/ set up the LCD&#8217;s number of columns and rows:<br \/>\n\/\/ Internally they are 40&#215;2 controlers, but the physical display is 27&#215;2<br \/>\nlcd1.begin(40, 2);<br \/>\nlcd2.begin(40, 2);<br \/>\n\/\/ Print a message to the LCD.<br \/>\ndelay(1000);<br \/>\nlcd1.print(&#8222;LCD1 Hello World&#8220;);<br \/>\ndelay(2);<br \/>\nlcd2.print(&#8222;LCD2 Hello World, too&#8220;);<br \/>\ndelay(2);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n\/\/ set the cursor to column 0, line 1<br \/>\n\/\/ (note: line 1 is the second row, since counting begins with 0):<br \/>\nlcd1.setCursor(0, 1);<br \/>\n\/\/ print the number of seconds since reset:<br \/>\nlcd1.print(&#8222;LCD1 &#8220; + String (millis()\/1000));<\/p>\n<p>lcd2.setCursor(0, 1);<br \/>\nlcd2.print(&#8222;LCD2 &#8220; + String (millis()\/1000) );<br \/>\ndelay(20);<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hallo zusammen, da ich nun selbst das Problem l\u00f6sen konnte, hier die Anleitung f\u00fcr die Nachwelt. Bei Pollin gab es mal das WDC2740 Display preiswert zu kaufen. Eine einfache Ansteuerung des Displays \u00fcber die LCDLib und 4 Bit scheiterte im ersten Anlauf. L\u00f6sung: Das Display ist intern 2 Displays , die Anschlussleitungen m\u00fcssen sehr kurz [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4,3],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-arduino","tag-wdc2704"],"_links":{"self":[{"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=\/wp\/v2\/posts\/3"}],"collection":[{"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"}],"version-history":[{"count":6,"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions"}],"predecessor-version":[{"id":8,"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions\/8"}],"wp:attachment":[{"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hman-projects.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}