This website uses cookies to ensure you get the best experience on our website.
Ohbot
  • OH
    • Educators
    • Makers
  • About
    • Our Robots
    • Our Story
    • Follow Us
    • Contact
  • Shop
    • All Robots
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • OhbotApp2
    • Accessories
    • Resellers
  • Get Started
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • Accessories
    • Technical Notes
    • Languages
    • Support
  • Learn
    • Picoh
    • Ohbot
    • AI
    • Robot Work
    • Share

<-PICOH SCHEME

Sequence 1 - Lesson 3: Over and Over

Picture
Learning Intention

I can refine a program by using the repeat instruction.
​

Picture
Introduction
​

What did we learn to do in the previous session?  (Use the keyboard to control Picoh).  Remember when we use the keyboard to control Picoh, Picoh’s head will only continue to move up and down as long as the N (for nod) key is being pressed.  Consequently, if you press N again and again, Picoh will nod again and again.  However, in programming this is not the most efficient way to perform an instruction multiple times.  Look at the Control palette, can you see an instruction that could help us?  We need to use the repeat instruction.  This week we will learn to write code using repeat. 

Teacher Input 1

Ask the children to open the Picoh application on their computer and go to New on the File menu to create a blank program.  Let’s see if we can find repeat.  Go to the Control palette and drag out a repeat instruction. Demonstrate that the number can be changed to set the number of times the code inside the loop is repeated.  Can you write some code to make Picoh’s head move up and down 10 times? How many times do you need to repeat the code? (10). 
Picture
Activity
​
1. Write a program to make Picoh’s head move up and down 10 times.                                                                                                     
 
File, Save As - headnodwithrepeat

Picture
.2. Can you write a program that will make Picoh shake its head twice and then look straight ahead? 

​File, Save As
– crossingtheroad

Picture
​3. Can you write some code for Picoh to perform a sequence of movements one after the other? E.g. nod twice, shake twice then blink twice.
 
File, Save As – keepfit 

Extension

Can you write your own keep fit sequence for Picoh with at least 3 moves and using repeat?

File
, Save As – mykeepfit 
Plenary

How did you find today’s lesson? (Thumbs up, down, middle).  Remember that programmers can be quite lazy so repeats are perfect for them because they mean shorter programs and less work.
Picture
OH
Educators
Makers

About
Our Story
Follow Us
Consultancy
Contact
Shop
All Robots
Ohbot Assembled
Ohbot Kit
Picoh
OhbotApp2
Accessories
Resellers
Get Started
​Ohbot Kit
Ohbot Assembled
Picoh
Accessories
Technical Notes

Languages
Support

Learn
Picoh

Ohbot
AI
Robot Work
Share
Picture
Picture
Picture
Picture
Picture
​Ohbot Ltd. 2A Halliday's Mill, London Road, Chalford, Gloucestershire, GL6 8NR, UK
Copyright © Ohbot Ltd.  All rights reserved.
​Ohbot
® is a registered trademark of Ohbot Ltd.
  • OH
    • Educators
    • Makers
  • About
    • Our Robots
    • Our Story
    • Follow Us
    • Contact
  • Shop
    • All Robots
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • OhbotApp2
    • Accessories
    • Resellers
  • Get Started
    • Ohbot Assembled
    • Ohbot Kit
    • Picoh
    • Accessories
    • Technical Notes
    • Languages
    • Support
  • Learn
    • Picoh
    • Ohbot
    • AI
    • Robot Work
    • Share