

How to use Absolute Value in LEGO SPIKE Prime Word Blocks Software
It is part of the Functions block, but what does it do?
- #2509
- 16 Sep 2025
This page shows all the robotics tutorials listed without specific grouping. Each tutorial is short, on specific topic, has a video. Tutorials are structured in sequence in Courses.
It is part of the Functions block, but what does it do?
Due to the long construction, you need to be careful with time in this lesson. Don’t let the students spend too much time building. If you think you can manage it, you may let them find their own sheet music and adapt it, but we recommend sticking to the short section from Ode to Joy as shown in the tutorial. This melody also serves as preparation for the next lesson, where a ready melody will again be needed. Here’s what the program looks like:
Because this is the musical level, it’s important to set some rules for the sounds the robots make. Students often don’t realize how loud it can get, so remind them to keep the volume lower so they can hear the hubs, and to stop their programs in time, since continuous sounds can become quite loud.
In this lesson, students will learn many of the key concepts needed for the rest of the course. That’s why there is little construction and mainly exploration with a single force sensor. Make sure they understand the difference between pitch and volume. Although there are many new blocks introduced, they are mostly simple and similar to previous ones. These blocks will also be used in many future lessons, giving students plenty of time to become familiar with them. By the end of the lesson, students should have tried the following two programs:
A big part of a sound is its volume. Here's how to change it!
The force sensor can detect how hard it’s being pressed! Here’s how:
Did you know that your hub can play a sound? Here's how!
Did you know that your hub can play a sound? Here's how!
Have you ever wanted to program your favorite music on SPIKE Prime? Here's how!
You already know how to do division in mathematics - here’s how to do it in SPIKE Prime!
Did you know you can use the motors as sensors? Here's how!
Did you know you can use the motors as sensors? Here's how!
In this tutorial, we share a tip for organizing robot attachments in the FIRST LEGO League challenge. By designing attachments to hook onto the table edge, you can keep them close at hand for quick swaps, saving time and reducing mistakes.
Options include building hooks into the attachment design or using small separate hooks. This method is used by many teams and is a practical way to stay organized during competitions.
In this video tutorial, we demonstrate a full run for the FIRST LEGO League 2024-2025 SUBMERGED challenge, completing all missions in a single sequence. Each mission is shown individually beforehand, with close-up views of how the attachments work and the principles behind their design. All attachments are pinless, making them quick to change during the run, though aligning and loading the robot still requires practice. The strategy involves moving from one base to the other while accomplishing as many missions as possible, including retrying those close to base when needed.
While the complete run takes longer than the official 2.5 minutes, the focus here is on demonstrating reliability, consistency, and the trade-offs between time and scoring points. In some cases, missions are skipped to focus on higher-value tasks, but in this run, we aim to complete them all. The result is a strong performance that comes close to the maximum possible score.
The programming process for accomplishing M01 Coral Nursery, M02 Shark, M03 Coral Reef, and M04 Scuba Diver of the FIRST LEGO League 2024-2025 SUBMERGED Challenge is straightforward, despite covering multiple missions in one run. Each mission is accomplished with a simple and reliable approach that minimizes the impact on overall run accuracy.
The code consists mainly of movement blocks and gyro turns, allowing for consistent navigation between mission models. By keeping the programming uncomplicated, the robot can perform pushing, collecting, and delivering tasks efficiently without introducing unnecessary complexity, ensuring a smooth and dependable multi-mission run.
The programming process for accomplishing M01 Coral Nursery and M03 Coral Reef of the FIRST LEGO League 2024-2025 SUBMERGED Challenge is straightforward, focusing on controlled movement and stability. The motor-powered attachment lifts the coral tree smoothly to the coral tree support while also delivering reef segments outside the launch area.
The robot moves forward to position itself, raises the coral tree, and then returns to base. To ensure the reef segments remain secure during the run, the program uses slow acceleration and reduced speed when needed. This simple yet reliable approach keeps the sequence easy to execute while maintaining consistency in performance.
The programming process for accomplishing M06 Raise the Mast and M07 Kraken’s Treasure of the FIRST LEGO League 2024-2025 SUBMERGED Challenge is streamlined, focusing on controlled movement and precision. The design of the attachment ensures that the mast is lifted to the correct height while the treasure chest is securely captured.
The code uses simple maneuvering to reach the mission model, but the return path requires special handling. If the robot makes a sharp turn, the chest can be lost, so the program uses light steering to maintain stability while returning to base. This combination of straightforward navigation and careful return control ensures consistent success for both missions in a single run.
The programming process for accomplishing M05 Angler Fish, M09 Unexpected Encounter, M14 Sample Collection, M12 Feed the Whale, and M03 Coral Reef of the FIRST LEGO League 2024-2025 SUBMERGED Challenge is streamlined, making it easier to manage even in a large multi-mission run. The design of the two-part attachment system significantly influences how the robot moves, simplifying the code and reducing complexity.
The program is surprisingly simple for such a comprehensive run, with the robot performing a series of maneuvers to collect, deliver, and push mission elements. For maximum accuracy, it uses gyro turns, slow acceleration, and reduced speed in trickier spots to maintain control. By letting the attachments guide much of the interaction, the programming remains clean and reliable, enabling the robot to handle multiple scoring tasks efficiently in a single trip.
This programming tutorial focuses on accomplishing M8 Artificial Habitat of the FIRST LEGO League 2024-2025 SUBMERGED Challenge using the Nautiq box robot (a LEGO Education SPIKE Prime robot).
The sequence is optimized to position all four crabs upright with their yellow bases touching the mat for maximum points. The code uses straightforward but highly accurate movement commands, ensuring the robot engages and adjusts the mission model with precision. This dedicated program minimizes errors and allows for consistent high-scoring runs, combining efficient programming with the attachment’s reliable design.
Тhe programming process is streamlined, making it more accessible even for beginners. The design of the attachment significantly influences how the robot moves, simplifying the code and reducing complexity.
The program is way easier due to the form of the attachment that makes the first movement just forward to complete M13 Change Shipping Lanes, and then moving backwards towards M09 Unexpected Encounter. This approach eliminates the need for complex directional adjustments at the start, allowing the programmer to focus on precise positioning later in the sequence. By letting the attachment dictate the natural forward motion initially, the programming logic becomes shorter, cleaner, and easier to debug. As a result, both the initial movement and the reverse action toward M09 can be executed with minimal code changes, ensuring faster development and more reliable performance. Along the way, the robot also partially accomplishes M12 Feed the Whale.
This video tutorial focuses on accomplishing M05 Angler Fish, M09 Unexpected Encounter, collecting samples for M14 Sample Collection, 3 Krill for M12 Feed the Whale, and Reef Segments for M03 Coral Reef of the FIRST LEGO League 2024-2025 SUBMERGED Challenge using the Nautiq box robot (a LEGO Education SPIKE Prime robot). The run achieves a perfect 10 out of 10 score across these missions in one continuous sequence.
The robot collects and delivers samples, gathers krill and reef segments, pushes the Unknown Creature into the Cold Seep, and engages mission models with precision. The path is optimized for efficiency, combining multiple scoring actions with minimal wasted movement. You can watch the full explaining tutorial here.
This video tutorial focuses on solving M05, M09, collecting samples for M14, 3 Krill for M12, and Reef Segments for M03 of the FIRST LEGO League 2024-2025 SUBMERGED Challenge using Nautiq box robot (a LEGO Education SPIKE Prime robot).
This video tutorial focuses on accomplishing M8 Artificial Habitat of the FIRST LEGO League 2024-2025 SUBMERGED Challenge using the Nautiq box robot (a LEGO Education SPIKE Prime robot). The run uses a simple active pinless attachment mounted at the front of the robot for precise engagement with the mission model.
The goal is a perfect 10 out of 10 runs by positioning all four crabs upright with their yellow bases touching the mat. You can find the full explaining tutorial here.