Beginner – Advanced – Advanced – Experimental
Getting started: use the temperature and humidity sensor to measure the ambient temperature and humidity, and display it on the four digit digital tube. Use the light intensity sensor to measure the ambient light, and then set the light on prompt on the dot matrix screen.
Advanced: outdoor dressing suggestions and tips, adding speakers/mp3 players..
High order: gas pollution detection, PM2.5, Outdoor sports recommendations.
1.Teaching objectives (knowledge preparation)
Know the temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen.
Temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen are used through programming.
Be able to apply project equipment in combination with life application scenarios.
2.Teaching tasks
Using temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen, the social environment data acquisition is made, and then the value is displayed on the four-way digital tube.

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 | Temperature & Humidity | 1 | ||
| 2 | Four digit digital tube | 1 | ||
| 3 | Light | 1 | ||
| 4 | Matrix Display Dot matrix LED | 1 | ||
Software: Smart Code programming software.
Hardware: SMART Code kit: emperature & Humidity, four digit digital tube, Light, 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 | 24 | ||
| 2 | 7-hole beam | 8 | ||
| 3 | 13-hole beam | 8 | ||
| 4 | T-shaped beam | 8 | ||
| 5 | Black sales | 72 |
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
3.Fixed temperature and humidity sensor, four digit digital tube, light intensity sensor and dot matrix screen.
4.Connect four digit digital tube to realize environmental data display.
5.Use smart code software for programming.
First, create a program entry. The example code is as follows:
Then, the temperature, humidity and light intensity values are obtained and displayed on the four-way digital tube with a time interval of 2 seconds. The example code is as follows:
Then, set the light intensity threshold. When the light intensity is greater than the set value, the dot matrix screen displays “C”, otherwise it displays “O”. The example code is as follows:
Finally, complete all the codes. The example code is as follows:

6.Interesting: record the average or maximum value of the detection value over a period of time.
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:
