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

All lessons
Marty app
CurrentPrevious

2.04: Introducing Parallel Programming

How do robots multitask? Using parallel programming!

2.04: Introducing Parallel Programming
Age / stage
8 - 10
Estimated time
45 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

  • Educator’s Guide
  • Introduction to Programming with Marty using Blocks

Curriculum standards

18
Choose your curriculum to see the relevant standards.

18 of 18 linked standards shown.

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

Select a code to read the full standard.

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
  • ACTDIP022Plan, create and communicate ideas and information, including collaboratively online, applying agreed ethical, social and technical protocols
CSTA Education StandardsUSA2
Curriculum areaLinked standards
General standards

Select a code to read the full standard.

  • 1B-AP-11Decompose (break down) problems into smaller, manageable subproblems to facilitate the program development process.
  • 1B-AP-12Modify, remix, or incorporate portions of an existing program into one's own work, to develop something new or add more advanced features.
Curriculum for ExcellenceScotland8
Curriculum areaLinked standards
Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing
Literacy & English: Listening and Talking
Literacy & English: Writing
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-05aFinding and using information
  • LIT 2-09aCreating texts

Literacy & English: Writing

  • LIT 2-23aTools for writing
  • LIT 2-26aOrganising and using information
  • LIT 2-28aCreating texts

Technologies: Computing Science

  • TCH 2-14aUnderstanding and analysing computing technology
  • TCH 2-15aDesigning, building and testing computing solutions
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)

  • 1dStudents understand the fundamental concepts of technology operations, demonstrate the ability to choose, use and troubleshoot current technologies and are able to transfer their knowledge to explore emerging technologies.
  • 4cStudents develop, test and refine prototypes as part of a cyclical design process.
TEKSUSA2
Curriculum areaLinked standards
Elementary Technology Applications: Grade 3 to Grade 5

Select a code to read the full standard.

Elementary Technology Applications: Grade 3 to Grade 5

  • 2.ACommunication and collaboration. The student collaborates and communicates both locally and globally using digital tools and resources to reinforce and promote learning. The student is expected to: draft, edit, and publish products in different media individually and collaboratively;
  • 4.DCritical thinking, problem solving, and decision making. The student applies critical-thinking skills to solve problems, guide research, and evaluate projects using digital tools and resources. The student is expected to: evaluate technology tools applicable for solving problems.

Resources

Learner resources

  • Workbook for Introducing Parallel ProgrammingFile links loading

Educator resources

  • Teacher GuideFile links loading
  • Presentation for Introducing to Parallel ProgrammingFile links loading

Lesson overview

This lesson will be a basic introduction to parallel programming where students will think about how they can go about getting Marty to do two things at the same time rather than one after the other. First, this will be demonstrated in Blocks before trying it out with Marty.

Learning objectives

  • I can describe what parallel means.
  • I can create separate blocks of code that work in parallel - they do not overlap and are carried out at the same time.

Key vocabulary

  • Code blocks
  • Parallel
  • Sequence
  • Programming

Prior learning

Awareness of event blocks and what they do; knowledge of a variety of movement blocks

Before you begin

Equipment

  • Marty the Robot v2
  • Marty Workbook
  • Tablets
  • Access to the Blocks editor

Warm-up

TimingActivityPossible adaptations
Timing—

Warm up

Ask learners if they have ever helped with dinner, for example, chopping some vegetables, stirring something that was cooking or measuring ingredients. Inform learners that if others were working with them to create the meal, they were working in parallel with other people.

Share with learners a couple of funny video clips of people working in parallel but then something going wrong. The first two video clips show what happens when the working relationship breaks down. The third clip doesn't show people working in parallel but only what can happen when someone stops working in parallel.

The first video of Marty shows him doing a dance that requires the arms and legs moving together. The dance block, by itself, also accomplishes this but having separate movements, in parallel, allows for a lot more control in terms of timing and angle of movement.

Parallel code running at the same time

Have learners think of actions they complete each day that involves them doing two things at once: some examples could be holding down shift and a letter on the keyboard to get a capital letter, turning a key and a handle to open a locked door, stirring a mixture and adding ingredients while cooking, holding down two buttons on a device to take a screen capture. Have learners complete the workbook page about actions that require parallel parts. The actions can be very close together when they happen at the same time but, as long as one does not stop the other from being accomplished, they are parallel actions.

Possible adaptations—

Get learning

TimingActivityPossible adaptations
Timing—

Get Learning

Tying in the vocabulary of parallel programming with mathematics, the next slide in the presentation shows two parallel lines traveling across the slide. This will hopefully reinforce the idea that parallel programming has elements that work at the same time but don't interact. The parallel lines go on, forever, never touching, and always staying the same distance apart (click on the slide to see the animation occur). The workbook has six shapes with learners to mark the parallel sides. Arrows have been used to show that these sides would extend in this direction without touching the other side. The trapezium (or trapezoid) and parallelogram are the other two shapes that need marks for parallel sides; the triangles do not have parallel sides.

There is an example of a person patting their head and rubbing their stomach, which illustrates the kind of process learners will be coding today: these two actions do not interfere, they are independent actions. This may be challenging for some learners so make it fun. If you feel that this will be too challenging for some learners, feel free to delete the slide.

Discuss which sort of movements could not be done in parallel and why they can't be. Have learners complete the task in their workbook identifying potential parallel processes and actions that cannot be completed in parallel. Suggest that learners try this with themselves: which actions are they able to complete in parallel and why are they not able to. Explore the reasons for their thoughts; this should be fairly straightforward, you can't lift and lower the same hand at the same time; you can't lift both feet off the ground at the same time because of gravity (not the same as a jump); some of Marty's actions require a variety of parts to move at the same time, so you couldn't press dance and expect to move the arms, legs or eyebrows at the same time as the dance block is being executed.

Cool down

TimingActivityPossible adaptations
Timing—

Cool Down

Bring learners back together to discuss the challenges they faced and overcame. Have groups model their creations and explain what is happening, when. Encourage questions about differences between the design of different groups' code. If a group chose to explore any extension activities, allow for time to explain this.

Suggested questions you might ask:

  • Which interesting combinations did you create?
  • Were there any movements that you could not create to run in parallel that were unexpected? Does anyone have any thoughts as to why they might not have executed, properly?
  • Can anyone think of a good reason why control of each individual movement mighty be better for a programmer rather than relying on a pre-made block that brings a lot of movements together?

Carry out any end of lesson routines.

Log off devices and clear everything away.

Possible adaptations—
Possible adaptations—
Timing—

Time for Practice

Give learners a chance to think what sort of actions they would like Marty to carry out: maybe it is a dance, perhaps something simpler like walking and waving or even making a sound (but hopefully not too much) while moving.

Show learners how to create parallel blocks by dragging two event blocks onto the workspace. Drag the lift and lower left arm blocks under one of the event blocks and do the same with the right arm for the other event block. The slide on the presentation shows how this should look. The next again slide shows the video of Marty executing the code. Give learners an opportunity to scan through the blocks and see that there are no blocks that do this by themselves: you need to make use of parallel programming principles to create a complex action, for Marty.

Watch on YouTube

The movement on the video happens once and stops. Challenge learners to have an action that repeats or a more complex one: first the arms move in parallel, then arms and one leg, maybe the eyebrows, etc.

Possible adaptations

Support

With every block of code learners put onto the workspace, encourage them to 'be' Marty: have them model the movement and feel what other movements they would be able to do at the same time but also encourage them to think about concepts like balance and comfort.

Encourage learners to think back about opposite actions and why two opposite actions cannot occur at the same time.

Further challenge ideas

Extend

  • Challenge Learners to create some of the pre-made moves: dance, wiggle, kick, wave, etc.
  • Learners will need to observe and record the individual movements and then work on the timing to perfect their code.
Watch on YouTube
Watch on YouTube
Watch on YouTube