Lesson 1 - Smart Gardener: Screen Display Basics

Lesson 1 Smart Gardener – Screen Display Basics

 

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

Students will program the UNIHIKER K10 to create an interactive home gardener interface.

image5.png I can display custom text on the UNIHIKER K10’s screen, adjusting its content, position and color.

image5.png I can show different images on the screen.

image5.png I can use a forever loop to make repeated animations (like blinking eyes).


Engage

image7.png 2 min.

Imagine your school garden has a friendly smart gardener that greets everyone who comes to visit. It blinks and says, "Welcome to our garden! Let's grow something great!"

image9.png

How can we build this cheerful gardener using the UNIHIKER K10?


Background

image7.png 3 min.

The cache text block shows text on the UNIHIKER K10’s screen. By default, the cache text block shows blue text on the first line, but the color and position could be modified in the block.

Click the white circle to modify the text content, it allows for 17 characters on each line. Keep in mind that the spaces count as characters.

image10.png

The cache local image block shows an image on the UNIHIKER K10’s screen. Click the gear icon to select an image and size set, and adjust the position on the screen through the X/Y coordinates.

image11.png

NOTE: Both cache text and cache image blocks need the show cached content block for displaying on the UNIHIKER K10’s screen.

image12.png


Build and Connect

image7.png 10 min.

image13.pngBuild together by the Building instruction.

After groups finish building, prompt them to discuss the questions below:

Where would you place your gardener in your house?

What greeting would you want your gardener to say to your friends when they arrive at your farm?


Program

image14.png 25 min.


Challenge 1-1: Gardener Welcome Message

image17.pngAsk students to plan what will a gardener say when your friends come to your farm.
image18.pngAsk students to connect the UNIHIKER K10 to computer with the cable.
image19.png
image20.png
Groups should show its first message on the screen by following the guide on the challenge card.
image21.pngEncourage students to change the content, color and position to make a special greeting for their friends.


Challenge 1-2: Gardener Blinks

image22.pngAsk students to load the starter project [program1-2]. Choose your favorite image as your gardener. Upload this program first and observe:How many times does the gardener blink?Which state does the gardener stop in, and why?
image23.pngimage24.png
Encourage students to make the gardener blink non-stop, drag the entire blink sequence (the cache draw blocks and wait blocks) into a Forever block.
Here’s what the completed program should look like.


Extra Practice

image14.png 5 min.

Ask students to add a second line of text with a fun message (e.g., "Where are the tomatoes?").

The default blink speed might feel too fast or slow. Challenge students to adjust the wait time in the blink program:

If the blink is too quick, increase the wait time to 5 seconds.

If it’s too slow, decrease the wait time to 1 second.

 

Next Class: Lesson 2

Current Tutorial: Click Here

icon Lesson 1.zip 6.49MB Download(1)
License
All Rights
Reserved
licensBg
0