Introduction to Sequential Key Coding

Learners will be introduced to sequential programming of Phiro robot.

Objective

By the end of this lesson, learners will be able to

  • Identify and understand sequential keys
  • Demonstrate knowledge of how to program without a computer
  • Become familiar with concept of sequence and debugging
  • be introduced to creative coding with Phiro & Sequential Keys by exploring example programs
  • Imagine possibilities of their own Sequential Key-based creative coding of robots
Subjects

Robotics, Coding

Age

4 - 8 Years

Duration

20 min

Robot & Accessories Needed

Phiro Unplugged or Phiro Pro robot

Review

Intro to Phiro
User Manual

  • step1
  • step2
  • step3
STEP 1

Understanding Phiro's Sequential Keys

Sequential Keys are arrow buttons that you tap to program Phiro robot to move Forward, Backward, and Turn Right or Left. You can create a Phiro character, make up a story, create a sequence of instructions with the Keys. Simple tap the keys, press play and watch Phiro come alive!

  • Phiro Moves 15 cm forward
  • Phiro Moves 15 cm backward
  • Phiro turns 90 degree left
  • Phiro turns 90 degree right
  • PHIRO's RGBCMYK LED
  • Last Step Clear Button
  • Clear all Button
  • Change Mode Button
  • Download Button
  • Play Program Button
STEP 2

Programming Phiro with Sequential Keys

1. Turn on Phiro.

2. Press Mode button until the Green LED light glows on Sequential Key mode indicator

3. Make sure all previous programs are cleared

4. Press the Arrow Key

5. Press Play

Debug: Sometimes when you make Phiro do something and you see it doesn't do what you asked it to do, you can figure what the problem or bug is, and fix it. This is called Debugging. Use this key on Phiro to delete the buggy step.

Now, Let's try some example programs!

STEP 3

Example Program 1

Make Phiro move forward 3 times and backward 3 times.

1. Press Clear All

2. Press Forward 3X

3. Press Backward 3X

4. Press Play

Example Program 2

Make Phiro move forward, then turn right, backward, and turn left. Notice how Phiro turns.

1. Press Clear All

2. Press Forward

3. Press Right Turn

4. Press Backward

5. Press Left Turn

6. Press Play

Example Program 3

Make Phiro trace a square shape

Press Clear All

Press Forward

Press Right Turn

Press Forward

Press Right Turn

Press Forward

Press Right Turn

Press Forward

Press Right Turn

Press Play

NOTE: Use Last step clear button, if you pressed a wrong key.

Example Program 4

Make Phiro trace a zigzag shape

Press Clear All

Press Forward

Press Right Turn

Press Forward

Press left Turn

Press Forward

Press Right Turn

Press Forward

Press left Turn

Press Play

NOTE: Use Last step clear button, if you pressed a wrong arrow key.

What can you make Phiro do with Sequential Keys? Imagine a story or game!