Lesson 1, Part 4: Force Sensor

In this lesson, we’ll learn about and use the LEGO Spike Prime Force Sensor and Gyro Sensor. You’ll use block coding to train your robot to respond to signals based on touch, movement, and tilt.

Table of contents

  1. Video
  2. Quiz

Video

Quiz

If you want to create a program that makes a sound when a robot is picked up, which sensor would you use? The Distance Sensor The Gyro Sensor. The Color Sensor. The Force Sensor. What is the purpose of the “when released” event block for the Force Sensor? To tell the motor to spin faster or slower. To play a sound when the sensor is not being pressed. To make the program stop when the pressure on the sensor is gone. To tell the motor to turn 90 degrees. What is the key difference between using a “start motor” block and a “run for 1 rotation” block? The “start motor” block moves the motor for a specific time, while “run for” makes it move forever. The “start motor” block can only be used with the Gyro Sensor, but “run for” can be used with any sensor. The “start motor” block makes the motor run continuously, while the “run for” block makes it run for a specific amount of time or rotation. The “start motor” block can only be used with the Force Sensor, while “run for” can only be used with the Gyro Sensor. A program uses a "when tilted" block to play a sound. If you want the sound to play when the robot is turned around a full circle (360°), what would you do? Change the event block to "when pressed". Use a "run for" block with the motor. Change the number of degrees in the "when tilted" block. Change the sound to a longer sound. A robot has a program that makes a motor spin when the Force Sensor is pressed. What kind of blocks would be needed to make the motor spin only while the sensor is being held down? A "when pressed" block and a "run for" block. A "start sound" block and a "when tilted" block. A "start motor" block and a "stop motor" block. A "when pressed" event block with a "start motor" block, and a "when released" event block with a "stop motor" block.