{"id":233,"date":"2017-03-12T17:07:22","date_gmt":"2017-03-12T14:07:22","guid":{"rendered":"https:\/\/www.neyaptik.com\/blog\/?p=233"},"modified":"2017-03-31T00:31:06","modified_gmt":"2017-03-30T21:31:06","slug":"arduinoya-birden-fazla-lcd-takmak","status":"publish","type":"post","link":"https:\/\/www.neyaptik.com\/blog\/arduinoya-birden-fazla-lcd-takmak\/","title":{"rendered":"Arduino&#8217;ya Birden Fazla LCD Takmak"},"content":{"rendered":"<p>Bug\u00fcn internette dola\u015f\u0131rken kar\u015f\u0131ma \u00e7\u0131kan ve \u00e7ok ho\u015fuma giden bir projeydi nedense. Bir Arduino&#8217;ya d\u00f6rt adet <strong>LCD<\/strong> ba\u011flam\u0131\u015f bu arkada\u015f.<\/p>\n<p><strong>Arduino<\/strong> pinleri s\u0131n\u0131rl\u0131 say\u0131da oldu\u011fu i\u00e7in b\u00f6yle bir y\u00f6ntem tabii ki bizim i\u00e7in bir avantaj.<\/p>\n<p>LCD&#8217;lerin Enable pinleri oldu\u011funa g\u00f6re, s\u0131rayla enable edip yaz\u0131lacaklar\u0131 yazabiliriz. Projenin as\u0131l sahibi olan <strong>Thomas Flummer<\/strong>, sorunsuz \u015fekilde \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131 savunuyor. Arduino <strong>LCD<\/strong> k\u00fct\u00fcphanesinin de obje tabanl\u0131 olmas\u0131 sebebiyle &#8220;constructor&#8221; b\u00f6l\u00fcm\u00fcnde her pini tek tek ayarlayabiliyoruz. B\u00f6ylelikle her LCD i\u00e7in <strong>Enable<\/strong> pinini kolayl\u0131kla ay\u0131rabiliyoruz.<\/p>\n<p>Ortak olarak <strong>be\u015f<\/strong> adet pin kullan\u0131lm\u0131\u015f, onun d\u0131\u015f\u0131nda her LCD i\u00e7in bir adet Enable pini ay\u0131rman\u0131z gerekiyor.<\/p>\n<p><span style=\"color: #808080;\"><em>Thomas Flummer&#8217;in LCD Blink \u00f6rne\u011fi \u015fu \u015fekilde:<\/em><\/span><\/p>\n<pre class=\"\">\/\/ 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 lcd1(12, 5, 7, 8, 9, 10);\r\nLiquidCrystal lcd2(12, 4, 7, 8, 9, 10);\r\nLiquidCrystal lcd3(12, 3, 7, 8, 9, 10);\r\nLiquidCrystal lcd4(12, 2, 7, 8, 9, 10);\r\n \r\nvoid setup() {\r\n  \/\/ set up the LCD's number of rows and columns: \r\n  lcd1.begin(16, 2);\r\n  lcd2.begin(16, 2);\r\n  lcd3.begin(16, 2);\r\n  lcd4.begin(16, 2);\r\n \r\n  \/\/ Print a message to the LCD.\r\n  lcd1.print(\"Disp1\");\r\n  lcd2.print(\"Disp2\");\r\n  lcd3.print(\"Disp3\");\r\n  lcd4.print(\"Disp4\");\r\n}\r\n \r\nvoid loop() {\r\n  \/\/ set the cursor to column 0, line 1\r\n  \/\/ (note: line 1 is the second row, since counting begins with 0):\r\n  lcd1.setCursor(0, 1);\r\n  lcd2.setCursor(0, 1);\r\n  lcd3.setCursor(0, 1);\r\n  lcd4.setCursor(0, 1);\r\n \r\n \/\/ print the number of seconds since reset:\r\n  lcd1.print(millis()\/1);\r\n  lcd2.print(millis()\/10);\r\n  lcd3.print(millis()\/100);\r\n  lcd4.print(millis()\/1000);\r\n}\r\n<\/pre>\n<p>Bu projede Arduino&#8217;ya ve LCD&#8217;lere <strong>USB<\/strong> ile g\u00fc\u00e7 verilmi\u015f. Ayr\u0131ca &#8220;<strong>Kontrast<\/strong>&#8221; i\u00e7in potansiyometre \u00e7\u0131k\u0131\u015f\u0131 b\u00fct\u00fcn LCD&#8217;lere paralel ba\u011flanm\u0131\u015ft\u0131r.<\/p>\n<p>K\u0131saca, basit ama kimi durumlarda \u00e7ok gerekli olabilecek tipten bir projeye benziyor.<\/p>\n<h4><em><a href=\"https:\/\/www.neyaptik.com\/proje\/97\/3-pin-ile-arduino-lcd-kontrolu\">Arduino&#8217;da 3 pin ile LCD kontrol\u00fc projesi<\/a><\/em><\/h4>\n<p><strong><em><a href=\"https:\/\/www.hackmeister.dk\/2010\/08\/4-lcd-displays-on-1-arduino\/\">Olay\u0131n Kayna\u011f\u0131<\/a><\/em><\/strong><\/p>\n<p><span style=\"color: #808080;\"><em>Sa\u011fl\u0131cakla kal\u0131n.<\/em><\/span><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Bug\u00fcn internette dola\u015f\u0131rken kar\u015f\u0131ma \u00e7\u0131kan ve \u00e7ok ho\u015fuma giden bir projeydi nedense. Bir Arduino&#8217;ya d\u00f6rt adet LCD ba\u011flam\u0131\u015f bu arkada\u015f. Arduino pinleri s\u0131n\u0131rl\u0131 say\u0131da oldu\u011fu i\u00e7in b\u00f6yle bir y\u00f6ntem tabii ki bizim i\u00e7in bir avantaj&#8230;.<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[105,112,122],"tags":[],"_links":{"self":[{"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/posts\/233"}],"collection":[{"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":6,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/posts\/233\/revisions\/241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/media\/236"}],"wp:attachment":[{"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neyaptik.com\/blog\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}