{"id":932,"date":"2024-02-05T08:00:00","date_gmt":"2024-02-05T07:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=932"},"modified":"2023-10-16T10:57:35","modified_gmt":"2023-10-16T08:57:35","slug":"arduino-led-matrix-3","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2024\/02\/05\/arduino-led-matrix-3\/","title":{"rendered":"Arduino LED-Matrix 3"},"content":{"rendered":"\n<p>Ziel von Projekt 23 ist es, einen Smiley auf die LED-Matrix zu zaubern.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Vorbereitungen:<\/strong><\/p>\n\n\n\n<p>F\u00fcr dieses Projekt werden folgende Bauteile ben\u00f6tigt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.reichelt.de\/experimentier-slide-steckboard-640-200-kontakte-steckboard-s8-p177330.html?CCOUNTRY=445&amp;LANGUAGE=de&amp;trstct=pos_12&amp;nbc=1&amp;&amp;r=1\">Steckboard<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.reichelt.de\/entwicklerboards-kabel-set-verschiedene-laengen-65er-pack--debo-kabelset18-p282690.html?PROVID=2788&amp;gclid=EAIaIQobChMI5Mqvt8jp-wIVUASLCh1ozQTZEAQYAiABEgK1X_D_BwE\">Kabelset f\u00fcr Entwicklerboards<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.tme.eu\/de\/details\/kwm-20881abb\/led-matrix-displays\/luckylight\/\">LED-Matrix<\/a> mit gemeinsamer Anode<\/li>\n\n\n\n<li><a href=\"https:\/\/www.reichelt.de\/shift-register-3-state-ausgang-2--6-v-dil-16-74hc-595-p3269.html?CCOUNTRY=445&amp;LANGUAGE=de&amp;trstct=pos_0&amp;nbc=1&amp;&amp;r=1\">Schieberegister 74 HC595<\/a> (2x)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.reichelt.de\/widerstand-metalloxidschicht-560-ohm-0414-2-w-5--2w-metall-560-p2360.html?CCOUNTRY=445&amp;LANGUAGE=de&amp;trstct=pos_4&amp;nbc=1&amp;&amp;r=1\">560 Ohm Widerst\u00e4nde<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Schaltungsaufbau:<\/strong><\/p>\n\n\n\n<p>Abh\u00e4ngig davon ob eine LED-Matrix mit gemeinsamer Anode oder gemeinsamer Kathode genutzt wird, gilt es den Schaltungsaufbau anzupassen.<\/p>\n\n\n\n<p><strong>Programmierung:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define DATA 6 \/\/ Verbindung mit Pin 14 am 74HC595\n#define LATCH 8 \/\/ Verbindung mit Pin 12 am 74HC595\n#define CLOCK 10 \/\/ Verbindung mit Pin 11 am 74HC595\n\nbyte smile&#91;] = {B00000000, B00000110, B01000110, B00000000, B00011000, B00000000, B11000011, B01111110};\n\nint binary&#91;] = {1, 2, 4, 8, 16, 32, 64, 128};\n\nvoid setup()\n{\npinMode(LATCH, OUTPUT);\npinMode(CLOCK, OUTPUT);\npinMode(DATA, OUTPUT);\n}\n\nvoid loop()\n{\nint i;\nfor (i = 0 ; i &lt; 8 ; i++)\n{\ndigitalWrite(LATCH, LOW);\nshiftOut(DATA, CLOCK, LSBFIRST, smile&#91;i]);\nshiftOut(DATA, CLOCK, MSBFIRST, ~binary&#91;i]);\ndigitalWrite(LATCH, HIGH);\ndelay(1);\n}\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ziel von Projekt 23 ist es, einen Smiley auf die LED-Matrix zu zaubern.<\/p>\n","protected":false},"author":1,"featured_media":48,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[22],"class_list":["post-932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-arduino-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=932"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/932\/revisions"}],"predecessor-version":[{"id":933,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/932\/revisions\/933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/48"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}