{"id":212,"date":"2015-12-17T00:01:46","date_gmt":"2015-12-16T22:01:46","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=212"},"modified":"2018-10-24T16:04:08","modified_gmt":"2018-10-24T15:04:08","slug":"day-17","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day-17","title":{"rendered":"Day 17: IR module"},"content":{"rendered":"<p>Today&#8217;s project permits controlling the controller by remote control. You can change the colour of the RGB-LED with buttons you can choose on an infra-red remote control, and change the background colour of the website right along with it.<\/p>\n<div id=\"attachment_213\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1.jpg\"><img aria-describedby=\"caption-attachment-213\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-213\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1-1024x500.jpg\" alt=\"Das IR-Modul an Pins D7-D5\" width=\"616\" height=\"301\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1-1024x500.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1-300x146.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1-972x474.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1.jpg 1107w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-213\" class=\"wp-caption-text\">TheIR-Modul on Pins D7-D5<\/p><\/div>\n<p>Behind today&#8217;s door, you will find the important part of today&#8217;s project, i.e. the infra-red receiver module. You can connect the module without a cable as shown in the figure below. The program sets the corresponding pins so that the module is supplied with power.<\/p>\n<p><strong>The program:\u00a0<a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/11\/Day17_IRmodul.zip\">Day17_IRmodul<\/a><\/strong><\/p>\n<p>Today&#8217;s program once again uses an external library: the IRremote-Library by Ken Shiriff. A copy of the version used by me is again enclosed in the Sketch folder and only needs to be copied into the library folder of your Sketchbook.<\/p>\n<p>After uploading the program, you should start the Serial Monitor. Find a remote control and point it at the module. When you push a button, you should have the value of the signal output as a HEX code and the type of the protocol as a number in the monitor. When the type is displayed as -1, the protocol has not been recognised. There may be several failed attempts before a command is properly decoded. Just try out a bit or try another remote control. Once you have found a working one, select six buttons (best take Power, Volume up, Volume down, Channel up, Channel down and Mute). Now copy the codes for the six commands in the program behind the six #define irComX (do not forget the 0x before the hex code). The commands of an LG-TV remote control are pre-defined there. If you have entered the codes correctly, you can upload the program again. You can use the buttons defined by you to change the colour of the RGB-LED now. When updating the board page, you will also see that the colour has changed.<\/p>","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s project permits controlling the controller by remote control. You can change the colour of the RGB-LED with buttons you can choose on an infra-red remote control, and change the background colour of the website right along with it. Behind&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day-17\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":213,"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":[3,26,311],"tags":[17,15,13,106,12],"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 17: IR module - 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\/day-17\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 17: IR module - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"Today&#8217;s project permits controlling the controller by remote control. You can change the colour of the RGB-LED with buttons you can choose on an infra-red remote control, and change the background colour of the website right along with it. Behind...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day-17\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-16T22:01:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-24T15:04:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1107\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\/day-17\",\"url\":\"https:\/\/iot.fkainka.de\/day-17\",\"name\":\"Day 17: IR module - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2015-12-16T22:01:46+00:00\",\"dateModified\":\"2018-10-24T15:04:08+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day-17#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day-17\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day-17#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 17: IR-Modul\"}]},{\"@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 17: IR module - 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\/day-17","og_locale":"en_US","og_type":"article","og_title":"Day 17: IR module - Internet of Things with the NanoESP","og_description":"Today&#8217;s project permits controlling the controller by remote control. You can change the colour of the RGB-LED with buttons you can choose on an infra-red remote control, and change the background colour of the website right along with it. Behind...Read more","og_url":"https:\/\/iot.fkainka.de\/day-17","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2015-12-16T22:01:46+00:00","article_modified_time":"2018-10-24T15:04:08+00:00","og_image":[{"width":1107,"height":540,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day17-1.jpg","type":"image\/jpeg"}],"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\/day-17","url":"https:\/\/iot.fkainka.de\/day-17","name":"Day 17: IR module - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2015-12-16T22:01:46+00:00","dateModified":"2018-10-24T15:04:08+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day-17#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day-17"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day-17#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 17: IR-Modul"}]},{"@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\/2015\/09\/Day17-1.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-3q","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/212"}],"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=212"}],"version-history":[{"count":3,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":593,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/212\/revisions\/593"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/213"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}