Scratch (Word Blocks) program to accurately turn with LEGO Education SPIKE Prime

In this program we demonstrate how to use the built-in motion sensor of the SPIKE brick to program the robot to turn 90 degrees. Due to the chance of overshooting the targeted angle, the robot is programmed to stop turning if it reaches or goes above 90 degrees. 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

Download
  • #jnb4f3
  • 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 - basic turn
  • 1
  • 0
  • 1
  • 3d_rotation 1