Introduction: Display the specific orientation of remote sensing through a dot matrix screen, including up, down, left, right, and center.
Advanced: Randomly select several directions through a dot matrix screen, and then repeat through remote sensing.
Advanced: Currently unavailable
Experiment: Currently unavailable
1、Teaching objectives (knowledge preparation)
Understand the joystick and learn how to use it.
Implement joystick control of dot matrix screen display through programming.
Being able to combine real-life application scenarios and apply project devices to achieve intelligent application scenarios in daily life.
2、Teaching tasks
Build a device that can use a joystick to display its orientation on a dot matrix screen.

3、Preparation of teaching environment and equipment
Equipment List: Image (with label number 123456)
Equipment Serial Number Table
| Serial number | number | equipment | Specifications | quantity |
| 1 | Joystick | 1 | ||
| 2 | Matrix Display Dot matrix LED | 1 | ||
| 1 |
Software: Smart Code programming software.
Hardware: SMART Code kit: Joystick,Matrix Display Dot matrix LED
Other: Several building block devices.
Detailed List of Structural Components
| Serial number | number | equipment | Specifications | quantity |
| 1 | 3-hole beam | 12 | ||
| 2 | 7-hole beam | 4 | ||
| 3 | 13-hole beam | 4 | ||
| 4 | T-shaped beam | 4 | ||
| 5 | Black sales | 36 |
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.
4、Project Practice Process
(Summary of Knowledge Points: 1. Components. 2. Program Modules. 3. Program Design)
1.Project video (in video format)
2.Project Steps
1.Firstly, according to the item list, fix the joystick and dot matrix screen.
2.Use SMART Code to program and control devices.
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:
Finally, complete all the logic. The example code is as follows:

3.Optimization and improvement plan.
4.Interesting thinking:
3.Reflection and discussion:
Experimental results:
Data records: Table 1 and Table 2
Experimental conclusion:
5、Extension and Expansion
Reflection and exploration:
Question 1:
Question 2:
