{"id":1284,"date":"2016-12-02T00:01:47","date_gmt":"2016-12-01T23:01:47","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=1284"},"modified":"2018-10-24T16:05:12","modified_gmt":"2018-10-24T15:05:12","slug":"day2-2016","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day2-2016","title":{"rendered":"Day 2: The Arduino IDE"},"content":{"rendered":"<p>This time there&#8217;s a breadboard behind the door. On it, you can quickly and easily assemble the hardware layouts of the Advent calendar. Since only the NanoESP is available so far, we&#8217;ll start with it.<\/p>\n<div id=\"attachment_1286\" style=\"width: 626px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1.jpg\"><img aria-describedby=\"caption-attachment-1286\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-1286\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1-1024x513.jpg\" alt=\"NanoESP auf dem Steckboard\" width=\"616\" height=\"309\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1-1024x513.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1-300x150.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1-768x385.jpg 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1-972x487.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1.jpg 2031w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-1286\" class=\"wp-caption-text\">NanoESP\u00a0on a breadboard<\/p><\/div>\n<p>It&#8217;s best if you plug the controller into the breadboard as shown in the picture. That way, the greatest space remains free for experiments; the WLAN module sticks out behind past the breadboard. The micro-USB cable then hangs between the contact sides and is only a minimal disruption. The board needs to be pressed in gently until it touches the contacts.<\/p>\n<p>Today we also want to deal with the software with which the board can be programmed. This is the Arduino development environment (Arduino IDE for short). You can download the latest version for your individual system at <a href=\"http:\/\/www.arduino.cc\/en\/Main\/software\">http:\/\/www.arduino.cc\/en\/Main\/software<\/a> and then install it. Please note that you should work with at least Arduino Version 1.6.5.<\/p>\n<p>PProgramming occurs here in a somewhat simplified C\/C++. You can now open an initial sample programme in the IDE by clicking <strong>File &gt; Samples &gt; 01.Basics &gt; Blink.<\/strong> The programme causes the LED D3 on the board to flash in a one-second cycle. In order to execute it on the NanoESP, you first have to transfer it via the USB interface to the board. Before you do that, select the right board and the right communications port (COM for short) in the software:<\/p>\n<ol>\n<li>Under<strong> Tools &gt; Board<\/strong> select &#8220;Arduino Nano&#8221;<\/li>\n<li>Under <strong>Tools &gt; Processor<\/strong> select &#8220;ATmega328&#8221;<\/li>\n<li>Under<strong> Tools &gt; Serial Port<\/strong> select the corresponding COM port<\/li>\n<\/ol>\n<p>Then click the Upload button. The programme is now compiled and transferred to the NanoESP. You can follow the progress in the status bar below. During the upload, you can also see the two centre LEDs (TX1 and RX1) flashing rapidly. If everything was successful, the LED D3 on the board begins to flash in a one-second cycle. You&#8217;ve just successfully uploaded your first Arduino programme.<\/p>\n<p>This was only a test of whether the board functions correctly in principle. Now comes the IoT part of today&#8217;s test. First, though, you still have to download something, namely the library, which will enormously simplify handling the board for you. You&#8217;ll find the latest version at<\/p>\n<p><a href=\"http:\/\/iot.fkainka.de\/library\">http:\/\/ iot.fkainka.de\/library<\/a><\/p>\n<p>Now you have to integrate this ZIP file into Arduino by selecting it under<\/p>\n<p><strong>Sketch &gt; Integrate library &gt; Add .ZIP library<\/strong><\/p>\n<p>You may have to restart the Arduino IDE so that you can find the sample programme under<\/p>\n<p><strong>File &gt; Samples &gt; NanoESP &gt; Basics &gt; Wifi_Scanner <\/strong><\/p>\n<p>and open it. Now you have to upload this programme. Then open the serial monitor and set the baud rate 19200. After a short time, you will first see information about the firmware and finally a list of all WLAN networks in range of your NanoESP board.<\/p>\n<p><div id=\"attachment_1287\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1_SerialM.jpg\"><img aria-describedby=\"caption-attachment-1287\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1287\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1_SerialM.jpg\" alt=\"Die Ausgabe im Seriellen Monitor (WLAN-Namen unkenntlich gemacht)\" width=\"630\" height=\"683\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1_SerialM.jpg 630w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1_SerialM-277x300.jpg 277w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/a><p id=\"caption-attachment-1287\" class=\"wp-caption-text\">SSIDs in the serial monitor<\/p><\/div><\/p>","protected":false},"excerpt":{"rendered":"<p>This time there&#8217;s a breadboard behind the door. On it, you can quickly and easily assemble the hardware layouts of the Advent calendar. Since only the NanoESP is available so far, we&#8217;ll start with it. It&#8217;s best if you plug&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day2-2016\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1287,"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":[4],"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 2: The Arduino IDE - 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\/day2-2016\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 2: The Arduino IDE - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"This time there&#8217;s a breadboard behind the door. On it, you can quickly and easily assemble the hardware layouts of the Advent calendar. Since only the NanoESP is available so far, we&#8217;ll start with it. It&#8217;s best if you plug...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day2-2016\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-01T23:01:47+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\/Day2_1_SerialM.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"630\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/day2-2016\",\"url\":\"https:\/\/iot.fkainka.de\/day2-2016\",\"name\":\"Day 2: The Arduino IDE - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2016-12-01T23:01:47+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\/day2-2016#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day2-2016\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day2-2016#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 2: Die Arduino IDE\"}]},{\"@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 2: The Arduino IDE - 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\/day2-2016","og_locale":"en_US","og_type":"article","og_title":"Day 2: The Arduino IDE - Internet of Things with the NanoESP","og_description":"This time there&#8217;s a breadboard behind the door. On it, you can quickly and easily assemble the hardware layouts of the Advent calendar. Since only the NanoESP is available so far, we&#8217;ll start with it. It&#8217;s best if you plug...Read more","og_url":"https:\/\/iot.fkainka.de\/day2-2016","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2016-12-01T23:01:47+00:00","article_modified_time":"2018-10-24T15:05:12+00:00","og_image":[{"width":630,"height":683,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/08\/Day2_1_SerialM.jpg","type":"image\/jpeg"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/day2-2016","url":"https:\/\/iot.fkainka.de\/day2-2016","name":"Day 2: The Arduino IDE - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2016-12-01T23:01:47+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\/day2-2016#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day2-2016"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day2-2016#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 2: Die Arduino IDE"}]},{"@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\/Day2_1_SerialM.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-kI","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1284"}],"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=1284"}],"version-history":[{"count":5,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1284\/revisions"}],"predecessor-version":[{"id":1468,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1284\/revisions\/1468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/1287"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}