{"id":578,"date":"2025-02-19T10:11:37","date_gmt":"2025-02-19T02:11:37","guid":{"rendered":"https:\/\/code.xedulab.com\/?p=578"},"modified":"2025-03-31T13:51:17","modified_gmt":"2025-03-31T05:51:17","slug":"weekly-reminder","status":"publish","type":"post","link":"https:\/\/code.xedulab.com\/index.php\/2025\/02\/19\/weekly-reminder\/","title":{"rendered":"Weekly reminder"},"content":{"rendered":"<button class=\"simplefavorite-button has-count preset\" data-postid=\"578\" 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: Based on the actual week situation, display the countdown in seconds on a four digit digital tube and the abbreviation of the week on a dot matrix screen.<br>Advanced: Implement timed reminder function.<br>Advanced: Combined with a dot matrix screen, achieve the effect of scrolling subtitles.<br>Experiment: Currently unavailable.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-corecolumns-is-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>1\u3001Teaching objectives (knowledge preparation)<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>Get to know the four-way digital tube, understand the control and usage methods of the four-way digital tube.<br>Implement date and week prompts using four-way digital tubes 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<div class=\"wp-block-columns is-layout-flex wp-container-corecolumns-is-layout-2 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>2\u3001Teaching tasks<\/p>\n<\/div>\n<\/div>\n\n\n\n<p>Build a device that can display week and date prompts using a four-way digital display. Expansion: Combined with dot matrix screen scrolling display.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"762\" height=\"280\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-46.png\" alt=\"\" class=\"wp-image-2981\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-46.png 762w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-46-300x110.png 300w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-corecolumns-is-layout-3 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>3\u3001Preparation of teaching environment and equipment<\/p>\n<\/div>\n<\/div>\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>Four-digit Display<\/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: Four-digit Display \u3001Matrix 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<div class=\"wp-block-columns is-layout-flex wp-container-corecolumns-is-layout-4 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>4\u3001Project Practice Process<\/p>\n<\/div>\n<\/div>\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>Design and create a simple weekly reminder device based on the item list.<\/p>\n\n\n\n<p>Connect the four digit digital tube and dot matrix screen. Use building block modules to secure equipment.<\/p>\n\n\n\n<p>Use SMART Code to program and control devices.<\/p>\n\n\n\n<p>Firstly, create the main program entrance. The example code is as follows:<\/p>\n\n\n\n<p>Then, initialize the dot matrix screen and display it completely off. We plan to have 5 days of weekly reminders, Monday to Friday. Programming time is replaced by 5 seconds instead of a day. (After successful verification, the countdown can be counted down to 86400 seconds per day, and the time interval can be set to 100ms, which means 8640 will be displayed on the four digit digital display.) Example code is as follows:<\/p>\n\n\n\n<p>Then, create the variable &#8216;week&#8217; with an initial value of 0, and increase its value by 1 every time it is repeated. The example code is as follows:<\/p>\n\n\n\n<p>Then, determine the week value and display it on the dot matrix screen. The example code is as follows: (Note: After saving the code, the pattern on the dot matrix screen will disappear in the program, and the display pattern needs to be reset.)<\/p>\n\n\n\n<p>Finally, complete all the logic. The example code is as follows:\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"372\" height=\"1024\" src=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-47-372x1024.png\" alt=\"\" class=\"wp-image-2983\" srcset=\"https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-47-372x1024.png 372w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-47-109x300.png 109w, https:\/\/code.xedulab.com\/wp-content\/uploads\/2025\/02\/image-47.png 395w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><\/figure>\n\n\n\n<p>Optimization and improvement plan.<\/p>\n\n\n\n<p>Run the program to verify if the week and display match.<\/p>\n\n\n\n<p>Optimization and improvement plan.<\/p>\n\n\n\n<p>Interesting thinking: The display logic of dot matrix screens, including cyclic scrolling, breathing flicker, or continuous brightness.<\/p>\n\n\n\n<p>3.<strong>eflection and discussion:<\/strong>How to use programming logic to implement weekly loop scrolling?<\/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<div class=\"wp-block-columns is-layout-flex wp-container-corecolumns-is-layout-5 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<p>5\u3001Extension and Expansion<\/p>\n<\/div>\n<\/div>\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<button class=\"simplefavorite-button has-count preset\" data-postid=\"578\" 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: Based on the actual week situation, d&#8230;<\/p>\n","protected":false},"author":16,"featured_media":2984,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83,84],"tags":[],"class_list":["post-578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-art"],"_links":{"self":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/578","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=578"}],"version-history":[{"count":3,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":2985,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/posts\/578\/revisions\/2985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media\/2984"}],"wp:attachment":[{"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.xedulab.com\/index.php\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}