{"id":691,"date":"2025-03-06T14:01:06","date_gmt":"2025-03-06T06:01:06","guid":{"rendered":"https:\/\/code.xedulab.com\/?p=691"},"modified":"2025-03-31T13:47:38","modified_gmt":"2025-03-31T05:47:38","slug":"automatic-door","status":"publish","type":"post","link":"https:\/\/code.xedulab.com\/index.php\/2025\/03\/06\/automatic-door\/","title":{"rendered":"Automatic door"},"content":{"rendered":"<button class=\"simplefavorite-button has-count preset\" data-postid=\"691\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"1\" 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=\"\">1<\/span><\/button>\n<p>Getting started: use infrared sensors and steering gear to realize the automatic opening and closing of electric doors. When a pedestrian is detected, the door opens automatically.<\/p>\n\n\n\n<p>Advanced: None<\/p>\n\n\n\n<p>High level: None<\/p>\n\n\n\n<p>Experiment: None<\/p>\n\n\n\n<p>1.Teaching objectives (knowledge preparation)<\/p>\n\n\n\n<p>Know the infrared sensor and its working principle and parameter range.<\/p>\n\n\n\n<p>The control of the steering gear can be controlled by programming, and the automatic opening and closing of the door can be realized by combining with the infrared sensor.<\/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>Infrared sensor and actuator are used to realize the automatic opening and closing of the electric door.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"817\" height=\"319\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-2.png\" alt=\"\" class=\"wp-image-2889\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-2.png 817w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-2-300x117.png 300w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-2-768x300.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/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>Obstacle Avoidance Detection<\/td><td>&nbsp;<\/td><td>1<\/td><\/tr><tr><td>2<\/td><td>&nbsp;<\/td><td>Servo<\/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: Obstacle Avoidance Detection, Servo.<\/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>12<\/td><\/tr><tr><td>2<\/td><td>&nbsp;<\/td><td>7-hole beam<\/td><td>&nbsp;<\/td><td>4<\/td><\/tr><tr><td>3<\/td><td>&nbsp;<\/td><td>13-hole beam<\/td><td>&nbsp;<\/td><td>4<\/td><\/tr><tr><td>4<\/td><td>&nbsp;<\/td><td>T-shaped beam<\/td><td>&nbsp;<\/td><td>4<\/td><\/tr><tr><td>5<\/td><td>&nbsp;<\/td><td>Black sales<\/td><td>&nbsp;<\/td><td>36<\/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>3.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>1.Fix the steering gear and infrared sensor according to the list of items.<\/p>\n\n\n\n<p>2.Use the steering gear to build the opening and closing door.<\/p>\n\n\n\n<p>3.Adjust the detection position of the infrared sensor.<\/p>\n\n\n\n<p>4.Use smart code programming software to complete the programming design.<\/p>\n\n\n\n<p>First, create the main program. The example code is as follows:<\/p>\n\n\n\n<p>Then, cycle to judge the two states of the infrared sensor. The example code is as follows:<\/p>\n\n\n\n<p>Then, the infrared sensor does not detect pedestrians, and the steering gear control door is closed. When pedestrians are detected, the steering gear control door is open. 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=\"630\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-3.png\" alt=\"\" class=\"wp-image-2891\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-3.png 865w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-3-300x218.png 300w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/03\/image-3-768x559.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p>5.Optimization and improvement plan.<\/p>\n\n\n\n<p>6.Interesting thinking:<\/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=\"691\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"1\" 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=\"\">1<\/span><\/button>","protected":false},"excerpt":{"rendered":"<p>\u6536\u85cf1 Getting started: use infrared sensors and steering &#8230;<\/p>\n","protected":false},"author":16,"featured_media":2892,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"class_list":["post-691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-robotics"],"_links":{"self":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/691","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=691"}],"version-history":[{"count":3,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/691\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/691\/revisions\/2893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media\/2892"}],"wp:attachment":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media?parent=691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/categories?post=691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/tags?post=691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}