{"id":14757,"date":"2016-12-30T23:30:09","date_gmt":"2016-12-30T22:30:09","guid":{"rendered":"http:\/\/www.michael-floessel.de\/mfblog\/?p=14757"},"modified":"2019-10-26T08:46:12","modified_gmt":"2019-10-26T06:46:12","slug":"kleine-led-spielerei-mit-rgb-leuchtdioden","status":"publish","type":"post","link":"https:\/\/www.michael-floessel.de\/mfblog\/kleine-led-spielerei-mit-rgb-leuchtdioden\/","title":{"rendered":"Kleine LED-Spielerei mit RGB-Leuchtdioden"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-14762\" src=\"http:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2016\/12\/ledchanger.gif\" alt=\"\" width=\"320\" height=\"180\" \/>Kleine Elektronik\u00fcbung am Rande <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_wink.gif\" alt=\";-)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Das Video unten ist eigentlich eher eine Katastrophe, weder sind die Farben gut getroffen, noch ist beim realen Aufbau ein Flackern zu sehen, besser will es die Kamera auch mit Tricks nicht darstellen&#8230; Ich denke aber, um die Arbeitsweise zu illustrieren reicht&#8217;s doch. Urspr\u00fcnglich wollte ich noch nicht einmal einen Blogbeitrag aus dem Ganzen machen, irgendwie ist&#8217;s aber nun doch einer geworden <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_smile.gif\" alt=\":-)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/yINTSrcJsLk\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Man nehme:<\/p>\n<p>1 x <a href=\"http:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-2-und-pic-12f675\/\" target=\"_blank\" rel=\"noopener noreferrer\">PIC 12F675<\/a><\/p>\n<p>1 x RGB LED (OK, ich hab 3 parallel, mit jeweils eigenem Vorwiderstand)<\/p>\n<p>Passende Vorwiderst\u00e4nde f\u00fcr die LED<\/p>\n<p>Ein bisschen elektronischen Kleinkram und irgendeinen durchsichtigen Staubf\u00e4nger aus dem Haushalt <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_mrgreen.gif\" alt=\":mrgreen:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>Falls jemand den Nachbau startet:<\/p>\n<p>Die Leuchtdioden kommen an die Ports\u00a0GPIO4, GPIO1 und\u00a0GPIO0. Welche Farbe an welchen Port ist egal, es kommen alle gleichberechtigt zum Zuge, nur der Farbverlauf \u00e4ndert sich nat\u00fcrlich.<\/p>\n<p>Hier der .hex-File als .zip Datei (<strong><a href=\"http:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2016\/12\/12f675.zip\">12f675<\/a><\/strong>). Config NICHT enthalten, muss beim Brennen festgelegt werden. Interner RC\/No Clock, alles andere OFF.<\/p>\n<p>Habe meinem Fall hier die unten an 3. Stelle beworbenen RGB-LED genutzt, Vorwiderstand 220 Ohm f\u00fcr Gr\u00fcn und Blau, 180 Ohm f\u00fcr Rot. Jeweils eine einzelne Leuchtdiode pro Farbe geht auch, andere Farben nach Geschmack, ist ja nur eine kleine Spielerei mit Licht und Farbe.<\/p>\n<p>Da nur 3 Leuchtdioden (bei Beachtung des Gesamtstromes geht nat\u00fcrlich mehr, dazu findet sich auch <a href=\"http:\/\/www.michael-floessel.de\/mfblog\/berechnung-led-vorwiderstand\/\" target=\"_blank\" rel=\"noopener noreferrer\">an anderen stellen im Blog<\/a> etwas!) angesteuert werden, habe ich keine gro\u00dfe Dokumentation erstellt. Einfach Controller im Standardaufbau mit Pullup von 10k an Pin 4 und die Leuchtdioden \u00fcber jeweils einen Vorwiderstand vom Output-Pin gegen Masse verbauen, Aktiv = High. 100nF St\u00fctzkondensator f\u00fcr den PIC nicht vergessen, versorgt wird mit 5V. Bei voller Ansteuerung aller LED sind unter 80mA in meinem Aufbau zu erwarten, das schafft so ziemlich jedes alte Netzteil, stabilisiert sollte es allerdings sein. Progammtechnisch stellt der Ablauf eine st\u00e4ndig wechselnde PWM dar, so wird nur sehr selten der maximale Strom erreicht.<\/p>\n<p>Wie gesagt, kleine Spielerei am Rande, eigentlich wollte ich nur sehen, was die RGB-LED, mit denen ich vollauf zufrieden bin, so leisten. Nachbau wie immer auf eigene Verantwortung <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_wink.gif\" alt=\";-)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>Related posts:<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 4;--relposth-columns_t: 3; --relposth-columns_m: 2\"><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/nostalgie-und-pic-programmierung\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2026\/04\/the-joker-pic-4-michael-floessel.de_.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">Nostalgie und PIC Programmierung<\/h4><\/div><\/div><\/a><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/3d-drucker-neues-aus-erfurt-heise-online\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2026\/04\/the-joker-pic-4-michael-floessel.de_.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">3D-Drucker: Neues aus Erfurt | heise online<\/h4><\/div><\/div><\/a><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/nachtrag-radio-adapter-ford-fiesta-mk5-auf-iso\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2014\/02\/Ford_Fiest_Futura.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">Nachtrag: Radio Adapter Ford Fiesta MK5 auf ISO<\/h4><\/div><\/div><\/a><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/vongestern-blog-der-mercedes-der-zukunft-1979\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2026\/04\/the-joker-pic-4-michael-floessel.de_.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">vongestern Blog: Der Mercedes der Zukunft (1979)<\/h4><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Kleine Elektronik\u00fcbung am Rande &nbsp; Das Video unten ist eigentlich eher eine Katastrophe, weder sind die Farben gut getroffen, noch ist beim realen Aufbau ein Flackern zu sehen, besser will es die Kamera auch mit Tricks nicht darstellen&#8230; Ich denke &hellip; <a href=\"https:\/\/www.michael-floessel.de\/mfblog\/kleine-led-spielerei-mit-rgb-leuchtdioden\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":11798,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,2269,18,6,14],"tags":[29,2294,2967,2968,43,938,41,2966,131,2969],"class_list":["post-14757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elektronik","category-pic-12f675","category-programmierung","category-rumgebastel","category-technik","tag-12f675","tag-assembler","tag-farb","tag-frabwechsler","tag-led","tag-mikrocontroller","tag-pic","tag-rgb","tag-wechsel","tag-c"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/posts\/14757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/comments?post=14757"}],"version-history":[{"count":0,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/posts\/14757\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/media\/11798"}],"wp:attachment":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/media?parent=14757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/categories?post=14757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/tags?post=14757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}