{"id":130,"date":"2015-12-07T00:01:23","date_gmt":"2015-12-06T22:01:23","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=130"},"modified":"2018-10-24T16:04:10","modified_gmt":"2018-10-24T15:04:10","slug":"day-7","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day-7","title":{"rendered":"Day 7: Analogous sensor"},"content":{"rendered":"<p>In the last project, a button was used to deal with the simplest form of a sensor. This time, a potentiometer should be used as an analogue sensor to permanently send measured values into the network.<\/p>\n<p>Behind the 7th door of the advent calendar, there is a potentiometer with 10 k\u2126. The setup is shown in the lower figure.<\/p>\n<div id=\"attachment_132\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1.jpg\"><img aria-describedby=\"caption-attachment-132\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-132\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1-1024x500.jpg\" alt=\"Der Aufbau mit Potentiometer an A0\" width=\"616\" height=\"301\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1-1024x500.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1-300x146.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1-972x474.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1.jpg 1107w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-132\" class=\"wp-caption-text\">The setup on pin A0<\/p><\/div>\n<p><strong>The program:\u00a0<a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7_UDPAnalog.zip\">Day7_UDPAnalog<\/a><\/strong><\/p>\n<p><em>! Attention: Some MAC-Users reportet a bug in the PacketSender-Software. This bug doesn&#8217;t allow you to change the ports. If you have problems with this bug you can change the ports in the Arduino program. All you have to do for todays project is to change the line 100 from<\/em><br \/>\n<em><strong> succes &amp;= sendCom(&#8220;AT+CIPSTART=\\&#8221;UDP\\&#8221;,\\&#8221;192.168.255.255\\&#8221;,90,91,2&#8243;, &#8220;OK&#8221;);<\/strong> <\/em><br \/>\n<em>to <\/em><br \/>\n<em><strong> succes &amp;= sendCom(&#8220;AT+CIPSTART=\\&#8221;UDP\\&#8221;,\\&#8221;192.168.255.255\\&#8221;,5505,5506,2&#8243;, &#8220;OK&#8221;);<\/strong> <\/em><\/p>\n<p>In addition to the analogue sensor, there is another change to the programme. This time, the controller is not to be operated in access point mode as before, but to connect to your home network. You can enter your station data simply at the top of the program this time.<\/p>\n<p>After the upload, it may be a while before the connection to the network is established. If this has been successful, the LED D3, which is firmly equipped on the board, lights up. This is the sign that the controller is now ready. While the serial monitor is active, you will see the corresponding message, but you may want to use the board autonomously for later experiments. In this case, the feedback can be very helpful. The serial monitor will also give you the information of which IP has had the board assigned by the router. This IP is important if you want to connect to the board later.<\/p>\n<div id=\"attachment_133\" style=\"width: 776px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-3.jpeg\"><img aria-describedby=\"caption-attachment-133\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-133\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-3.jpeg\" alt=\"Der Packet Sender empf\u00e4ngt die Messwerte\" width=\"766\" height=\"661\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-3.jpeg 766w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-3-300x259.jpeg 300w\" sizes=\"(max-width: 766px) 100vw, 766px\" \/><\/a><p id=\"caption-attachment-133\" class=\"wp-caption-text\">The software recieves the messured data<\/p><\/div>\n<p>The connection to the board works similarly as before. Only the IP of the module and your computer will have changed. The program initially does not receive any measured results. You need to send a message, e.g. the command led=1, first. New measured data will then come in approx. once per second.<\/p>","protected":false},"excerpt":{"rendered":"<p>In the last project, a button was used to deal with the simplest form of a sensor. This time, a potentiometer should be used as an analogue sensor to permanently send measured values into the network. Behind the 7th door&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day-7\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":132,"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":[10,5,106],"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 7: Analogous sensor - 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-7\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 7: Analogous sensor - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"In the last project, a button was used to deal with the simplest form of a sensor. This time, a potentiometer should be used as an analogue sensor to permanently send measured values into the network. Behind the 7th door...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day-7\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-06T22:01:23+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\/Day7-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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/day-7\",\"url\":\"https:\/\/iot.fkainka.de\/day-7\",\"name\":\"Day 7: Analogous sensor - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2015-12-06T22:01:23+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-7#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day-7\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day-7#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 7: Analoger Sensor\"}]},{\"@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 7: Analogous sensor - 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-7","og_locale":"en_US","og_type":"article","og_title":"Day 7: Analogous sensor - Internet of Things with the NanoESP","og_description":"In the last project, a button was used to deal with the simplest form of a sensor. This time, a potentiometer should be used as an analogue sensor to permanently send measured values into the network. Behind the 7th door...Read more","og_url":"https:\/\/iot.fkainka.de\/day-7","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2015-12-06T22:01:23+00:00","article_modified_time":"2018-10-24T15:04:10+00:00","og_image":[{"width":1107,"height":540,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day7-1.jpg","type":"image\/jpeg"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/day-7","url":"https:\/\/iot.fkainka.de\/day-7","name":"Day 7: Analogous sensor - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2015-12-06T22:01:23+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-7#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day-7"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day-7#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 7: Analoger Sensor"}]},{"@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\/Day7-1.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-26","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/130"}],"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=130"}],"version-history":[{"count":6,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":639,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/130\/revisions\/639"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/132"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}