Here's one way to program using a force sensor:

To access the full video please subscribe to FLLCasts.com
- #2034
- 01 Jul 2022
The block is located in the Events section, and as it marks the beginning of a new program section, no blocks can go before it.
By default, this block plays the ones after it when the sensor is pressed. This means that the program will not start until the force sensor is activated.
Its first setting is the port, where we must enter the port our sensor is connected to.
For the more advanced, the second setting can change the release condition of the blocks after it from pressed to hard-pressed, released, pressure changed.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Level A1 - Space Adventure - Robotics with LEGO SPIKE Prime
This is the first level of the LEGO Robotics Curriculum for second, third, and fourth-grade students.
A "space adventure" but with robots. Different robot structures are built in Level A1. The motors are controlled so that the robots perform precise movements around the "Earth", "Moon" and "Sun". We use the force sensor to overcome various obstacles we bump into. We learn interesting facts about the solar system and space vehicles.
- 65
- 30:30
- 76

Lesson 6 - Launching into space
In the next lesson we usually do a graduation. Write down your impressions about the students and the reasons why they have the grades you gave them.
- 7
- 4
- 9
- 3d_rotation 1

Level A2 - History and Mythology - Robotics with LEGO SPIKE Prime
This is the second level of the LEGO Robotics Curriculum for second, third, and fourth-grade students.
In this level, we will focus on History and Mythology, with each lesson covering a different aspect of the ancient world. You will learn about a new distance sensor that uses ultrasound to help a watchtower robot detect invaders. We will also introduce new concepts such as loops, degrees, and a third motor. Additionally, you will learn how robots can perform two different tasks simultaneously.
- 28
- 0:00
- 65

Lesson 1 - Ancient Boats
Introduction
In this lesson, we will learn how the ancient people managed to use the wind to navigate the seas, and we will build a boat robot!
People have used water for transportation for thousands of years. It was useful when you go downstream on a river or a sea current.
What do you think they did to go upstream?
They needed to use people with oars to fight against the current, which was really tiring and couldn't work for a long distance. So, people invented the first sailboats! They used the power of wind, which allowed them to go further faster, and they didn't need so many people to move them. The first record of a sailboat is a drawing on a vase in Egypt around 5500 years ago. However, sailboats were probably invented a long time before that.
The Phoenicians were the most famous naval people of the ancient Mediterranean world. They used their sailing boats to discover and trade with lands throughout the entire Mediterranean Sea, and even beyond, reaching as far as the British Isles. They became a massive trading empire and invented an alphabet, which was later the basis for the Greek and Latin alphabets we still use today!
Another people who mastered sailing around the same time were the natives of southeast Asia, who managed to sail all around the Pacific Ocean and reach even the furthest islands there.
- 7
- 5
- 9
- 3d_rotation 1