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

Cracking the Code - Security & ELA

Cracking the Code - Security & ELA
Estimated time
60 minutes
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. Curriculum standards

Curriculum standards

20
Choose your curriculum to see the relevant standards.

20 of 20 linked standards shown.

Australian CurriculumAustralia4
Curriculum areaLinked standards
Digital Technologies, Design & technologies: Digital Technologies
English: Literature - Reading & Writing

Select a code to read the full standard.

Digital Technologies, Design & technologies: Digital Technologies

  • ACTDIP019Design, modify and follow simple algorithms involving sequences of steps, branching, and iteration (repetition)
  • ACTDIP020Implement digital solutions as simple visual programs involving branching, iteration (repetition), and user input

English: Literature - Reading & Writing

  • ACELY1704using research from print and digital resources to gather and organise information for writing selecting an appropriate text structure for the writing purpose and sequencing content according to that text structure, introducing the topic, and grouping related information in well-sequenced paragraphs with a concluding statement using vocabulary, including technical vocabulary, appropriate to purpose and context using paragraphs to present and sequence a text using appropriate grammatical features, including more complex sentences and relevant verb tense, pronoun reference, adverb and noun groups/phrases for effective descriptions
  • ACELY1707writing letters in print and by email, composing with increasing fluency, accuracy and legibility and demonstrating understanding of what the audience may want to hear
Common CoreUSA2
Curriculum areaLinked standards
English Language Arts: Writing

Select a code to read the full standard.

English Language Arts: Writing

  • 5.W.2Write informative/explanatory texts to examine a topic and convey ideas and information clearly. a. Introduce a topic clearly, provide a general observation and focus, and group related information logically; include formatting (e.g., headings), illustrations, and multimedia when useful to aiding comprehension. b. Develop the topic with facts, definitions, concrete details, quotations, or other information and examples related to the topic. c. Link ideas within and across categories of information using words, phrases, and clauses (e.g., in contrast, especially). d. Use precise language and domain-specific vocabulary to inform about or explain the topic. e. Provide a concluding statement or section related to the information or explanation presented.
  • 5.W.6With some guidance and support from adults, use technology, including the Internet, to produce and publish writing as well as to interact and collaborate with others; demonstrate sufficient command of keyboarding skills to type a minimum of two pages in a single sitting
CSTA Education StandardsUSA2
Curriculum areaLinked standards
General standards

Select a code to read the full standard.

  • 1B-NI-05Discuss real-world cybersecurity problems and how personal information can be protected.
  • 1B-AP-08Compare and refine multiple algorithms for the same task and determine which is the most appropriate.
Curriculum for ExcellenceScotland4
Curriculum areaLinked standards
Literacy & English: Writing
Technologies: Computing Science

Select a code to read the full standard.

Literacy & English: Writing

  • LIT 1-20a / LIT 2-20aEnjoyment and choice
  • LIT 2-28aCreating texts

Technologies: Computing Science

  • TCH 2-13aUnderstanding the world through computational thinking
  • TCH 2-15aDesigning, building and testing computing solutions
England's National CurriculumEngland2
Curriculum areaLinked standards
Computing, Design and Technology: Computing
English: Writing - Composition

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

English: Writing - Composition

  • ✔️Plan their writing by: noting and developing initial ideas, drawing on reading and research where necessary
TEKSUSA6
Curriculum areaLinked standards
Elementary Grade 4: English Language Arts and Reading
Elementary Technology Applications: Grade 3 to Grade 5
Middle School Technology Applications: Grade 6 to Grade 8

Select a code to read the full standard.

Elementary Grade 4: English Language Arts and Reading

  • ELA.4.11.AThe student is expected to plan a first draft by selecting a genre for a particular topic, purpose, and audience using a range of strategies such as brainstorming, freewriting, and mapping;
  • ELA.4.12.BThe student is expected to compose informational texts, including brief compositions that convey information about a topic, using a clear central idea and genre characteristics and craft;

Elementary Technology Applications: Grade 3 to Grade 5

  • 1.CCreativity and innovation. The student uses creative thinking and innovative processes to construct knowledge and develop digital products. The student is expected to: use virtual environments to explore systems and issues.
  • 4.CCritical 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 student-created products through self and peer review for relevance to the assignment or task;

Middle School Technology Applications: Grade 6 to Grade 8

  • 1.CCreativity and innovation. The student uses creative thinking and innovative processes to construct knowledge, generate new ideas, and create products. The student is expected to: explore complex systems or issues using models, simulations, and new technologies to make predictions, modify input, and review results;
  • 4.CCritical thinking, problem solving, and decision making. The student makes informed decisions by applying critical-thinking and problem-solving skills. The student is expected to: collect and analyze data to identify solutions and make informed decisions;

Resources

Learner resources

  • WorkbookFile links loading

Educator resources

  • PowerPointFile links loading
  • Teachers GuideFile links loading

Lesson overview

Learners will begin by writing a short scenario in which a password or access code is needed. They will then create a secret sequence of musical notes that acts as a password, programming Marty to perform a routine only when the correct combination is entered. They should also program Marty's response when an incorrect code is entered.

The aim of the lesson is for learners to understand how multiple inputs can be combined to trigger an action, rather than relying on a single input.

Learning objectives

  • I can write instructions for a person to enter a code.
  • I can write a program to unlock an action.

Key vocabulary

  • broadcast
  • code
  • password
  • if then

Prior learning

Awareness of if statements, experience with ‘broadcasting’ messages.

Cross-curricular links

Writing, security, ELA

Before you begin

Equipment

  • A Marty V2
  • A compatible device that allows access to the Robotical App

Technical information

Pre-Lesson Preparation

If possible, gather a selection of objects that use combinations or passwords, such as a bicycle lock, padlock, mini safe, bank card or key lock. Display these at the front of the classroom as learners arrive and ask them to consider what the objects have in common. If you do not have access to these items, Slide 4 provides examples for discussion.

Warm-up

TimingActivityPossible adaptations
Timing—

Warm-Up

Share the learning objectives and success criteria from Slide 2 of the presentation.

Begin by asking learners if they use anything protected by a password or PIN. Responses might include tablets, phones, email accounts, games, bank cards or diaries.

In pairs or small groups, ask learners to discuss why passwords are useful. Prompt them to consider questions such as:

  • Why do we use passwords?
  • What are they protecting?
  • Why is it important that other people cannot easily guess them?

Learners can record their ideas in their workbooks.

Next, show Slide 3, where Marty demonstrates a password being entered incorrectly before the correct password is entered. In this example, the password consists of a sequence of three notes.

Possible adaptations—

Get learning

TimingActivityPossible adaptations
Timing—

Get Learning

Use Slides 4 and 5 to introduce different types of locks and passwords. The speaker notes provide guidance for discussing each example and comparing the level of security they provide.

Slide 5 includes examples of passwords with varying strengths. You may also wish to demonstrate how quickly different passwords can be cracked using the Password Monster website:
https://www.passwordmonster.com/

Discuss why longer passwords and those containing a wider range of characters are generally more secure.

Slide 6 contains a short video explaining how a traditional combination lock works. This is optional and can be skipped if time is limited.

Explain that, for this lesson, Marty will act as the lock. Each group will create a secret password that another group will try to crack.

Slides 7–9 introduce the programming concepts needed to create a password using Marty's sound blocks. Learners will use musical notes as the password, with Marty responding differently depending on whether the correct sequence has been entered.

Ask groups to decide:

  • What is Marty protecting?
  • How will users enter the password?
  • How many notes will be available to choose from?
  • What will Marty do when the correct password is entered?
  • What will happen if the password is incorrect?

Encourage learners to make their instructions clear enough for another group to understand how to interact with their program, while keeping the password itself secret.

Cool down

TimingActivityPossible adaptations
Timing—

Cool Down

Bring the class back together and discuss what they discovered about creating secure passwords.

You could ask questions such as:

  • Were your instructions clear enough for another group to use?
  • How difficult was it for another group to guess your password?
  • Was a three-note password secure enough? Why or why not?
  • What changes could make your password more secure?
  • How did the Broadcast block help organise your program?
  • Can you think of other situations where Broadcast blocks would be useful?

Finish with a quick formative assessment, such as thumbs up, sideways or down, to gauge learners' confidence before completing your usual end-of-lesson routines.

Possible adaptations—

Before showing Slide 10, give learners time to plan their password and the action it will unlock. Slides 10–12 then demonstrate how the program is built.

Possible adaptations—
Timing—

Time for Practice

Learners should decide on:

  • the length of their password
  • which notes can be used
  • how Marty will indicate whether each note is correct or incorrect
  • what action Marty will perform when the full password is entered correctly

In the example shown in the Teacher Guide, the password consists of three notes. Increasing either the number of available notes or the length of the password increases the number of possible combinations, making the password more secure.

Introduce the Broadcast and Receive blocks on Slide 10. These blocks, found in the Events category, help keep programs organised by allowing different parts of the code to communicate without creating long, nested if statements.

Slide 11 demonstrates how Broadcast blocks can be used when different notes are played. As learners create longer passwords with more possible note choices, using broadcasts will make their programs much easier to read and debug.

The presentation demonstrates how to build a simple one-note password before extending it into a longer sequence. Learners should use this as the basis for creating a password that is secure enough to be challenging but still possible for another group to guess during the lesson.

In the example program from the Teacher Guide, Marty plays a low note when an incorrect choice is made and a higher note when a correct note is entered. Explain that once an incorrect note has been played, the overall password can no longer be correct, so any remaining guesses are also treated as incorrect.

As learners work, circulate around the classroom, encouraging them to explain how their password system works and why they chose that level of security.

Possible adaptations

Support

Support writers with a skeleton framework for instructions they might use for the instruction text, included in the learner resources.

Have learners initially create the code for one note letter for the password, highlighting the use of the broadcast and receive blocks. Then challenge them to add one more note letter to the password with an if then else block. Explicitly state that the ‘then’ part is what the person chose, and the else part is the other letters.

Further challenge ideas

Extension

Have learners plan code that either allows note letters to repeat or allows for a fourth note letter for the password. Have them explore how much more complicated the code will become if that were to happen.