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 2 - Lesson 5: Two Variables

Picture
Learning Intention

​I can use more than one variable in a program 

Introduction

What did we learn to do last week? (We learnt how to use a say instruction to speak the variable ‘Count’ and we completed some additional counting challenges using variables.) Today we are going to continue with our work on variables. What is a variable? We will be creating some new variables to count Picoh’s movements. This will link up with the movement tasks we completed in Year 3 and all the work we have covered on the variable ‘Count’ in Year 4. 
Picture
Teacher Input 1

We are now going to use Make a Variable to create a variable called ‘head nod’. This variable will be used to count the number of times Picoh moves its head up and down in a task. Remember to have the tick next to ‘head nod’ on the Data palette to watch the counting.

If we use a repeat instruction with a count of 2, how many times will Picoh nod? (2). Therefore, the ‘head nod’ count will go up to two. If we use a count of 10, how many times will Picoh nod? (10). Therefore, the ‘head nod’ count will go up to 10. 

Picture
Activities
​

1 Can you write a program that uses repeat to make Picoh nod its head a number of times? 

​2. Can you write some code to make Picoh count the number of times it nods its head? You can explore the code by changing the number of repeats. 

File, Save As - countheadnod
Picture
Picture
3. Can you write a program to make Picoh count the number of times it blinks?

File, Save As – countblink 
Picture
Picture
Picture
Extension

Can you make three variables for Picoh’s keep fit routine? Can you write a script to make Picoh count the number of times it nods his head, shakes its head and looks up and down with its eyes? 

File, Save As – countkeepfit

Plenary

Encourage children to share their programs with the class and discuss ones that don’t work, work partially or have used a different algorithm to reach the same outcome. Encourage children to talk through how they work block by block and work as a class to debug a program to improve it.
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