{"id":1968,"date":"2012-02-12T15:17:27","date_gmt":"2012-02-12T14:17:27","guid":{"rendered":"http:\/\/www.gunnarherrmann.de\/blog\/?p=1968"},"modified":"2012-10-20T11:51:44","modified_gmt":"2012-10-20T09:51:44","slug":"rgb-led-mit-arduino-steuern","status":"publish","type":"post","link":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/","title":{"rendered":"RGB LED mit Arduino steuern"},"content":{"rendered":"<div id=\"attachment_1970\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1970\" src=\"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine.jpg?resize=300%2C231\" alt=\"RGB\" title=\"RGB_LED durchschalten_Steckplatine\" width=\"300\" height=\"231\" class=\"size-medium wp-image-1970\" srcset=\"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine.jpg?resize=300%2C231 300w, https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine.jpg?resize=1024%2C788 1024w, https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine.jpg?w=1237 1237w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-1970\" class=\"wp-caption-text\">RGB<\/p><\/div>\n<p><a href=\"http:\/\/www.gunnarherrmann.de\/blog\/pinbelegung-led-full-color-rgb\/\">Infos zu LED<\/a><\/p>\n<p><strong>Code<\/strong><\/p>\n<p><em>int blue=13;<br \/>\nint green=12;<br \/>\nint red=11;<br \/>\n\/\/Den drei Farbe werden die Nummer f\u00fcr die DigitalPorts zugeweisen<\/p>\n<p>void setup() {<br \/>\n pinMode(blue, OUTPUT);<br \/>\n pinMode(green, OUTPUT);<br \/>\n pinMode(red, OUTPUT);<br \/>\n \/\/Die drei Digitalports werden auf Ausgabe gesetzt<br \/>\n }<\/p>\n<p>void loop() {<br \/>\n  digitalWrite(red, HIGH);<br \/>\n  digitalWrite(green, LOW);<br \/>\n  digitalWrite(blue, LOW);<br \/>\n  \/\/ Rot ist an, die anderen Farben aus<br \/>\ndelay(1000);<br \/>\n\/\/1000ms anzeigen, dann n\u00e4chste Farbphase<br \/>\n  digitalWrite(blue, LOW);<br \/>\n  digitalWrite(green, HIGH);<br \/>\n  digitalWrite(red, LOW);<br \/>\n  \/\/Gr\u00fcn ist an, die anderen Farben aus<br \/>\ndelay(1000);<br \/>\n  digitalWrite(blue, HIGH);<br \/>\n  digitalWrite(green, LOW);<br \/>\n  digitalWrite(red, LOW);<br \/>\n  \/\/Blau ist an, die anderen Farben aus<br \/>\ndelay(1000);<br \/>\n}<\/em><\/p>\n<h2>Download<\/h2>\n<p><a href=\"http:\/\/www.gunnarherrmann.de\/download\/RGB_LED_v_0_2.ino\">RGB_LED_v_0_2.ino<\/a><\/p>\n<h2>Links<\/h2>\n<p><a href=\"http:\/\/www.amazon.de\/gp\/product\/B006H06TVG\/ref=as_li_ss_tl?ie=UTF8&#038;tag=gunnblog-21&#038;linkCode=as2&#038;camp=1638&#038;creative=19454&#038;creativeASIN=B006H06TVG\">Arduino Uno bei Amazon<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.assoc-amazon.de\/e\/ir?t=gunnblog-21&#038;l=as2&#038;o=3&#038;a=B006H06TVG\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Infos zu LED Code int blue=13; int green=12; int red=11; \/\/Den drei Farbe werden die Nummer f\u00fcr die DigitalPorts zugeweisen void setup() { pinMode(blue, OUTPUT); pinMode(green, OUTPUT); pinMode(red, OUTPUT); \/\/Die drei Digitalports werden auf Ausgabe gesetzt } void loop() { &hellip; <a href=\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[12],"tags":[38,187],"class_list":["post-1968","post","type-post","status-publish","format-standard","hentry","category-hardware","tag-arduino","tag-rgb-led"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RGB LED mit Arduino steuern<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RGB LED mit Arduino steuern\" \/>\n<meta property=\"og:description\" content=\"Infos zu LED Code int blue=13; int green=12; int red=11; \/\/Den drei Farbe werden die Nummer f\u00fcr die DigitalPorts zugeweisen void setup() { pinMode(blue, OUTPUT); pinMode(green, OUTPUT); pinMode(red, OUTPUT); \/\/Die drei Digitalports werden auf Ausgabe gesetzt } void loop() { &hellip; Weiterlesen &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/\" \/>\n<meta property=\"og:site_name\" content=\"Gunnars Blog\" \/>\n<meta property=\"article:published_time\" content=\"2012-02-12T14:17:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-10-20T09:51:44+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine-300x231.jpg\" \/>\n<meta name=\"author\" content=\"Gunnar\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gunnar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/\",\"url\":\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/\",\"name\":\"RGB LED mit Arduino steuern\",\"isPartOf\":{\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/#website\"},\"datePublished\":\"2012-02-12T14:17:27+00:00\",\"dateModified\":\"2012-10-20T09:51:44+00:00\",\"author\":{\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/#\/schema\/person\/e331587b1d5e92c5aa8d462aee10d313\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.gunnarherrmann.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RGB LED mit Arduino steuern\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/#website\",\"url\":\"http:\/\/www.gunnarherrmann.de\/blog\/\",\"name\":\"Gunnars Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.gunnarherrmann.de\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/#\/schema\/person\/e331587b1d5e92c5aa8d462aee10d313\",\"name\":\"Gunnar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"http:\/\/www.gunnarherrmann.de\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/082545518fa146361de48cf232262c9677f3aaeecf33c318963cca4efc88253d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/082545518fa146361de48cf232262c9677f3aaeecf33c318963cca4efc88253d?s=96&d=mm&r=g\",\"caption\":\"Gunnar\"},\"sameAs\":[\"http:\/\/www.gunnarherrmann.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RGB LED mit Arduino steuern","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/","og_locale":"de_DE","og_type":"article","og_title":"RGB LED mit Arduino steuern","og_description":"Infos zu LED Code int blue=13; int green=12; int red=11; \/\/Den drei Farbe werden die Nummer f\u00fcr die DigitalPorts zugeweisen void setup() { pinMode(blue, OUTPUT); pinMode(green, OUTPUT); pinMode(red, OUTPUT); \/\/Die drei Digitalports werden auf Ausgabe gesetzt } void loop() { &hellip; Weiterlesen &rarr;","og_url":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/","og_site_name":"Gunnars Blog","article_published_time":"2012-02-12T14:17:27+00:00","article_modified_time":"2012-10-20T09:51:44+00:00","og_image":[{"url":"http:\/\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/RGB_LED-durchschalten_Steckplatine-300x231.jpg"}],"author":"Gunnar","twitter_misc":{"Verfasst von":"Gunnar","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/","url":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/","name":"RGB LED mit Arduino steuern","isPartOf":{"@id":"http:\/\/www.gunnarherrmann.de\/blog\/#website"},"datePublished":"2012-02-12T14:17:27+00:00","dateModified":"2012-10-20T09:51:44+00:00","author":{"@id":"http:\/\/www.gunnarherrmann.de\/blog\/#\/schema\/person\/e331587b1d5e92c5aa8d462aee10d313"},"breadcrumb":{"@id":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.gunnarherrmann.de\/blog\/rgb-led-mit-arduino-steuern\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.gunnarherrmann.de\/blog\/"},{"@type":"ListItem","position":2,"name":"RGB LED mit Arduino steuern"}]},{"@type":"WebSite","@id":"http:\/\/www.gunnarherrmann.de\/blog\/#website","url":"http:\/\/www.gunnarherrmann.de\/blog\/","name":"Gunnars Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.gunnarherrmann.de\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Person","@id":"http:\/\/www.gunnarherrmann.de\/blog\/#\/schema\/person\/e331587b1d5e92c5aa8d462aee10d313","name":"Gunnar","image":{"@type":"ImageObject","inLanguage":"de","@id":"http:\/\/www.gunnarherrmann.de\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/082545518fa146361de48cf232262c9677f3aaeecf33c318963cca4efc88253d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/082545518fa146361de48cf232262c9677f3aaeecf33c318963cca4efc88253d?s=96&d=mm&r=g","caption":"Gunnar"},"sameAs":["http:\/\/www.gunnarherrmann.de"]}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pyBmm-vK","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":236,"url":"http:\/\/www.gunnarherrmann.de\/blog\/arduino-physical-computing-fur-bastler-designer-geeks\/","url_meta":{"origin":1968,"position":0},"title":"Arduino Physical Computing f\u00fcr Bastler, Designer &#038; Geeks","date":"21. September 2009","format":false,"excerpt":"Der Programmcode auf Seite 90 des Buchs Arduino- Physical Computing f\u00fcr Bastler, Designer und Geeks ist leider fehlerhaft. Das Programm l\u00e4uft bei mir erst, wenn ich eine Zeile l\u00f6sche und eine andere daf\u00fcr einf\u00fcge. int ledPinRot = 13; int ledPinGruen = 12; int schalter = 2; void setup() { pinMode(ledPinRot,\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1044,"url":"http:\/\/www.gunnarherrmann.de\/blog\/lichtsensor-fur-den-arduino\/","url_meta":{"origin":1968,"position":1},"title":"Lichtsensor f\u00fcr den Arduino","date":"20. Februar 2011","format":false,"excerpt":"Hardware: Aufbau auf dem Breadboard Software \/* Lichtsensor \u00fcber das serielle Interface auslesen und bei Dunkelheit LED einschalten *\/ int Analog0 = A0; \/\/ Analogen Eingang 0 als Analog0 definieren int helligkeit = 0; \/\/ Variabel helligkeit auf 0 setzen int helldunkelgrenze = 14; \/\/ Grenzwert hell-dunkel void setup() {\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2011\/02\/Arduino_Lichtsensor-248x300.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":249,"url":"http:\/\/www.gunnarherrmann.de\/blog\/arduino-code-aus-arduino-physical-computing\/","url_meta":{"origin":1968,"position":2},"title":"Arduino: Code aus &#8222;Arduino Physical Computing [&#8230;]&#8220;","date":"26. September 2009","format":false,"excerpt":"Nach ein wenig Spielerei hab ich versucht die Schaltung \"Vier LEDs nacheinander blinken lassen\" aufzubauen. Leider sind im abgedruckten Code mehrere Fehler. Meine Grundkenntnisse in Java und C stie\u00dfen dabei fast an ihre Grenzen. Nach knapp einer Stunde habe ich dann die Fehler gefunden. Muss sowas sein bei einem Buch\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3123,"url":"http:\/\/www.gunnarherrmann.de\/blog\/highspeed-fotos-mit-dem-arduino-machen\/","url_meta":{"origin":1968,"position":3},"title":"Highspeed-Fotos mit dem Arduino machen","date":"11. Oktober 2012","format":false,"excerpt":"Der aktuelle Versuch klappt leider (noch) nicht. Der Plan war einen platzenden Ballon zu fotografieren. Dazu hab ich einen Arduino mit Mikrofon und einem Fernausl\u00f6ser f\u00fcr die Canon-Kamera verwendet. Hardware Arduino Breakout Board mit Kondensatormikrofon IR-Leuchtdiode aus einer alten Fernbedienung Widerst\u00e4nde: 100\u2126 und 4k\u2126 Breakout Board mit Kondensatormikrofon Eine Mikrofonkapsel\u2026","rel":"","context":"In &quot;Foto&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/10\/Klatsch_Kamera_Steckplatine-1024x768.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":263,"url":"http:\/\/www.gunnarherrmann.de\/blog\/arduino-led-mit-einem-potentiometer-steuern\/","url_meta":{"origin":1968,"position":4},"title":"Arduino: LED mit einem Potentiometer steuern","date":"5. Oktober 2009","format":false,"excerpt":"Wieder hab ich eine Anleitung aus \"Arduino- Physical Computing f\u00fcr Bastler, Designer und Geeks. oreillys basics.\"[*] nachgebaut. Beim Code gab es wieder einen kleinen Fehler: Der Code int potPin = 0; int ledPin = 9; int potiVal = 0; int loga[64] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,16, 18,20,22,25,28,30,33,36,39,42,46,49,53,56,60,64,68, 72,77,81,86,90,95,100,105,110,116,121,127,132,138, 144,150,156,163,169,176,182,189,196,203,210,218, 225,233,240,248,255}; void setup() {\u2026","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2009\/10\/LED_Poti_Steckplatine-300x235.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1962,"url":"http:\/\/www.gunnarherrmann.de\/blog\/pinbelegung-led-full-color-rgb\/","url_meta":{"origin":1968,"position":5},"title":"Pinbelegung LED Full Color RGB","date":"12. Februar 2012","format":false,"excerpt":"Full-Color RGB-LED 5 mm LF 59 RGB 60 \u00b0 Geh\u00e4useart 5 mm 25\/30\/20 mcd Bestellnummer bei Conrad 185353 - 62 Link http:\/\/www.conrad.de\/ce\/de\/product\/185353\/LED-FULL-COLOR-RGB-DIFFUS\/SHOP_AREA_17326","rel":"","context":"In &quot;Hardware&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gunnarherrmann.de\/blog\/wp-content\/uploads\/2012\/02\/LED-Full-Color-RGB1-300x219.gif?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/posts\/1968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/comments?post=1968"}],"version-history":[{"count":0,"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/posts\/1968\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/media?parent=1968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/categories?post=1968"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gunnarherrmann.de\/blog\/wp-json\/wp\/v2\/tags?post=1968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}