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. Objectives & resources
  3. Key vocabulary
  4. Lesson plan
  5. Extensions and challenges
  6. Curriculum standards

Extensions and challenges

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.

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.

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 need to write a short scenario for a situation where they need to use a password or code. They will then need to devise a secret combination of notes that will unlock a routine for Marty that they will need to write. Additionally, learners will need to write what happens in the event of an incorrect code.

The goal of the lesson is to have Marty react to a combination instead of a single input.

Prerequisite knowledge

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

Cross-curricular links

Writing, security, ELA

Learning objectives

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

Resources and equipment

  • MartyBlocks
  • compatible device
  • workbook

Key vocabulary

  • Broadcast
  • code
  • password
  • if then

Lesson plan

Pre-lesson preparation

Any device that requires a combination would be a useful prop: bicycle lock, mini-safe, bank card, key lock. Display these at the front and ask learners to think about what they have in common, as they enter the room. If you do not have these available, slide 4 illustrates a variety to talk about.

Warm-up

Share with learners the learning objectives and success criteria for the lesson (slide two from the presentation). Ask learners if they have anything with a password that they like to keep secure. There may be a variety of answers, these may include any devices they use or share, email passwords, any child bank accounts, diaries, etc.

Have learners talk in their groups about the usefulness of passwords. What purpose do they serve, they secure things, they keep things private, etc. Ask learners to record ideas in their workbook.

Showcase Marty from slide three demonstrating a password being entered incorrectly and then correctly. The password is three letters with corresponding notes.

Get learning

Show learners some examples from slide four that feature uses for locks and passwords, the notes will guide what to say for each example. The goal is to share the range of examples that rely on good security. Take time to show the various levels of security that can be used for passwords and how secure each example is. In the notes, for slide five, is a link to a website that will let learners see how quickly a computer can crack a password. The images on this slide show five examples of the level of security for different passwords. Feel free to access it here to show your class. https://www.passwordmonster.com/

Slide six showcases a video of a standard combination lock and the mechanics of what opens it just for information; this can be removed, if time is limited.

For this lesson, learners will be using Marty as the safe or the lock and other groups will try to crack the code. Slides seven to nine will walk learners through the steps needed to create the code to ‘unlock’ an action. We use the sound functionality that Marty has, accessed in the sound section to indicate if the letter that was chosen and if password is correct: you will see that Marty can play an octave for a chosen instrument. Some instruments have a lower note, so they allow for a lower octave.

Learners will need to craft instructions for others in the class to try and get Marty to reveal a special tune, a new move, or a recording if you have already explored that functionality with Marty. Have learners think within group about a way to ask others to enter a password: what is being secured, how can we enter the password, how many letters can I choose from? It is important that the instructions are clear otherwise no one will be able to guess the correct answer. Before showing slide ten, have learners develop their password plan. Slides ten to twelve will show Marty responding to a basic code program and then how the code was built.

Time for Practice

Learners need to decide on a length for their password, and a way for checking if the correct note was played to access what is being secured. In the example, at the start of the presentation and described in the teacher guide, Marty’s password has three letters that make up the password. The three letters correspond to three notes. In the example, there are six eventualities that could be created from the code. If the note letters could be reused, there would be twenty-seven combinations. The more note letters you allow for the password, the more potential passwords there are.

On slide 10, the broadcast and receive blocks are shown. These are crucial for creating tidy, readable code when there are if blocks. The broadcast block is in the events section. Slide 11 gives an example of these blocks in use when different notes are guessed. The broadcast blocks are especially useful when you have more than 1 note, and more than 2 choices, for the password: it gets really messy to have so much code blocks inside the if statements. The presentation illustrates how to build a one note password device. Learners will use this to extend the password to something more secure but still guessable in the lesson time.

In the example code, from the teachers guide, we used a low instrument as an incorrect guess and a higher instrument as a correct guess; however, if the first guess is incorrect, all following guesses are also marked as incorrect because the whole combination will be wrong.

Cooldown

Bring learners back together to discuss the learning. Ask them if there any passwords they have that they might consider changing because they are not very secure.

Suggested questions you might ask:

  • Did clear instructions important for the people guessing your password? Did you think at all about the difference it would have made if your password had not been clear?
  • Was a three-letter password very secure?
  • Did you discover any ways to make it more secure?
  • Did you find the broadcast block useful? Can you think of any other uses it might serve?

Carry out any end of lesson routines.