{"id":2945,"date":"2025-03-28T17:24:33","date_gmt":"2025-03-28T09:24:33","guid":{"rendered":"https:\/\/code.xedulab.com\/?p=2945"},"modified":"2025-03-31T13:53:33","modified_gmt":"2025-03-31T05:53:33","slug":"countdown-2","status":"publish","type":"post","link":"https:\/\/code.xedulab.com\/index.php\/2025\/03\/28\/countdown-2\/","title":{"rendered":"Countdown"},"content":{"rendered":"<button class=\"simplefavorite-button has-count preset\" data-postid=\"2945\" 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>Introduction: Use switch sensors and four-way digital tubes to complete the countdown function.<\/p>\n\n\n\n<p>Advanced: Positive timing, timed at specified time intervals.<\/p>\n\n\n\n<p>Advanced: Currently unavailable<\/p>\n\n\n\n<p>Experiment: Currently unavailable<\/p>\n\n\n\n<p>1\u3001Teaching objectives (knowledge preparation)<\/p>\n\n\n\n<p>Know four digital sensors.<\/p>\n\n\n\n<p>Four way digital nixie tube can be controlled by 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\u3001Teaching tasks<\/p>\n\n\n\n<p>Complete the countdown programming by using the switch sensor and four-way digital nixie tube, and the countdown number is displayed on the four-way digital nixie tube.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"574\" height=\"279\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-21.png\" alt=\"\" class=\"wp-image-2946\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-21.png 574w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-21-300x146.png 300w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/figure>\n\n\n\n<p>3\u3001Preparation 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>Switch<\/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>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><td>1<\/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: Switch, four digit digital tube.<\/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>18<\/td><\/tr><tr><td>2<\/td><td>&nbsp;<\/td><td>7-hole beam<\/td><td>&nbsp;<\/td><td>6<\/td><\/tr><tr><td>3<\/td><td>&nbsp;<\/td><td>13-hole beam<\/td><td>&nbsp;<\/td><td>6<\/td><\/tr><tr><td>4<\/td><td>&nbsp;<\/td><td>T-shaped beam<\/td><td>&nbsp;<\/td><td>6<\/td><\/tr><tr><td>5<\/td><td>&nbsp;<\/td><td>Black sales<\/td><td>&nbsp;<\/td><td>54<\/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\u3001Project 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\u3001<strong>Project video (in video format)<\/strong><\/p>\n\n\n\n<p>2\u3001<strong>Project Steps<\/strong><\/p>\n\n\n\n<p>1.According to the list of items, fix the switch and four digit clock digital tube.<\/p>\n\n\n\n<p>2.Use smart code programming software to complete the programming design. Countdown statement encapsulation.<\/p>\n\n\n\n<p>3.Use smart code software for programming.<\/p>\n\n\n\n<p>First, complete the switch logic settings and use the advanced functions of the switch sensor. The example code is as follows:<\/p>\n\n\n\n<p>Then, reset the number on the four-way digital nixie tube. When the switch sensor is pressed, the four-way digital nixie tube displays &#8220;0000&#8221;, and the example code is as follows:<\/p>\n\n\n\n<p>Then, release the switch sensor and start the countdown. 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=\"197\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-22.png\" alt=\"\" class=\"wp-image-2947\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-22.png 865w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-22-300x68.png 300w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-22-768x175.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p>4.Run the program, debug the switch and use the timing function.<\/p>\n\n\n\n<p>5.Optimization and improvement plan.<\/p>\n\n\n\n<p>6.Interesting thinking: whether the comparison between the program countdown and the clock countdown is accurate. Reverse the value of the rotary potentiometer.<\/p>\n\n\n\n<p>3\u3001<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\u3001Extension 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<button class=\"simplefavorite-button has-count preset\" data-postid=\"2945\" 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 Introduction: Use switch sensors and four-way digit&#8230;<\/p>\n","protected":false},"author":16,"featured_media":2948,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-2945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laser-cutting"],"_links":{"self":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/2945","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=2945"}],"version-history":[{"count":1,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/2945\/revisions"}],"predecessor-version":[{"id":2949,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/2945\/revisions\/2949"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media\/2948"}],"wp:attachment":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media?parent=2945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/categories?post=2945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/tags?post=2945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}