This video tutorial demonstrates again the consistency of the program for aligning to a line. We run it ten time. We the robot is always coming from the left it is always arriving at the same position. When it is coming from the right it is always arriving at the same position.
- #1940
- 20 Jul 2022
- 1:38
- LEGO Education SPIKE Prime
- Align, 10 out of 10, LEGO Education SPIKE App Word Blocks 2, Scratch, Programming, Light and Color Sensor
English
In this video tutorial, we use the LEGO Education SPIKE Prime and we align with the robot and it's a ten runs tutorial in which we demonstrate the consistency of this program.
We just move forward, we reach the line and the robot aligns. Now let's try it from the left. Okay, success.
Let's also try it from the right again. The robot successfully moves slightly to the right and in this way it aligns to the line again. And you can see that it's quite consistent every time. We are basically at the same position. Now there is, of course, small differences here and there, but if we approach the line every time from the right, we arrive at the same place. If we approach it from the left, we arrived at the same place. And the program, as you remember from tutorial, the program is quite powerful because it's starting a few blocks in parallel. Download experiment with this program. See how consistent your robot is and see you in the next tutorial.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

LEGO Education SPIKE Prime Programming for competition with Word Blocks
Two concepts are important for robotics competitions - consistently navigate and position the robot exactly where we need it to be on the field, and builing attachments that would accomplish a mission once we have reached it. This course is focused on the first part. The second part is the whole FLLCasts platform, but start at FIRST LEGO League with LEGO Education SPIKE Prime. "Challenge" competition for 9-16 years old
The goal of this course is the help you learn to program LEGO Education SPIKE Prime robots to behave consistently and reliably during competitions. As a language we use LEGO Education SPIKE App Word Blocks which is based on Scratch. We look at a lot of concepts that could be used for FIRST LEGO League and World Robot Olympiad competitions - eg how to follow a line fast, slow, in a smooth way, with 5 states. Also how to align to lines, how to do double alignment, how to keep a straight line with motion sensor.
- 40
- 188:21
- 19

Forward align to a line with two sensors
The reason why you would want to watch this tutorial is because it demonstrates one of the most reliable ways to know where you are on the field and to accomplish missions successfully and this is aligning to a line. In the tutorial you will also see how a parallel program is developed and who parallel programs could be used in a meaningful way.
- 2
- 0
- 1
- 3d_rotation 1