Lesson 3 - Seedling Stage: Environmental Data Monitoring

Lesson 3 Seedling Stage: Environmental Data Monitoring

 

image3.png Challenges: 3-1, 3-2

Students learn how to make the UNIHIKER K10 show sensor values on its screen.

image5.png I can combine text and sensor values on the UNIHIKER K10’s screen.

image5.png I can represent data using both text labels and visual charts.

image5.png I can explore other sensors to monitor more environmental conditions for seedlings.


Engage

image7.png 2 min.

Have you ever planted a seed, checked it every day, and wondered: Is it too hot? Is the air too dry? Farmers use agricultural weather stations to keep track of these conditions for their crops. These stations help them make sure seedlings get exactly what they need to grow strong.

image9.jpeg

How could we build a mini weather station using our UNIHIKER K10 to watch over our seedlings?


Background

image7.png 3 min.

Temperature & Humidity Sensor: This small device measures air temperature (in °C) and humidity (as a percentage—how much water is in the air). This sensor reads values as integers. Its temperature detection range is 0 to 50 degrees Celsius, and humidity ranges from 20 to 90 %RH.

image10.png

The initialize screen orientation block rotates display view and the default angle is 0°. The parameter sets counterclockwise rotation for K10, with text shown top-down and left-right after adjustment.

image11.png

The cache text + read pin block will show the sensor value on

the UNIHIKER K10’s screen.

image12.png

The cache draw rectangle block uses XYWH parameters to control its position and size. This block could be used to create bar graph for data visualization.

image13.png


Build and Connect

image7.png 10 min.

image14.pngBuild together by the Building instruction.


Program

image15.jpeg 25 min.


Challenge 3-1: Make Sensor Data Meaningful

image18.jpegimage19.png
Ask students to connect the Temperature & Humidity Sensor to the UNIHIKER K10. The pin number does not matter, but it must match the code settings later.
Here is a sample:
image20.jpegDirect students to open Program3-1 in their Mind+. Adjust the pin setting to match your sensor’s connection, upload the program and observe the raw number on the screen.
image21.jpegimage22.png
Guide student to discuss: What’s missing from this display?How would someone know this number represents temperature?Encourage students to add values’ name like “Temperature”, and use different text colors and positions to distinguish temperature and humidity data.
Here is a sample:


Challenge 3-2: Visualize Data with Bar Graphs

image23.jpegAsk students to load the starter project program3-2 and upload it.
Explain that this program uses a horizontal bar graph to represent humidity levels.
Test: Breathe on the sensor to see the bar change.
Guide students to share how does the bar graph makes humidity data easier to understand than numbers?
image24.jpegHave students modify the XYWH parameter in the cache draw rectangle block, pose these questions:What happens when you adjust the X value? What about the Y value?If you want the bar graph to be “fatter” (wider), which parameter do you need to change?


Extra Practice

image15.jpeg 5 min.

Ask students to browse the UNIHIKER K10’s Sensors library for other data monitoring displays.

image25.jpeg

Show students how to use when button events to change background color.

image26.png

Ask students to create a program that makes the UNIHIKER K10 to display different background colors when different buttons are pressed.

 

 

Next Class: Lesson 4

Current Tutorial: Click Here

icon Lesson 3.zip 2.87MB Download(0)
License
All Rights
Reserved
licensBg
0