Beginner – Advanced – Advanced – Experimental
Introduction: Creating Simple Vocal Structures. Includes switch sensors and speakers.
Advanced: Added a four digit clock digital tube and added timing function.
Advanced: timestamp, automatic switch during holidays.
Experiment: Physics experiment, propagation of sound.
1.Teaching objectives (knowledge preparation)
Get to know speakers, understand their control and usage methods.
Implement speaker control through programming. Capable of playing pre prepared audio from the speaker.
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 simple player that can control the speaker to play music by turning it on and off.

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 | Switch | 1 | ||
| 2 | Buzzer | 1 | ||
Software: Smart Code programming software.
Hardware: SMART Code kit: Switch、Buzzer.
Other: Several sound sources and building block equipment.
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
First, connect the switch sensor and speaker.
Use SMART Code to program and control devices.
Firstly, using the advanced functions of the switch sensor, event statements, when the switch key is pressed and released, two event statements are used:
Finally, add the corresponding buzzer statement. The example code is as follows:
3.Optimization and improvement plan.
4.Interesting thinking:
3.Reflection and discussion: What are the methods to play the school ringtone regularly?
Experimental results
Data records: Table 1 and Table 2
Experimental conclusion: The reference code is as follows: (Note: The theoretical time interval is 1000ms, but in order to speed up the time interval, it has been shortened to 100ms.)

5.Extension and Expansion
Reflection and exploration:
Question 1:
Question 2:
