{"id":1298,"date":"2016-12-05T00:01:46","date_gmt":"2016-12-04T23:01:46","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=1298"},"modified":"2018-10-24T16:05:12","modified_gmt":"2018-10-24T15:05:12","slug":"day5-2016","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day5-2016","title":{"rendered":"Day 5: Blynk"},"content":{"rendered":"<p>You already established a first connection from the board to the Internet yesterday. In the coming days, this connection should be used effectively. So we&#8217;re looking at the online platform Blynk, through which short commands, measurement data or messages can be exchanged between the NanoESP board and your smartphone.<\/p>\n<div id=\"attachment_1299\" style=\"width: 626px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1.jpg\"><img aria-describedby=\"caption-attachment-1299\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-1299\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1-1024x623.jpg\" alt=\"Kommunikationswege mit Blynk\" width=\"616\" height=\"375\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1-1024x623.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1-300x182.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1-768x467.jpg 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1-972x591.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1.jpg 1444w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-1299\" class=\"wp-caption-text\">Communication with\u00a0the Blynk Server<\/p><\/div>\n<p>Blynk enables the simple control of various IoT boards, e.g. the Raspberry Pi or our NanoESP, using an app. You can put the graphic interface together completely on your own, and programming is also extremely simple. As if that weren&#8217;t enough, you can even control the board from anywhere in the world. So it&#8217;s totally within the sense of the Internet of Things.<\/p>\n<p>For your first test, you need the LED that&#8217;s behind today&#8217;s door and the resistor from yesterday. We want to switch the LED using the smartphone or tablet. Set up the circuit shown here on the breadboard. Pay attention to the correct polarity of the LED (small leg at GND).<\/p>\n<div id=\"attachment_1300\" style=\"width: 626px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2.jpg\"><img aria-describedby=\"caption-attachment-1300\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-1300\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2-1024x500.jpg\" alt=\"Die LED wird an Pin D9 angeschlossen\" width=\"616\" height=\"301\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2-1024x500.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2-300x146.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2-768x375.jpg 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2-972x475.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5-2.jpg 1106w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-1300\" class=\"wp-caption-text\">Die LED wird an Pin D9 angeschlossen<\/p><\/div>\n<p>In the next step, you need to install the Blynk library. You&#8217;ll find a functioning version linked on GitHub. Version 0.3.4 is required:<\/p>\n<p><a href=\"https:\/\/github.com\/blynkkk\/blynk-library\/releases\/tag\/v0.3.4\">https:\/\/github.com\/blynkkk\/blynk-library\/releases\/tag\/v0.3.4<\/a><\/p>\n<p>Integrating this library is somewhat more complicated, since there are multiple library files in the ZIP folder. That means: You have to install it manually. But that&#8217;s not particularly hard. Simply open your Sketch file folder. If you don&#8217;t know exactly where it is, look under <strong>File &gt; Presets.<\/strong><\/p>\n<p>In the Sketch folder is a folder named libraries. You need to copy the folder contained in the ZIP file into this folder. These are basically the steps the Arduino IDE took automatically on Day 2 when installing the NanoESP library. That&#8217;s why you&#8217;ll also find a subfolder named NanoESP in the libraries folder. You should now likewise be able to find the folder from the downloaded archive here.<\/p>\n<p>Now Blynk is integrated into your Arduino IDE, but you don&#8217;t yet have the app that goes with it on your smartphone. To change that, download the app from your app store, depending on your operating system, or go to <a href=\"http:\/\/www.blynk.cc\">www.blynk.cc<\/a>\u00a0and follow the link there.<\/p>\n<p>Open the app. You are greeted with the two options Login and Create New Account. Create a new account. For this, you don&#8217;t have to do anything more than enter an email address and a password. Then you can log in.<\/p>\n<p>In order to get the interface for today on your smartphone, there&#8217;s an exceptionally practical function in the app. Tap the icon at the top right that&#8217;s between the <strong>plus<\/strong> and the <strong>i<\/strong>. A QR code scanner opens, which you simply have to hold on the following picture. The interface already appears on your device.<\/p>\n<div id=\"attachment_1301\" style=\"width: 282px\" class=\"wp-caption alignright\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Blynk_Tag56.png\"><img aria-describedby=\"caption-attachment-1301\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-1301\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Blynk_Tag56.png\" alt=\"Der QR-Code zum heutigen Projekt\" width=\"272\" height=\"272\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Blynk_Tag56.png 500w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Blynk_Tag56-150x150.png 150w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Blynk_Tag56-300x300.png 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Blynk_Tag56-60x60.png 60w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/a><p id=\"caption-attachment-1301\" class=\"wp-caption-text\"><span style=\"font-size: 13px; text-align: left;\">The QR code for today&#8217;s project<\/span><\/p><\/div>\n<p>Next, you have to tap the hexagonal icon at the top right and write down the code that&#8217;s under AUTH TOKEN or, an option that&#8217;s especially practical, have it sent to your email address. You see, this code belongs in the Arduino programme.<\/p>\n<p>You have to download today&#8217;s Arduino programme from below\u00a0and open it in the Arduino IDE. Then, just like yesterday, you have to enter the WLAN data at the top in the programme after &#8220;SSID&#8221; and &#8220;PASSWORD.&#8221; You also have to enter the code referred to above after the keyword &#8220;token.&#8221; Only then can you load the programme on the NanoESP. After the upload, you can follow a couple of messages on the serial monitor and thus make sure that the connection set-up has worked.<\/p>\n<p><iframe loading=\"lazy\" style=\"height: 400px; width: 100%; margin: 10px 0;\" src=\"https:\/\/create.arduino.cc\/editor\/FKainka\/bbe53704-7670-4a98-b604-1fa4d35f94d5\/preview?embed\" width=\"300\" height=\"150\" frameborder=\"0\"><\/iframe><\/p>\n<p>Now back to the smartphone or tablet. Start your interface by tapping on the Play button at the top right. You can now press the button in the middle of your interface, and whenever you touch the button, the LED lights up on the breadboard. As a test, you can change the button type; stop the programme by pressing the Stop button and tap briefly on the button. There change the button type from Push to Switch; then press Play\u00a0again in the interface view. Now a simple tap is enough to cause the LED to stay lit.<\/p>\n<div id=\"attachment_1308\" style=\"width: 270px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3.jpg\"><img aria-describedby=\"caption-attachment-1308\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-1308\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3-576x1024.jpg\" alt=\"Die Oberfl\u00e4che in der Blynk App mit QR-Code-Symbol oben rechts\" width=\"260\" height=\"461\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3-576x1024.jpg 576w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3-169x300.jpg 169w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3-768x1365.jpg 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3-972x1728.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_3.jpg 1080w\" sizes=\"(max-width: 260px) 100vw, 260px\" \/><\/a><p id=\"caption-attachment-1308\" class=\"wp-caption-text\">The Blynk APP<\/p><\/div>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>You already established a first connection from the board to the Internet yesterday. In the coming days, this connection should be used effectively. So we&#8217;re looking at the online platform Blynk, through which short commands, measurement data or messages can&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day5-2016\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1299,"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 5: Blynk - 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\/day5-2016\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 5: Blynk - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"You already established a first connection from the board to the Internet yesterday. In the coming days, this connection should be used effectively. So we&#8217;re looking at the online platform Blynk, through which short commands, measurement data or messages can...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day5-2016\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-04T23:01:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-24T15:05:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1444\" \/>\n\t<meta property=\"og:image:height\" content=\"878\" \/>\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=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/day5-2016\",\"url\":\"https:\/\/iot.fkainka.de\/day5-2016\",\"name\":\"Day 5: Blynk - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2016-12-04T23:01:46+00:00\",\"dateModified\":\"2018-10-24T15:05:12+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day5-2016#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day5-2016\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day5-2016#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 5: Blynk\"}]},{\"@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 5: Blynk - 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\/day5-2016","og_locale":"en_US","og_type":"article","og_title":"Day 5: Blynk - Internet of Things with the NanoESP","og_description":"You already established a first connection from the board to the Internet yesterday. In the coming days, this connection should be used effectively. So we&#8217;re looking at the online platform Blynk, through which short commands, measurement data or messages can...Read more","og_url":"https:\/\/iot.fkainka.de\/day5-2016","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2016-12-04T23:01:46+00:00","article_modified_time":"2018-10-24T15:05:12+00:00","og_image":[{"width":1444,"height":878,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day5_1.jpg","type":"image\/jpeg"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/day5-2016","url":"https:\/\/iot.fkainka.de\/day5-2016","name":"Day 5: Blynk - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2016-12-04T23:01:46+00:00","dateModified":"2018-10-24T15:05:12+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day5-2016#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day5-2016"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day5-2016#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 5: Blynk"}]},{"@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\/08\/Day5_1.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-kW","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1298"}],"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=1298"}],"version-history":[{"count":12,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1298\/revisions"}],"predecessor-version":[{"id":1477,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1298\/revisions\/1477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/1299"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}