{"id":2929,"date":"2025-03-28T17:10:21","date_gmt":"2025-03-28T09:10:21","guid":{"rendered":"https:\/\/code.xedulab.com\/?p=2929"},"modified":"2025-03-31T13:46:59","modified_gmt":"2025-03-31T05:46:59","slug":"2929","status":"publish","type":"post","link":"https:\/\/code.xedulab.com\/index.php\/2025\/03\/28\/2929\/","title":{"rendered":"Environmental data collection"},"content":{"rendered":"<button class=\"simplefavorite-button has-count preset\" data-postid=\"2929\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;background-color:#ffffff;border-color:#ffffff;color:#686868;\"><i class=\"sf-icon-favorite\" style=\"color:#686868;\"><\/i>\u6536\u85cf<span class=\"simplefavorite-button-count\" style=\"\">0<\/span><\/button>\n<p><strong>Beginner &#8211; Advanced &#8211; Advanced &#8211; Experimental<\/strong><\/p>\n\n\n\n<p>Getting started: use the temperature and humidity sensor to measure the ambient temperature and humidity, and display it on the four digit digital tube. Use the light intensity sensor to measure the ambient light, and then set the light on prompt on the dot matrix screen.<\/p>\n\n\n\n<p>Advanced: outdoor dressing suggestions and tips, adding speakers\/mp3 players..<\/p>\n\n\n\n<p>High order: gas pollution detection, PM2.5\uff0c Outdoor sports recommendations.<\/p>\n\n\n\n<p>1.Teaching objectives (knowledge preparation)<\/p>\n\n\n\n<p>Know the temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen.<\/p>\n\n\n\n<p>Temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen are used through programming.<\/p>\n\n\n\n<p>Be able to apply project equipment in combination with life application scenarios.<\/p>\n\n\n\n<p>2.Teaching tasks<\/p>\n\n\n\n<p>Using temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen, the social environment data acquisition is made, and then the value is displayed on the four-way digital tube.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"850\" height=\"321\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-17.png\" alt=\"\" class=\"wp-image-2932\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-17.png 850w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-17-300x113.png 300w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-17-768x290.png 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<p>3.Preparation of teaching environment and equipment<\/p>\n\n\n\n<p>Equipment List: Image (with label number 123456)<\/p>\n\n\n\n<p><strong>Equipment Serial Number Table<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Serial number<\/td><td>number<\/td><td>equipment<\/td><td>Specifications<\/td><td>quantity<\/td><\/tr><tr><td>1<\/td><td>&nbsp;<\/td><td>Temperature &amp; Humidity<\/td><td>&nbsp;<\/td><td>1<\/td><\/tr><tr><td>2<\/td><td>&nbsp;<\/td><td>Four digit digital tube<\/td><td>&nbsp;<\/td><td>1<\/td><\/tr><tr><td>3<\/td><td>&nbsp;<\/td><td>Light<\/td><td>&nbsp;<\/td><td>1<\/td><\/tr><tr><td>4<\/td><td>&nbsp;<\/td><td>Matrix Display Dot matrix LED<\/td><td>&nbsp;<\/td><td>1<\/td><\/tr><tr><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Software: <\/strong>Smart Code programming software.<\/p>\n\n\n\n<p><strong>Hardware: <\/strong>SMART Code kit: emperature &amp; Humidity, four digit digital tube, Light, Matrix Display Dot matrix LED.<\/p>\n\n\n\n<p><strong>Other: <\/strong>Several building block devices.<\/p>\n\n\n\n<p><strong>Detailed List of Structural Components<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Serial number<\/td><td>number<\/td><td>equipment<\/td><td>Specifications<\/td><td>quantity<\/td><\/tr><tr><td>1<\/td><td>&nbsp;<\/td><td>3-hole beam<\/td><td>&nbsp;<\/td><td>24<\/td><\/tr><tr><td>2<\/td><td>&nbsp;<\/td><td>7-hole beam<\/td><td>&nbsp;<\/td><td>8<\/td><\/tr><tr><td>3<\/td><td>&nbsp;<\/td><td>13-hole beam<\/td><td>&nbsp;<\/td><td>8<\/td><\/tr><tr><td>4<\/td><td>&nbsp;<\/td><td>T-shaped beam<\/td><td>&nbsp;<\/td><td>8<\/td><\/tr><tr><td>5<\/td><td>&nbsp;<\/td><td>Black sales<\/td><td>&nbsp;<\/td><td>72<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Note: Materials required to fix a set of sensors: 6 3-hole beams, 2 7-hole beams, 2 13 hole beams, 2 T-shaped beams, and 18 black pins.<\/p>\n\n\n\n<p>4.Project Practice Process<\/p>\n\n\n\n<p>(Summary of Knowledge Points: 1. Components. 2. Program Modules. 3. Program Design)<\/p>\n\n\n\n<p>1.<strong>Project video (in video format)<\/strong><\/p>\n\n\n\n<p>2.<strong>Project Steps<\/strong><\/p>\n\n\n\n<p>3.Fixed temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen.<\/p>\n\n\n\n<p>4.Connect four digit digital tube to realize environmental data display.<\/p>\n\n\n\n<p>5.Use smart code software for programming.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p>First, create a program entry. The example code is as follows:<\/p>\n\n\n\n<p>Then, the temperature, humidity and light intensity values are obtained and displayed on the four-way digital tube with a time interval of 2 seconds. The example code is as follows:<\/p>\n\n\n\n<p>Then, set the light intensity threshold. When the light intensity is greater than the set value, the dot matrix screen displays &#8220;C&#8221;, otherwise it displays &#8220;O&#8221;. The example code is as follows:<\/p>\n\n\n\n<p>Finally, complete all the codes. The example code is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"865\" height=\"716\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-18.png\" alt=\"\" class=\"wp-image-2934\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-18.png 865w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-18-300x248.png 300w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-18-768x636.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p>6.Interesting: record the average or maximum value of the detection value over a period of time.<\/p>\n\n\n\n<p>3.<strong>Reflection and discussion:<\/strong><\/p>\n\n\n\n<p>Experimental results<\/p>\n\n\n\n<p>Data records: Table 1 and Table 2<\/p>\n\n\n\n<p>Experimental conclusion:<\/p>\n\n\n\n<p>5.Extension and Expansion<\/p>\n\n\n\n<p>Reflection and exploration:<\/p>\n\n\n\n<p>Question 1:<\/p>\n\n\n\n<p>Question 2:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n<button class=\"simplefavorite-button has-count preset\" data-postid=\"2929\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;background-color:#ffffff;border-color:#ffffff;color:#686868;\"><i class=\"sf-icon-favorite\" style=\"color:#686868;\"><\/i>\u6536\u85cf<span class=\"simplefavorite-button-count\" style=\"\">0<\/span><\/button>","protected":false},"excerpt":{"rendered":"<p>\u6536\u85cf0 Beginner &#8211; Advanced &#8211; Advanced &#8211; &#8230;<\/p>\n","protected":false},"author":16,"featured_media":2935,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84,86],"tags":[],"class_list":["post-2929","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-art","category-environment"],"_links":{"self":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/2929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/comments?post=2929"}],"version-history":[{"count":3,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/2929\/revisions"}],"predecessor-version":[{"id":3021,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/2929\/revisions\/3021"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media\/2935"}],"wp:attachment":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media?parent=2929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/categories?post=2929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/tags?post=2929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}