

How to use the Motor Speed Block in LEGO SPIKE Prime Word Blocks
Did you know you can use the motors as sensors? Here's how!
- #2483
- 16 Sep 2025
Did you know you can use the motors as sensors? Here's how!
Sites are outlined on the mat wireframe.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
Sand is considered completely cleared when the pull activator is past the line on the mat.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
Technicians may open ore blocks by hand to reveal the fossilized artifact when completely in home (see Mission 14).
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
Your team’s minecart must pass completely through the mineshaft entry to score points for this mission.
It is not possible to earn the bonus if there is no opposing team or in remote competitions.
No Equipment Constraint: The mission model cannot earn points if it is touching equipment at the end of the match.
So far, we’ve explored a line-following algorithm commonly referred to as duck walking. Let’s take a closer look at how it works and consider how many distinct states it actually involves.
In more advanced robotics programming, your robot may need to respond in three or more different ways depending on sensor input. Up to this point, we've created programs with only two possible outcomes using a switch block: a condition is checked, and the robot performs one action or the other based on the result.
But what if the robot needs more than just two responses? To handle this, we can use multiple conditions—often implemented with nested switch blocks or structured decision chains. In this section, we’ll explore how to build programs that go beyond binary choices and enable your robot to react intelligently to more complex environments.
When you hear the task “program the robot to follow a black line,” you’ll most likely imagine a program that works like this:
In today's lesson, we selected a field that introduces a new challenge: it includes a skip section at a turn. To complete today's challenge, you can either modify the program provided in previous lessons or create a new one entirely on your own.
The next level of difficulty introduces self-crossing paths and bending lines. At this stage, we’ll create our first and simplest memory-based program.
For this challenge, it is assumed that the field layout is unknown before the competition, making it impossible to hardcode a specific sequence of turns.
The main difference between this field and the easier one is the addition of crossroads. Crossroads introduce a new level of difficulty that can be overcome by programming the robot to remember the paths it has taken, although there are simpler and more elegant solutions.
For this challenge, it is assumed that the field layout is unknown before the competition, making it impossible to hardcode a specific sequence of turns.
The main takeaways from today's lesson are how to alternate between following a line and performing other actions needed to complete the basic level of the line-following challenge, and how to plan your program ahead of time. Today's program will serve as a foundation to build upon for solving more advanced line-following challenges.
Then the problem lies in other external factors.
PID is the most popular method for programming line-following robots. It’s a bit complex, so this tutorial is longer, as we’ll break it down into steps and explain each element of the equation.
This approach to programming line-following robots is not ideal for beginners. Attempting to learn this as a first step in competition preparation may give a misleading impression of the competition's complexity and could discourage students from learning the necessary skills to compete in this category.
Wheel condition plays a crucial role in the performance of any robot, so it’s common practice to maintain your robot before testing and especially before a competition. Here are some steps you can take to ensure that any variations in the robot’s performance aren’t due to the wheels:
Securely dock the ship that contains the samples and artifacts your team has collected.