Have you ever needed your robot to do two things at once? That's called a parallel thread. Here's how to do it in SPIKE Prime using Word Blocks software.

To access the full video please subscribe to FLLCasts.com
- #2211
- 24 Jul 2024
That's done by adding a second block from the orange Events section.
If you have two starting blocks, the blocks under each will execute simultaneously and independently. Be careful not to give conflicting commands to the robot, such as moving forward and backward at the same time.
Additionally, there are other starting blocks besides the when program starts block. These are used for specific purposes, usually involving sensors. Choose the best one for your task. For example, you can make the robot respond when a force sensor is pressed using the force sensor starting block.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

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 4 - Beast of burden
Introduction
What is a beast of burden? Which of those can you think of?
This lesson draws attention to the creatures that made all those mega-structures in the ancient and medieval world: the beasts of burden. Depending on where they lived, these could be horses, mules, donkeys, camels, goats, or oxen. People used them regularly in their work to carry heavy loads, such as plows, wood, or stone.
These animals were also instrumental in building the structures we discuss at this level, transporting wood for boats and stone for labyrinths and pyramids. Nowadays, we don't need to use animals for these tasks because we have heavy machinery and robots!
- 2
- 5
- 9
- 3d_rotation 1