Lesson 1 - Home Butler: Screen Display Basics

Lesson 1 Home Butler – Screen Display Basics

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

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

image5.png I can display custom text on the UNIHIKER K10’s screen, adjusting its position, content, 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 walking home from school, opening your front door, and seeing a friendly butler on your smart home screen greet you by name with a smiling, blinking face.

image9.png

How can we build this warm welcome 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 for 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 home butler in your house?

What greeting would you want your butler to say to your friends when they arrive for your birthday party?

Program

image14.png 25 min.

image15.png Challenge 1-1: Butler Welcome Message

image17.pngAsk students to plan what will a home butler say when your friends come to your birthday party.
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 the position to make a special greeting for their friends.

image15.png Challenge 1-2: Butler Blinks

image22.pngAsk students to load the starter project [program1-2]. Choose your favorite image as your butler. Upload this program first and observe:How many times does the butler blink?Which state does the butler stop in, and why?
image23.pngimage24.png
Encourage students to make the butler 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., "Want a snack?").

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 - Home Lighting: Input and Output Exploration

Current Tutorial: Click Here

icon Smart Home-Lesson1.zip 4.63MB Download(0)
License
All Rights
Reserved
licensBg
0