{"id":934,"date":"2024-02-19T08:00:00","date_gmt":"2024-02-19T07:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=934"},"modified":"2023-10-16T11:01:28","modified_gmt":"2023-10-16T09:01:28","slug":"arduino-led-matrix-4","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2024\/02\/19\/arduino-led-matrix-4\/","title":{"rendered":"Arduino LED-Matrix 4"},"content":{"rendered":"\n<p>Ziel von Projekt 24 ist es den Smiley aus dem vorherigen Projekt auf der LED-Matrix zu animieren.<\/p>\n\n\n\n<p>Das Gesicht wird schrittweise nach rechts aus der Matrix geschoben\u2026<\/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 a, hold, shift;\nfor ( shift = 0 ; shift &lt; 9 ; shift++)\n{\nfor (hold = 0; hold &lt; 25 ; hold++)\n{\nfor (a = 0; a &lt; 8 ; a++)\n{\ndigitalWrite(LATCH, LOW);\nshiftOut(DATA, CLOCK, LSBFIRST, smile&#91;a]>>shift);\nshiftOut(DATA, CLOCK, MSBFIRST, ~binary&#91;a]);\ndigitalWrite(LATCH, HIGH);\ndelay(1);\n}\n}\n}\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ziel von Projekt 24 ist es den Smiley aus dem vorherigen Projekt auf der LED-Matrix zu animieren. Das Gesicht wird schrittweise nach rechts aus der Matrix geschoben\u2026<\/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-934","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\/934","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=934"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/934\/revisions"}],"predecessor-version":[{"id":935,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/934\/revisions\/935"}],"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=934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}