{"id":1343,"date":"2016-12-10T00:01:27","date_gmt":"2016-12-09T23:01:27","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=1343"},"modified":"2018-10-24T16:05:11","modified_gmt":"2018-10-24T15:05:11","slug":"day10-2016","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day10-2016","title":{"rendered":"Day 10: Colour mixing"},"content":{"rendered":"<p>Behind today&#8217;s door is the reason for the many 1-kohm resistors. Namely, what you find there is a so-called RGB LED RGB stands for red-greenblue, since this LED is actually three LEDs that can be connected through a common cathode. By varying the brightness of the individual LEDs using PWM, you can generate almost every colour conceivable.<\/p>\n<p>You can see the layout of today&#8217;s circuit in the following figure. Note that the somewhat longer leg (the cathode) must be plugged into the GND contact strip.<\/p>\n<div id=\"attachment_1344\" style=\"width: 626px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB.jpg\"><img aria-describedby=\"caption-attachment-1344\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1344 size-large\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB-1024x602.jpg\" alt=\"Die RGB LED mit allen drei Vorwiderst\u00e4nden\" width=\"616\" height=\"362\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB-1024x602.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB-300x176.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB-768x452.jpg 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB-972x572.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_1_RGB.jpg 1107w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-1344\" class=\"wp-caption-text\">The RGB LED with all three series resistors<\/p><\/div>\n<p>In the Blynk app, a totally new element comes into play today, namely the ZeRGBa element (combination of Zebra and RGB). You can already see roughly how it works from the colourful design. You can either insert the element in your own new project and adjust the pins manually (red at D3, green at D5 and blue at D6) or load the interface of the test as usual via QR code. Whichever way you choose, don&#8217;t forget to enter the new token in the programme, which you can download as usual from below:<br \/>\n<iframe loading=\"lazy\" style=\"height: 400px; width: 100%; margin: 10px 0;\" src=\"https:\/\/create.arduino.cc\/editor\/FKainka\/ff49b2f1-c5df-4b06-b9e9-9d2e3efb4eab\/preview?embed\" width=\"300\" height=\"150\" frameborder=\"0\"><\/iframe><\/p>\n<p><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1010-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-1345 aligncenter\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1010-1.png\" alt=\"blynk_tag1010-1\" width=\"229\" height=\"229\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1010-1.png 500w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1010-1-150x150.png 150w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1010-1-300x300.png 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1010-1-60x60.png 60w\" sizes=\"(max-width: 229px) 100vw, 229px\" \/><\/a><\/p>\n<p>When you have uploaded the programme with your data and the interface has started in the app, you can move the circle in the ZeRGBa widget. You see that the colour of the circle changes. At the same time, the colour of the RGB LED on the board changes. So you can have fun playing around and trying out various colours. You can even get white if you move the circle to the top left corner. The three numbers above also give the current PWM value of the pins D3, D5 and D6. This time, too, you can conceivable use the programme for a living room lamp with mood lighting that can be controlled via app.<\/p>\n<p><div id=\"attachment_1346\" style=\"width: 336px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3.png\"><img aria-describedby=\"caption-attachment-1346\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-1346\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3-576x1024.png\" alt=\"Das ZeRGBa-Element\" width=\"326\" height=\"580\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3-576x1024.png 576w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3-169x300.png 169w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3-768x1365.png 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3-972x1728.png 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3.png 1080w\" sizes=\"(max-width: 326px) 100vw, 326px\" \/><\/a><p id=\"caption-attachment-1346\" class=\"wp-caption-text\">Das ZeRGBa-Element<\/p><\/div><\/p>","protected":false},"excerpt":{"rendered":"<p>Behind today&#8217;s door is the reason for the many 1-kohm resistors. Namely, what you find there is a so-called RGB LED RGB stands for red-greenblue, since this LED is actually three LEDs that can be connected through a common cathode&#8230;.<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day10-2016\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1346,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[123,124,311],"tags":[126],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Day 10: Colour mixing - Internet of Things with the NanoESP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iot.fkainka.de\/day10-2016\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 10: Colour mixing - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"Behind today&#8217;s door is the reason for the many 1-kohm resistors. Namely, what you find there is a so-called RGB LED RGB stands for red-greenblue, since this LED is actually three LEDs that can be connected through a common cathode....Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day10-2016\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-09T23:01:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-24T15:05:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1920\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"fk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"fk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/day10-2016\",\"url\":\"https:\/\/iot.fkainka.de\/day10-2016\",\"name\":\"Day 10: Colour mixing - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2016-12-09T23:01:27+00:00\",\"dateModified\":\"2018-10-24T15:05:11+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day10-2016#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day10-2016\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day10-2016#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 10: RGB-LED\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iot.fkainka.de\/#website\",\"url\":\"https:\/\/iot.fkainka.de\/\",\"name\":\"Internet of Things with the NanoESP\",\"description\":\"The webpage for the Arduino compatible WiFi-Board\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iot.fkainka.de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\",\"name\":\"fk\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g\",\"caption\":\"fk\"},\"url\":\"https:\/\/iot.fkainka.de\/en\/author\/fk\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Day 10: Colour mixing - Internet of Things with the NanoESP","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":"https:\/\/iot.fkainka.de\/day10-2016","og_locale":"en_US","og_type":"article","og_title":"Day 10: Colour mixing - Internet of Things with the NanoESP","og_description":"Behind today&#8217;s door is the reason for the many 1-kohm resistors. Namely, what you find there is a so-called RGB LED RGB stands for red-greenblue, since this LED is actually three LEDs that can be connected through a common cathode....Read more","og_url":"https:\/\/iot.fkainka.de\/day10-2016","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2016-12-09T23:01:27+00:00","article_modified_time":"2018-10-24T15:05:11+00:00","og_image":[{"width":1080,"height":1920,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3.png","type":"image\/png"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/day10-2016","url":"https:\/\/iot.fkainka.de\/day10-2016","name":"Day 10: Colour mixing - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2016-12-09T23:01:27+00:00","dateModified":"2018-10-24T15:05:11+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day10-2016#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day10-2016"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day10-2016#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 10: RGB-LED"}]},{"@type":"WebSite","@id":"https:\/\/iot.fkainka.de\/#website","url":"https:\/\/iot.fkainka.de\/","name":"Internet of Things with the NanoESP","description":"The webpage for the Arduino compatible WiFi-Board","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iot.fkainka.de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a","name":"fk","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g","caption":"fk"},"url":"https:\/\/iot.fkainka.de\/en\/author\/fk"}]}},"jetpack_featured_media_url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day10_3.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-lF","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1343"}],"collection":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":9,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"predecessor-version":[{"id":1708,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1343\/revisions\/1708"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/1346"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}