How to use the force sensor pressure block in LEGO SPIKE Prime Word Blocks software Pro Preview

This is one of the first sensor blocks you'll learn! Here's how we use it!

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #2289
  • 29 Jul 2024

The force sensor pressure is the sixth block in the Sensors palette.

content picture

Unlike the blocks from other sections, all those from the Sensors section cannot be directly connected to the program. They are used to modify another block or its values as needed. These blocks can be placed in any blocks that have a space of the correct shape.


The force sensor pressure block has two settings.


The first setting is the port where the sensor is connected, so make sure it's correct.


The second setting is the measurement units. By default, it's set to percent, so a sensor that isn't pressed will give 0%, and if you press it fully, it will give 100%. This is very useful for other things that use percentages, such as the example in the picture above where the motor speed is controlled by the sensor since they are both in percent!


You can also change the setting from percentages to newtons, which is the standard measurement unit for force.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for  Level B1 - Carnival - Robotics with LEGO SPIKE Prime
  • 23
  • 1:03
  • 62
Image for Lesson 2 - Spinning ride
  • 3
  • 6
  • 10
  • 3d_rotation 1