Video tutorials -
Filters:
Teacher's Notes: Music Box
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:

- #2505
- 16 Sep 2025
Teacher's Notes: Musical Introduction
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:


- #2502
- 16 Sep 2025
How to use the Set Volume To Block in LEGO SPIKE Prime Word Blocks Software
A big part of a sound is its volume. Here's how to change it!
- #2501
- 16 Sep 2025
How to use the Force Sensor Pressure Block in LEGO SPIKE Prime Word Blocks Software
The force sensor can detect how hard it’s being pressed! Here’s how:
- #2500
- 16 Sep 2025
How to use the Start Playing Beep Block in LEGO SPIKE Prime Word Blocks Software
Did you know that your hub can play a sound? Here's how!
- #2499
- 16 Sep 2025
How to use the Play Beep for Seconds Block in LEGO SPIKE Prime Word Blocks Software
Did you know that your hub can play a sound? Here's how!
- #2497
- 16 Sep 2025
How to translate musical notes into SPIKE Prime software
Have you ever wanted to program your favorite music on SPIKE Prime? Here's how!
- #2496
- 16 Sep 2025
How to use the Division Block in LEGO SPIKE Prime Word Blocks Software
You already know how to do division in mathematics - here’s how to do it in SPIKE Prime!
- #2495
- 16 Sep 2025
How to use the Motor Position Block in LEGO SPIKE Prime Word Blocks Software
Did you know you can use the motors as sensors? Here's how!
- #2494
- 16 Sep 2025
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
Line Following: Making It Smoother with SPIKE Prime
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.
- #2464
- 18 Jul 2025
Three or More State Programs with SPIKE Prime
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.
- #2463
- 18 Jul 2025
Line Following with SPIKE Prime 101
When you hear the task “program the robot to follow a black line,” you’ll most likely imagine a program that works like this:
- If the color sensor detects black (meaning the robot is over the line), the robot moves forward.
- If the color sensor detects a different color (meaning the robot is not over the line), the robot turns toward the line.
- #2462
- 18 Jul 2025
Planning the program
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.

- #2302
- 28 Oct 2024
PID line following
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.

- #2296
- 28 Oct 2024
Wheel condition WARNING
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:

- #2249
- 28 Oct 2024
Wobble Line Following
This is the most basic line-following method, commonly known as the "ducky" line-following method.
- #2288
- 02 Aug 2024
Simple Line Following with SPIKE Prime
Line following is a very common competition category. Here's how you can get started with it!
- #2316
- 31 Jul 2024