Outdoor Activity Testing

Introduction: Use temperature and humidity sensors to measure outdoor environmental data, such as temperature and humidity.
Advanced: Display data through a dot matrix screen based on the outdoor environment status.
Advanced: Consider storing environmental data for prediction.
Experiment: Currently unavailable.

1、Teaching objectives (knowledge preparation)

Understand temperature and humidity sensors, and learn about their control and usage methods.

Implement the use of temperature and humidity sensors to monitor outdoor environments 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 temperature and humidity sensor that can detect outdoor environments and display data on four digital sensors. Thus, a device that provides a prompt on whether to go out through a dot matrix screen.

(Project completion image: in image format)

3、Preparation of teaching environment and equipment

Equipment List: Image (with label number 123456)

Equipment Serial Number Table

Serial numbernumberequipmentSpecificationsquantity
1 Temperature & Humidity 1
2 Four-digit Display 1
3 Matrix Display Dot matrix LED 1
     

Software: Smart Code programming software.

Hardware: SMART Code kit: Temperature & Humidity、Four-digit Display、Matrix Display Dot matrix LED.

Other: Several building block devices.

Detailed List of Structural Components

Serial numbernumberequipmentSpecificationsquantity
1 3-hole beam 18
2 7-hole beam 6
3 13-hole beam 6
4 T-shaped beam 6
5 Black sales 54

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 temperature and humidity sensor, four-way digital tube, and dot matrix screen.
  2. The four digital tubes display the ambient temperature, humidity, and initial value of 0 in sequence.
  3. Set up logic that meets outdoor activities, using logic and. The temperature is greater than 5 degrees Celsius and the humidity is less than 50%.
  4. Use SMART Code to program and control devices.

Firstly, create a program entry and initialize the four digital tubes with a value of 0, causing the dot matrix screen to not display. The example code is as follows:

Then, create a loop statement to obtain temperature and humidity values, which are displayed sequentially on four digital displays with a time interval of 1 second. Finally, adding a display of 0 indicates completion of one detection. The example code is as follows:

Then, write logic suitable for outdoor activities using the “logic and” statement. If the temperature is greater than 5 degrees Celsius and the humidity is less than 50%, it is suitable for outdoor activities. Display “√” on the dot matrix screen, otherwise display “X”. Example code is as follows:

Finally, complete all the logic. The example code is as follows:

  • Optimization and improvement plan.
  • Run the program to verify whether the temperature and humidity values will change according to environmental changes.
  • Optimization and improvement plan.
  • Interesting thinking: Factors influencing outdoor activity environment monitoring, comparison of morning and evening data differences.

3.Reflection and discussion:

Experimental results

Data records: Table 1 and Table 2

Experimental conclusion:

5、Extension and Expansion

SWR001
Author: SWR001

you have missed

Last News

Contact Us

025-83202845

MORE

Single Up

Login