How to use the distance sensor event block in LEGO SPIKE Prime Word Blocks software Pro Preview

Now that you know how the distance sensor works, how do we use it?

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2219
  • 24 Jul 2024

The distance sensor event block is the fourth in the Events section.

content picture

The block has four settings:

  • The first setting specifies the port where the sensor is connected to the hub.
  • The second setting determines when you want the block to activate. It can trigger if something is closer than, further than, or exactly at a certain distance.
  • The third setting is the specific distance you want to measure.
  • The fourth setting is the unit of measurement for the distance. You can set it to percentages, centimeters, or inches.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level A2 - History and Mythology - Robotics with LEGO SPIKE Prime
  • 28
  • 0:00
  • 65
Image for Lesson 5 - Watchtower
  • 3
  • 4
  • 8
  • 3d_rotation 1