{"id":2541,"date":"2018-12-15T00:00:41","date_gmt":"2018-12-14T23:00:41","guid":{"rendered":"https:\/\/iot.fkainka.de\/?p=2541"},"modified":"2018-11-21T12:50:09","modified_gmt":"2018-11-21T11:50:09","slug":"day15-2018","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day15-2018","title":{"rendered":"Day 15: Remote Control Receiver"},"content":{"rendered":"<p>The door reveals a very special component today, namely an infrared receiver module. You can use it to <strong>15. Tag <\/strong>receive customary infrared remote-control signals. We will use the following setup.<\/p>\n<div id=\"attachment_2542\" style=\"width: 405px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day15_IRrecv_Steckplatine.png\"><img aria-describedby=\"caption-attachment-2542\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-2542\" src=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day15_IRrecv_Steckplatine-827x1024.png\" alt=\"Versuchsaufbau\" width=\"395\" height=\"488\" data-id=\"2542\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day15_IRrecv_Steckplatine-827x1024.png 827w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day15_IRrecv_Steckplatine-242x300.png 242w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day15_IRrecv_Steckplatine-768x951.png 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day15_IRrecv_Steckplatine.png 879w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/a><p id=\"caption-attachment-2542\" class=\"wp-caption-text\">This is how you properly connect the IR module to the board<\/p><\/div>\n<p>After the circuit is set up, select today\u2019s program. Please note that you will not be able to reach the board\u2019s website, because it is deactivated for our experiment today. The board works now in headless mode and has no visible interface. If you want to run the website again to activate other programs, for example, you only have to pull out the jumper from pin 23 and restart the board. Everything will run as usual.<\/p>\n<p>Implement first today\u2019s flow into your Node-RED environment and see, if today\u2019s program is working properly. Do not forget to disable the previous flows and adjust the MQTT topic to your personal topic.<\/p>\n<p>As soon as you have activated the flow, you can point a remote control at the receiver. On the GUI page you will then see text sent by the board such as:<\/p>\n<p><strong>{&#8220;cmd&#8221;:&#8221;ir_recv&#8221;,&#8221;type&#8221;:3,&#8221;value&#8221;:551489775,&#8221;length&#8221;:32}<\/strong><\/p>\n<p>Important here is the <strong>value<\/strong>. For example, select the power button on your remote and copy the value received. Enter the value into the switch node. At present you can enter five different values into the switch node, meaning five different remote-control buttons. Each of these keys then leads to a node that sets a text as a payload and forwards it to an audio-out node. The first value in the switch node would be the power button. Therefore, &#8220;Power&#8221; is read by the browser. We are using this here only for the purpose of demonstration. As for smart homes, you could easily dim the living room lighting when the TV is switched on. Node-RED makes customization very easy.<\/p>\n<div id=\"attachment_2543\" style=\"width: 849px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow.png\"><img aria-describedby=\"caption-attachment-2543\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2543\" src=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow.png\" alt=\"Der Flow des heutigen Tages\" width=\"839\" height=\"289\" data-id=\"2543\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow.png 839w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow-300x103.png 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow-768x265.png 768w\" sizes=\"(max-width: 839px) 100vw, 839px\" \/><\/a><p id=\"caption-attachment-2543\" class=\"wp-caption-text\">The flow today<\/p><\/div>\n<p><iframe style=\"border: none; width: 100%;\" src=\"https:\/\/pastebin.com\/embed_iframe\/KbYdYMKA\"><\/iframe><\/p>","protected":false},"excerpt":{"rendered":"<p>The door reveals a very special component today, namely an infrared receiver module. You can use it to 15. Tag receive customary infrared remote-control signals. We will use the following setup. After the circuit is set up, select today\u2019s program&#8230;.<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day15-2018\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2543,"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":[315,312,313],"tags":[],"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 15: Remote Control Receiver - 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\/day15-2018\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 15: Remote Control Receiver - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"The door reveals a very special component today, namely an infrared receiver module. You can use it to 15. Tag receive customary infrared remote-control signals. We will use the following setup. After the circuit is set up, select today\u2019s program....Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day15-2018\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-14T23:00:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-21T11:50:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow.png\" \/>\n\t<meta property=\"og:image:width\" content=\"839\" \/>\n\t<meta property=\"og:image:height\" content=\"289\" \/>\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\/day15-2018\",\"url\":\"https:\/\/iot.fkainka.de\/day15-2018\",\"name\":\"Day 15: Remote Control Receiver - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2018-12-14T23:00:41+00:00\",\"dateModified\":\"2018-11-21T11:50:09+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day15-2018#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day15-2018\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day15-2018#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 15: Fernbedienungsempf\u00e4nger\"}]},{\"@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 15: Remote Control Receiver - 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\/day15-2018","og_locale":"en_US","og_type":"article","og_title":"Day 15: Remote Control Receiver - Internet of Things with the NanoESP","og_description":"The door reveals a very special component today, namely an infrared receiver module. You can use it to 15. Tag receive customary infrared remote-control signals. We will use the following setup. After the circuit is set up, select today\u2019s program....Read more","og_url":"https:\/\/iot.fkainka.de\/day15-2018","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2018-12-14T23:00:41+00:00","article_modified_time":"2018-11-21T11:50:09+00:00","og_image":[{"width":839,"height":289,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T15Flow.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\/day15-2018","url":"https:\/\/iot.fkainka.de\/day15-2018","name":"Day 15: Remote Control Receiver - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2018-12-14T23:00:41+00:00","dateModified":"2018-11-21T11:50:09+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day15-2018#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day15-2018"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day15-2018#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 15: Fernbedienungsempf\u00e4nger"}]},{"@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\/2018\/11\/T15Flow.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-EZ","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2541"}],"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=2541"}],"version-history":[{"count":3,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2541\/revisions"}],"predecessor-version":[{"id":2546,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2541\/revisions\/2546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/2543"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=2541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=2541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=2541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}