Scratch (Word Blocks) program to turn fast and use Motion Sensor from LEGO Education SPIKE Prime

In this program we demonstrate how to program a SPIKE robot to execute a faster and more accurate turn. You can press the right button to see how the robot executes a 90-degree turn with the aid of acceleration, to improve accuracy. After that, you can press the left button to see the robot turn fast with to acceleration, overshoot the target angle, and then return slowly back to it. That way, the robot reaches the target angle faster and more accurately. This method is useful for larger turns when time is limited. For smaller turns, it may cause the opposite effect. Since the robot, this program was made for, is a little tilted, the angle it is programmed to turn to is changed a little to compensate for the tilt.

This program was intended for and tested on the Gazon robot

How to open?

Programs with extension *.llsp could be opened with version 2 of the LEGO Scratch Word Blocks software. It is also known as 'SPIKE Legacy'. You can download it from LEGO website. You can also visit to use it online Note that this programs are incompatible with version 3 of the software.

  • #od5cs7
  • 10 Aug 2022

Courses and lessons with this Program

This Program is used in the following courses and lessons

Image for LEGO Education SPIKE Prime Programming for competition with Word Blocks
  • 40
  • 188:21
  • 19
Image for Motion Sensor - fast turn
  • 2
  • 0
  • 1
  • 3d_rotation 1