{"id":82,"date":"2015-12-01T00:01:38","date_gmt":"2015-11-30T22:01:38","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=82"},"modified":"2018-10-24T16:04:10","modified_gmt":"2018-10-24T15:04:10","slug":"day-1","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day-1","title":{"rendered":"Day 1 &#8211; First Steps"},"content":{"rendered":"<p>It is the first day of December and thus time to open the first door. Behind the door, you will find the most important part of this calendar: the Arduino&#x2122;-compatible NanoESP-board with integrated WLAN module that this calendar is about.<\/p>\n<div id=\"attachment_84\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1.jpg\"><img aria-describedby=\"caption-attachment-84\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-84\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1-1024x399.jpg\" alt=\"Das NanoESP Board\" width=\"616\" height=\"240\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1-1024x399.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1-300x117.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1-972x379.jpg 972w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-84\" class=\"wp-caption-text\">The NanoESP Board<\/p><\/div>\n<p>As you can see quite well on the PCB, the board is made up of two components. The left half is an Arduino&#x2122;-compatible micro controller system that can be compared to the Arduino&#x2122; Nano. The right part is the WLAN module with the designation ESP8266. These two components communicate via a serial interface generated by software. The Arduino&#x2122;-side rather acts as the boss, forwarding the commands to the WLAN module. Some of these commands will already be tried out today on the first day.<\/p>\n<h3>The program:\u00a0<a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1_SoftwareSerial.zip\">Day1_SoftwareSerial<\/a><\/h3>\n<p>&nbsp;<\/p>\n<p>The Arduino&#x2122;-software is used as the developing environment. The current version can be found on the website:<\/p>\n<p><a href=\"http:\/\/www.arduino.cc\">arduino.cc<br \/>\n<\/a><br \/>\nI have worked with Arduino&#x2122;-versions 1.6.4 \u2013 1.6.5. Older versions may cause problems. For some Linux versions, there is currently only a very old version. Advice on how to solve this and other problems can be found on the website. In the Arduino&#x2122; software, you need to select Arduino&#x2122; Nano as a board and the serial port. Then you can upload the program.<br \/>\nToday&#8217;s download is a very simple program that does nothing but pass on all data received through the serial hardware interface of the<br \/>\nmicrocontroller to the ESP controller via a self-defined software interface. The entire thing works in the opposite direction as well. As you can see in the source text, the two connections of the software interface are pins 11 and 12. They should not be used as GPIO-pins in your own projects. You also need the SoftwareSerial library. The library is pre-installed in most Arduino&#x2122; versions, but if not, you should download it via the Manager.<br \/>\nAfter the program has been uploaded, you can start the serial monitor of the Arduino&#x2122; interface. Before you can start, two important settings must be made to the Serial Monitor, i.e. the baud rate must be set to &#8220;19200&#8221; in the lower right corner and the setting &#8220;CR and NL&#8221; must be made in the box to its left.<br \/>\nAfter setting, you can see a message, i.e. an AT and a few lines, followed by OK. The command AT was sent to the ESP module by the microcontroller and the module answered OK. You can see by this that the module works and is ready for use.<br \/>\nYou can test this again by sending the command<\/p>\n<p><strong>AT<\/strong><\/p>\n<p>by serial monitor. The uploaded program again passes on the command to the ESP module, which in turn answers OK. The next command that you can test is:<\/p>\n<p><strong>AT+GMR<\/strong><\/p>\n<p>This command outputs the current firmware and version number. The command<\/p>\n<p><strong>AT+RST<\/strong><\/p>\n<p>resets the module. You will see a few illegible characters on the terminal first, followed by ready, which says that the module is now ready. Use<\/p>\n<p><strong>AT+CWMODE<\/strong><\/p>\n<p>to specify the WLAN mode. There are three options: Mode 1 is the station mode. This means that you can log into a present WLAN in the module. Mode 2 is the AccessPoint mode. This means that you can log on to a WLAN provided by the module with a WLAN-capable device. Mode 3 is dual mode. You can both log on to a present WLAN with the module and make a direct connection to another device. Test the AccessPoint mode by specifying mode 2 with the command<br \/>\n<strong>AT+CWMODE = 2<\/strong><\/p>\n<p>and then using the command<\/p>\n<p><strong>AT+CWSAP=\u201dMyNanoESP\u201d,\u201dMyPassword\u201d,5,3<\/strong><\/p>\n<p>to set the parameters for the access point. You can then find the network MyNanoESP e.g. with a WLAN-capable computer, and connect with the password MyPasswort. When the connection has been successfully established, you can use<\/p>\n<p><strong>AT+CWLIF<\/strong><\/p>\n<p>to display the connected device with IP and MAC address.<\/p>\n<div id=\"attachment_85\" style=\"width: 565px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-2.jpeg\"><img aria-describedby=\"caption-attachment-85\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-85\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-2.jpeg\" alt=\"Die AT-Kommandos im Seriellen Monitor\" width=\"555\" height=\"592\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-2.jpeg 555w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-2-281x300.jpeg 281w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/a><p id=\"caption-attachment-85\" class=\"wp-caption-text\">The AT commands in the serial monitor<\/p><\/div>\n<p>You can now also test station mode by first switching modes with<\/p>\n<p><strong>AT+CWMODE=1<br \/>\n<\/strong><br \/>\nYou can have all available WLAN networks in range with the command<\/p>\n<p><strong>AT+CWLAP<\/strong><\/p>\n<p>You can use<\/p>\n<p><strong>AT+CWJAP=\u201cMySSID\u201c,\u201cMyPassword\u201c<\/strong><\/p>\n<p>to connect to your network, with MySSID and MyPassword being replaced by your network name and your password. It may take quite a while until the connection is established, but the end will be confirmed with OK. The first connection has now been established.<\/p>","protected":false},"excerpt":{"rendered":"<p>It is the first day of December and thus time to open the first door. Behind the door, you will find the most important part of this calendar: the Arduino&#x2122;-compatible NanoESP-board with integrated WLAN module that this calendar is about&#8230;.<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day-1\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":84,"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":[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 1 - First Steps - 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-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 1 - First Steps - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"It is the first day of December and thus time to open the first door. Behind the door, you will find the most important part of this calendar: the Arduino&#x2122;-compatible NanoESP-board with integrated WLAN module that this calendar is about....Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day-1\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-30T22:01:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-24T15:04:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"3154\" \/>\n\t<meta property=\"og:image:height\" content=\"1229\" \/>\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=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/day-1\",\"url\":\"https:\/\/iot.fkainka.de\/day-1\",\"name\":\"Day 1 - First Steps - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2015-11-30T22:01:38+00:00\",\"dateModified\":\"2018-10-24T15:04:10+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day-1#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day-1\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day-1#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 1: Die ersten Schritte\"}]},{\"@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 1 - First Steps - 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-1","og_locale":"en_US","og_type":"article","og_title":"Day 1 - First Steps - Internet of Things with the NanoESP","og_description":"It is the first day of December and thus time to open the first door. Behind the door, you will find the most important part of this calendar: the Arduino&#x2122;-compatible NanoESP-board with integrated WLAN module that this calendar is about....Read more","og_url":"https:\/\/iot.fkainka.de\/day-1","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2015-11-30T22:01:38+00:00","article_modified_time":"2018-10-24T15:04:10+00:00","og_image":[{"width":3154,"height":1229,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day1-1.jpg","type":"image\/jpeg"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/day-1","url":"https:\/\/iot.fkainka.de\/day-1","name":"Day 1 - First Steps - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2015-11-30T22:01:38+00:00","dateModified":"2018-10-24T15:04:10+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day-1#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day-1"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day-1#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 1: Die ersten Schritte"}]},{"@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\/Day1-1.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-1k","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/82"}],"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=82"}],"version-history":[{"count":13,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":2350,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/82\/revisions\/2350"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/84"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}