{"id":1349,"date":"2016-12-12T00:01:46","date_gmt":"2016-12-11T23:01:46","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=1349"},"modified":"2018-10-24T16:05:11","modified_gmt":"2018-10-24T15:05:11","slug":"day12-2016","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day12-2016","title":{"rendered":"Day 12: Light monitor"},"content":{"rendered":"<p>Behind today&#8217;s door, you&#8217;ll find a phototransistor. This is a sensor with which the brightness can be measured. You&#8217;ll do that today, but in addition to simple measurement, the project also sounds an alarm as soon as limit values that you&#8217;ve pre-set in the app are exceeded. So that everything will function, you have to connect the sensor with a voltage divider circuit at Pin A0, as shown in the picture below. Pay attention to the correct polarity of the phototransistor (short leg to VCC). It does also work the other way round, but not nearly as sensitively.<\/p>\n<div id=\"attachment_1356\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR.jpg\"><img aria-describedby=\"caption-attachment-1356\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1356 size-large\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR-1024x500.jpg\" alt=\"Der Phototransistor in Spannungsteilerschaltung mit einem 10 kOhm Widerstand\" width=\"616\" height=\"301\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR-1024x500.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR-300x146.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR-768x375.jpg 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR-972x475.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_1_LDR.jpg 1106w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-1356\" class=\"wp-caption-text\">The phototransistor in voltage divider circuit with a 10-kohm resistor<\/p><\/div>\n<p>The Blynk interface looks pretty full today. Many different functions are realised with widgets. Through one of them, represented by the Twitter bird, you can connect your Twitter account to the project. This is one of the channels through which you can receive an alarm message.<br \/>\n<iframe loading=\"lazy\" style=\"height: 400px; width: 100%; margin: 10px 0;\" src=\"https:\/\/create.arduino.cc\/editor\/FKainka\/e7476665-85e7-4aa5-b614-fcbca6a40451\/preview?embed\" width=\"300\" height=\"150\" frameborder=\"0\"><\/iframe><br \/>\n<a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1216.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-1357 alignleft\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1216.png\" alt=\"blynk_tag1216\" width=\"226\" height=\"226\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1216.png 500w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1216-150x150.png 150w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1216-300x300.png 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Blynk_Tag1216-60x60.png 60w\" sizes=\"(max-width: 226px) 100vw, 226px\" \/><\/a><\/p>\n<p>There&#8217;s something more to do in the Arduino programme today, too. In addition to WLAN data and token, you can enter an email address today. That&#8217;s the other channel through which an alarm message is sent.<\/p>\n<p>If you start the interface now, you&#8217;ll already see a row of measured values scrolling above the topmost element. You can follow the progression of values with the line. If you pass your hand over the sensor, the measured values become significantly lower. Using the sliding switch directly below the measured values, you can set limit values that must not be exceeded or fallen below. At the bottom, there&#8217;s also a blue and a white button. With these, you can activate or deactivate the reporting via Twitter or via email. The LED next to the respective symbol shows the current status. If a measured value leaves the allowed range, the system goes into an alarm state and sends a message. A terminal in the centre also gives information about current events. You can also set a new message text using the terminal. Thus you&#8217;re always up to date on whether e.g. your plants are getting enough light.<\/p>\n<p><div id=\"attachment_1358\" style=\"width: 295px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3.png\"><img aria-describedby=\"caption-attachment-1358\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-1358\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3-576x1024.png\" alt=\"Ein Alarm wurde ausgel\u00f6st\" width=\"285\" height=\"506\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3-576x1024.png 576w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3-169x300.png 169w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3-768x1365.png 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3-972x1728.png 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3.png 1080w\" sizes=\"(max-width: 285px) 100vw, 285px\" \/><\/a><p id=\"caption-attachment-1358\" class=\"wp-caption-text\">An alarm was triggert<\/p><\/div><\/p>","protected":false},"excerpt":{"rendered":"<p>Behind today&#8217;s door, you&#8217;ll find a phototransistor. This is a sensor with which the brightness can be measured. You&#8217;ll do that today, but in addition to simple measurement, the project also sounds an alarm as soon as limit values that&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day12-2016\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":1358,"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,127],"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 12: Light monitor - 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\/day12-2016\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 12: Light monitor - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"Behind today&#8217;s door, you&#8217;ll find a phototransistor. This is a sensor with which the brightness can be measured. You&#8217;ll do that today, but in addition to simple measurement, the project also sounds an alarm as soon as limit values that...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day12-2016\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-11T23:01:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-24T15:05:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1920\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/day12-2016\",\"url\":\"https:\/\/iot.fkainka.de\/day12-2016\",\"name\":\"Day 12: Light monitor - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2016-12-11T23:01:46+00:00\",\"dateModified\":\"2018-10-24T15:05:11+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day12-2016#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day12-2016\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day12-2016#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 12: Lichtw\u00e4chter\"}]},{\"@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 12: Light monitor - 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\/day12-2016","og_locale":"en_US","og_type":"article","og_title":"Day 12: Light monitor - Internet of Things with the NanoESP","og_description":"Behind today&#8217;s door, you&#8217;ll find a phototransistor. This is a sensor with which the brightness can be measured. You&#8217;ll do that today, but in addition to simple measurement, the project also sounds an alarm as soon as limit values that...Read more","og_url":"https:\/\/iot.fkainka.de\/day12-2016","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2016-12-11T23:01:46+00:00","article_modified_time":"2018-10-24T15:05:11+00:00","og_image":[{"width":1080,"height":1920,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2016\/09\/Day12_3.png","type":"image\/png"}],"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\/day12-2016","url":"https:\/\/iot.fkainka.de\/day12-2016","name":"Day 12: Light monitor - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2016-12-11T23:01:46+00:00","dateModified":"2018-10-24T15:05:11+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day12-2016#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day12-2016"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day12-2016#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 12: Lichtw\u00e4chter"}]},{"@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\/09\/Day12_3.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-lL","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1349"}],"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=1349"}],"version-history":[{"count":6,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1349\/revisions"}],"predecessor-version":[{"id":1711,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/1349\/revisions\/1711"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/1358"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=1349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=1349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=1349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}