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

3.02: Accelerometer

Move Marty and use the accelerometer readings to play a game in MartyBlocks!

3.02: Accelerometer
Estimated time
45 minutes
Difficulty
Advanced
Products
Marty V2

On this page

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

Extensions and challenges

  • Extend the game by turning it into a multiplayer game where two people can play using two Martys as input
  • Can students use X, Y and Z values to move sprites around on the screen?

Additional reading

  • Educator’s Guide
  • Introduction to Programming with MartyBlocks

Curriculum standards

19
Choose your curriculum to see the relevant standards.

19 of 19 linked standards shown.

Australian CurriculumAustralia4
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

  • ACTDEP036Generate, develop, test and communicate design ideas, plans and processes for various audiences using appropriate technical terms and technologies including graphical representation techniques
  • ACTDEP039Use project management processes when working individually and collaboratively to coordinate production of designed solutions

Digital Technologies, Design & technologies: Digital Technologies

  • ACTDIP026Analyse and visualise data using a range of software to create information, and use structured data to model objects or events
  • ACTDIP029Design algorithms represented diagrammatically and in English, and trace algorithms to predict output for a given input and to identify errors
CSTA Education StandardsUSA2
Curriculum areaLinked standards
General standards

Select a code to read the full standard.

  • 2-DA-09Refine computational models based on the data they have generated.
  • 2-AP-11Create clearly named variables that represent different data types and perform operations on their values.
Curriculum for ExcellenceScotland7
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 3-02aTools for listening and talking
  • LIT 3-07aUnderstanding, analysing and evaluating

Literacy & English: Writing

  • LIT 3-23aTools for writing
  • LIT 3-25aOrganising and using information

Technologies: Computing Science

  • TCH 3-14aUnderstanding and analysing computing technology
  • TCH 3-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)

  • 5dStudents understand how automation works and use algorithmic thinking to develop a sequence of steps to create and test automated solutions.
  • 6cStudents communicate complex ideas clearly and effectively by creating or using a variety of digital objects such as visualizations, models or simulations.
TEKSUSA2
Curriculum areaLinked standards
Middle School Technology Applications: Grade 6 to Grade 8

Select a code to read the full standard.

Middle School Technology Applications: Grade 6 to Grade 8

  • 3.AResearch and information fluency. The student acquires, analyzes, and manages content from digital resources. The student is expected to: create a research plan to guide inquiry;
  • 6.ETechnology operations and concepts. The student demonstrates a thorough understanding of technology concepts, systems, and operations. The student is expected to: identify, understand, and use hardware systems;

Resources

Learner resources

  • Student Workbook for AccelerometersFile links loading

Educator resources

  • Teacher GuideFile links loading
  • Presentation Slides for AccelerometersFile links loading

Solution resources

  • Solutions for AccelerometersFile links loading

Lesson overview

Another sensor that Marty has is the accelerometer which can track his movement. In this lesson, students will anaylse Marty’s accelerometer readings and use this to create a small game in MartyBlocks where when we move Marty around, this moves the sprite around on the screen

Prerequisite knowledge

A firm grasp of coordinates; a strong awareness of conditional statements; awareness of accelerometers

Learning objectives

  • Understand what an accelerometer is and what other devices may contain accelerometers
  • Monitor the values that are stored by the accelerometer in Marty
  • Create a small game where moving Marty around will move the sprite around on the screen

Resources and equipment

  • Marty the Robot
  • Marty Workbook pages
  • Tablet with Bluetooth 4.2+
  • Access to the MartyBlocks editor

Key vocabulary

  • Accelerometer
  • Movement
  • Programming
  • Input
  • Values
  • Game

Lesson plan

  1. Research into what an accelerometer is and what other devices contain them. What is an accelerometer? What is it used for? Complete the task in workbooks looking at which devices have accelerometers in them
  2. Split students into small groups that will be experimenting with the values that the accelerometer calculates by storing the values into variables so that we can monitor them (note that students may want to multiply the value by 1000 to get an easily readable number). How do these values change when Marty walks? How do these values change when you physically move Marty from side to side or forwards and backward? Which one changes when you move Marty left to right? (X, Y or Z)
  3. Create a small game where Marty is the input to move the sprite around the screen. Based on the notes that students took whilst monitoring the sensor values, they can work out what the thresholds are for the sprite to start to move left or right