{"id":611,"date":"2025-02-20T09:42:12","date_gmt":"2025-02-20T01:42:12","guid":{"rendered":"https:\/\/code.xedulab.com\/?p=611"},"modified":"2025-03-31T13:50:09","modified_gmt":"2025-03-31T05:50:09","slug":"joystick-indicator","status":"publish","type":"post","link":"https:\/\/code.xedulab.com\/index.php\/2025\/02\/20\/joystick-indicator\/","title":{"rendered":"Joystick indicator"},"content":{"rendered":"<button class=\"simplefavorite-button has-count preset\" data-postid=\"611\" 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: Display the specific orientation of remote sensing through a dot matrix screen, including up, down, left, right, and center.<br>Advanced: Randomly select several directions through a dot matrix screen, and then repeat through remote sensing.<br>Advanced: Currently unavailable<br>Experiment: Currently unavailable<\/p>\n\n\n\n<p><strong>1\u3001Teaching objectives (knowledge preparation)<\/strong><\/p>\n\n\n\n<p>Understand the joystick and learn how to use it.<br>Implement joystick control of dot matrix screen display through programming.<br>Being able to combine real-life application scenarios and apply project devices to achieve intelligent application scenarios in daily life.<\/p>\n\n\n\n<p><strong>2\u3001Teaching tasks<\/strong><\/p>\n\n\n\n<p>Build a device that can use a joystick to display its orientation on a dot matrix screen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"730\" height=\"280\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-38.png\" alt=\"\" class=\"wp-image-2961\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-38.png 730w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-38-300x115.png 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p><strong>3\u3001Preparation of teaching environment and equipment<\/strong><\/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>Joystick<\/td><td>&nbsp;<\/td><td>1<\/td><\/tr><tr><td>2<\/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>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: Joystick,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>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><strong>4\u3001Project Practice Process<\/strong><\/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.Firstly, according to the item list, fix the joystick and dot matrix screen.<\/p>\n\n\n\n<p>2.Use SMART Code to program and control devices.<\/p>\n\n\n\n<p>Firstly, use the advanced statements of the joystick and display them in combination with the dot matrix screen statements. The pattern on the dot matrix screen uses arrows to indicate direction, with the center point displayed in the middle. The example code is as follows:<\/p>\n\n\n\n<p>Finally, complete all the logic. The example code is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"865\" height=\"295\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-39.png\" alt=\"\" class=\"wp-image-2963\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-39.png 865w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-39-300x102.png 300w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-39-768x262.png 768w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p>3.Optimization and improvement plan.<\/p>\n\n\n\n<p>4.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><strong>5\u3001Extension and Expansion<\/strong><\/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=\"611\" 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: Display the specific orientation of r&#8230;<\/p>\n","protected":false},"author":16,"featured_media":2964,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84,82],"tags":[],"class_list":["post-611","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-art","category-robotics"],"_links":{"self":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/611","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=611"}],"version-history":[{"count":2,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/611\/revisions"}],"predecessor-version":[{"id":2965,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/611\/revisions\/2965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media\/2964"}],"wp:attachment":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media?parent=611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/categories?post=611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/tags?post=611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}