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

1.17 – Secret Handshake

1.17 – Secret Handshake
Estimated time
45 minutes
Difficulty
Beginner
Products
Marty V1

On this page

  1. Lesson overview
  2. Objectives & resources
  3. Key vocabulary
  4. Lesson plan
  5. Extensions and challenges
  6. Additional reading

Extensions and challenges

  • Explore what the values are for the other joints with motors (the dropdown list will help if students aren’t sure which joints will have a motor reading associated!)
  • Program Marty to respond to a force on these different joints – for example, on the eyes!

Additional reading

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

Lesson overview

We have already looked at responding to touch using bump switches, but another way to respond to this kind of action is to look at the motor readings from the servos. Doing this, we can tell when pressure is placed on Marty’s arms and program him to respond, for example, to carry out a handshake with someone!

Prerequisite knowledge

Lessons 1.1-1.16

Learning objectives

  • Explore the values that are being read from the motors during different movements/pressures
  • Understand that when pressure is placed on the motor then the reading value increases
  • Program Marty to carry out a handshake when someone puts some pressure on Marty’s arm

Resources and equipment

  • Marty the Robot
  • Marty Workbook (Lesson 3)
  • Laptops/Computers/Tablets
  • Access to the Scratch editor

Key vocabulary

  • Servo
  • Motor reading
  • Pressure
  • Reaction/Response
  • Force

Lesson plan

1. Talk to students about what happens when we put a force on something, i.e. it usually moves or if it is a button then something happens

2. We have already programmed Marty to respond to touch using bump switches but another way we can do this is by reading the motor values

3. In small groups, get students to create a number of variables that hold the motor value for Marty’s left and right arms (note that students might want to multiply the value by 1000 to get a value that is easier to read!)

a. Note down what the values are when he is stationary, and nothing is touching him

b. Does this change when he walks?

c. What about when we gently apply some pressure onto one of his arms?

4. Program Marty to take part in a short handshake with someone when he feels a force on his arm (when the value is greater than 3)

a. Experiment with using different values here instead of 3 to start a handshake

5. Extend the handshake to create a unique and secret handshake between your group and Marty