Skip to content
Learning Site
Home

About

  • About Robotical
  • Case Studies
  • Meet the Team
  • Blog
  • Contact Us

Our Products

  • Marty the Robot
  • Axiom
  • Cog

Teach

  • Lessons & Resources
  • Marty for Educators
  • Funding & Grants
  • Professional Development
  • Why Teach STEM?
  • Coding Environments
  • Student Led Learning

Let's Code

  • Marty the Robot
  • Code Online
  • Marty Apple App
  • Marty Android App
  • Update your Marty
  • Cog
  • Code Online
  • Cog iOS App
  • Cog Android App
  • Axiom
  • Axiom Science

Support

  • Marty Get Started
  • Cog Quick Start Guide
  • Axiom Science Quick Start Guide
  • Support & FAQs
  • Marty V2 User Guides
  • Marty V1 Resources
  • Request Support
  • Request Top-Up Training

Shop

  • Marty the Robot and Physical Computing
  • Class Packs
  • Add Ons & Extras
  • Account
  • Shipping, Returns & Cancellations
  • Distributors
HomeLessonsUnits of workCurriculum standardsTutorials

Information

  • Lessons & Resources
  • Knowledge Base & User Guides
  • About Us
  • Shipping, Returns & Cancellation
  • Privacy Policy
  • Learning site privacy
  • Terms of Service
  • Partner Hub

Support & Help

  • Support & Help Center
  • Getting Started with Marty V2
  • Getting Started with Marty V1

Learning, Resources & Guides

  • Marty V2 Lessons Site
  • Marty V1 Lessons Site

Contact Us in the UK

Stanhope House,12 Stanhope Place,Edinburgh,United Kingdom,EH12 5HH
(+44) 0131 564 0922
hello@robotical.io
Contact Us

Contact Us in the US

2810N Church St, PMB 61694,Wilmington,Delaware,USA19802-4447
(+1) 833 886 1661
hello@robotical.io
Contact Us

Why not join our mailing list?

For News, New Products and Special Offers

Join mailing list

Copyright 2016-2026 © Robotical Ltd

Step 3 of 3

Trial Unit of Work - 30 Minute Lessons

Step 3 of 3: Trial Lesson Upper Elementary 30 minutes - Obstacles

  1. 3Trial Lesson Upper Elementary 30 minutes - Obstacles
Marty app
CurrentPrevious

Trial Lesson Upper Elementary 30 minutes - Obstacles

Give Marty a reaction when something is in the way

Trial Lesson Upper Elementary 30 minutes - Obstacles
Age / stage
8 - 10
Estimated time
30 minutes
Difficulty
Intermediate
Products
Marty V2

On this page

  1. Lesson overview
  2. Before you begin
  3. Warm-up
  4. Get learning
  5. Further challenge ideas
  6. Cool down
  7. Additional reading
  8. Curriculum standards

Additional reading

Look at some of the lessons that use loops and conditional statements:

Choices with an If Statements

Using loops

Additionally, please consult the information for the IR (obstacle) sensor

Curriculum standards

19
Choose your curriculum to see the relevant standards.

19 of 19 linked standards shown.

Australian CurriculumAustralia3
Curriculum areaLinked standards
Digital Technologies, Design & technologies: Design & Technologies
Digital Technologies, Design & technologies: Digital Technologies

Select a code to read the full standard.

Digital Technologies, Design & technologies: Design & Technologies

  • ACTDEP025Generate, develop and communicate design ideas and processes for audiences using appropriate technical terms and graphical representation techniques

Digital Technologies, Design & technologies: Digital Technologies

  • ACTDIK014Examine the main components of common digital systems and how they may connect together to form networks to transmit data
  • ACTDIP019Design, modify and follow simple algorithms involving sequences of steps, branching, and iteration (repetition)
CSTA Education StandardsUSA2
Curriculum areaLinked standards
General standards

Select a code to read the full standard.

  • 1B-AP-10Create programs that include sequences, events, loops, and conditionals.
  • 1B-AP-13Use an iterative process to plan the development of a program by including others' perspectives and considering user preferences.
Curriculum for ExcellenceScotland10
Curriculum areaLinked standards
Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing
Literacy & English: Listening and Talking
Literacy & English: Reading
Literacy & English: Writing
Numeracy: Number, Money and Measure
Technologies: Computing Science

Select a code to read the full standard.

Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing

  • HWB 0-14a / HWB 1-14a / HWB 2-14a / HWB 3-14a / HWB 4-14aSocial wellbeing

Literacy & English: Listening and Talking

  • LIT 2-02aTools for listening and talking
  • LIT 2-07aUnderstanding, analysing and evaluating

Literacy & English: Reading

  • LIT 2-15aFinding and using information

Literacy & English: Writing

  • LIT 1-20a / LIT 2-20aEnjoyment and choice
  • LIT 2-26aOrganising and using information

Numeracy: Number, Money and Measure

  • MNU 0-01aEstimation and rounding
  • MNU 2-11aMeasurement

Technologies: Computing Science

  • TCH 2-13aUnderstanding the world through computational thinking
  • TCH 2-14bUnderstanding and analysing computing technology
England's National CurriculumEngland2
Curriculum areaLinked standards
Computing, Design and Technology: Computing
Computing, Design and Technology: Design and Technology

Select a code to read the full standard.

Computing, Design and Technology: Computing

  • ✔️Understand what algorithms are; how they are implemented as programs on digital devices; and that programs execute by following precise and unambiguous instructions

Computing, Design and Technology: Design and Technology

  • ✔️Design purposeful, functional, appealing products for themselves and other users based on design criteria
ISTEUSA2
Curriculum areaLinked standards
International Society for Technology in Education (ISTE)

Select a code to read the full standard.

International Society for Technology in Education (ISTE)

  • 4aStudents know and use a deliberate design process for generating ideas, testing theories, creating innovative artifacts or solving authentic problems.
  • 5dStudents understand how automation works and use algorithmic thinking to develop a sequence of steps to create and test automated solutions.

Resources

Learner resources

  • Workbook for ObstaclesFile links loading

Educator resources

  • Teacher GuideFile links loading
  • Presentation for the ObstaclesFile links loading
Trial Unit of Work - 30 Minute Lessons
Unit overview
1Trial Lesson Lower Elementary 30 minutes - What is the order
2Trial Lesson Middle Elementary 30 minutes - Let's Repeat
Previous stepTrial Lesson Middle Elementary 30 minutes - Let's Repeat
Unit completeUnit overview

Lesson overview

In this lesson learners will have Marty react to an obstacle.

How do we detect objects that are in our way? How is it different for a robot? The answer is sensors.

Learning objectives

  • Detect an obstacle in Marty’s path
  • Have Marty react if there is something in the way

Key vocabulary

  • obstacle sensor
  • if statement
  • conditional statement
  • repeat block

Prior learning

Awareness of if statements and repeat blocks

Cross-curricular links

Writing instructions, Maths estimation and direction language

Before you begin

Equipment

  • Marty the Robot V2
  • Marty Workbook
  • Tablets
  • Access to the Blocks editor in the Robotical app
  • IR Sensor add on for Marty V2

Warm-up

TimingActivityPossible adaptations
Timing—

Warm Up

Have the presentation open before the lesson starts. Ask learners if they know what parkour is and what people need to do to perform parkour. Have learners list their ideas in the workbook; this could be done individually, as part of a group, or as a whole class. Encourage learners to describe how to perform any of the moves that they know.

Encourage learners to show mini models of the moves in parkour, perhaps using their fingers as legs and jumping off surfaces like books on their desk or other small obstacles they could use. There is a video on slide 2 of the presentation that is a fun display of some finger parkour. This can be deleted if you do not need it.

After a chance to describe moves, show the clip from slide 3 in the presentation - Atlas performing parkour. Have learners think about what a robot would need to be able to do what a person can do.

Watch on YouTube
Watch on YouTube

Following a discussion around the videos, share the objectives and success criteria on slides 4 and 5.

Possible adaptations—

Get learning

TimingActivityPossible adaptations
Timing—

Get Learning

Robots need sensors to respond to their environment and they need instructions for what to do after they sense different objects. Marty has an obstacle sensor that comes attached to their foot and the color sensor also detects obstacles. What do we need to think about, for Marty, in order to respond to an obstacle?

Show a response from Marty upon approaching an obstacle. There is a video on slide 6 of the presentation that shows Marty's reactions to an obstacle.

Watch on YouTube

Question ideas are in the presentation notes on slide 6.

Share with learners an image of the IR sensor and a slide of how it works (slides 7 and 8 in the presentation). Explain that the IR sensor gets feedback from light that reflects off the wall and that is how Marty 'knows' something is in the way.

Below are images of Marty's sensor and a diagram of how the sensor works

The responses from the sensor are described on slide 8.

Learners may have already learned about something called BOOLEANs, these are pieces of code that take only two values; for Marty, they are true or false. When you go to the sensing tab on Blocks and press the 'Foot obstacle sensed' block, if there is nothing directly in front of the foot with the sensor, this will return false. If there is something there, it will return true. It would help to show this on a device screen to the class, so that they can appreciate how close Marty needs to be to react by moving Marty close to an object and pressing the foot sensing block on the device and then repeating this when moving Marty farther away. Alternatively, tapping the box beside the block will keep the feedback from the distance sensor on the workspace.

Cool down

TimingActivityPossible adaptations
Timing—

Cool Down

Take time to discuss the learning that occurred.

Suggested questions you might ask:

  • What was interesting or challenging about using the obstacle sensor?
  • What modifications would you suggest for someone designing a new obstacle sensor?
  • Where are some other areas of our lives where an obstacle sensor is a helpful tool?

Carry out any end of lesson routines.

Log off devices and clear everything away.

Possible adaptations—

Unit resources

Learner resources

  • Trial Lesson Lower Elementary 30 minutes - What is the order.zip
  • Trial Lesson Middle Elementary 30 minutes - Let's Repeat.zip
  • Trial Lesson Upper Elementary 30 minutes - Obstacles.zip

Click here for more information on the obstacle sensor.

Slide 9, from the presentation, shows the most basic code to have Marty respond to an obstacle. Slide 10 shows the code in action.

Watch on YouTube

There are ideas for discussion, on slide 9, for the code as well as locations for each of the blocks.

Possible adaptations—
Timing—

Time For Practice

There are questions on slide 11 to promote learners to think about how they could improve on Marty's code. They may have noticed that the Marty from the second video was only two steps from the wall, so taking two steps would result in the sensor returning true. Try running code on the class Marty from a greater distance. What can we do to ensure Marty reaches and detects an obstacle so that they can react to it?

Learners may suggest using a repeat block, but you could also say that they should keep their ideas within their group to encourage a greater diversity of responses.

Have a whole-class planning session with ideas for how you can improve on the basic code, which will enable Marty to respond to objects that are initially farther away. You will need to decide if you are entering the code into the app for Marty to perform, if there is a learner in your class who will have this responsibility or if you want groups to enter the code on their iPads and then connect to Marty when they are ready.

Possible adaptations

Support

Provide supportive questions around how we have actions repeat, repeat block, how we have Marty do one action depending on what happens first if/then/else block.

While learners are planning, emphasize that they need to think about what happens as the code executes:

  • Marty walks forward (how do we make Marty take another step?)
  • Marty continues to walk forward until the sensor alerts Marty (how do we tell Marty what to do if something is detected?)
  • A different action occurs (how do I code the different actions that could occur?)

Further challenge ideas

Extend

Challenge learners to have Marty react differently if they detect two obstacles in a short period of time. The first video of Marty moving, from the presentation, illustrates the different responses he might have. Learners may choose a different sound or raising arms in exasperation. The goal is a different response.