How to use the pick random block in LEGO SPIKE Prime Word Blocks software
Sometimes we don't need the robot to do the same and predictable things, but something random and unexpected! Here's how to do it!
- #2047
- 01 Aug 2022
Sometimes we don't need the robot to do the same and predictable things, but something random and unexpected! Here's how to do it!
This is one of the last tutorials in the LEGO Education SPIKE Prime programming for Competitions course and it demonstrates what we've all been waiting for - how to reach a mission model from base in a reliable and consistent way when the mission model is on the other end of the field. Naturally what we use are all the different concepts that we've learned in the course and the tutorial is more advanced than the other so if anything is not clear take a look also at the different tutorials an concepts in the course.
When aligning backward the robot is still very consistent. It does not matter the direction in which we align. What you will learn from this tutorial is what is the consistency and reliability of the robot that you could expect.
Instead of aligning forward as in the previous tutorial we felt there is a need to demonstrate how we could align backward when moving with the robot. This is not a rare case. The attachments of the robot are generally at the front of the robot and especially during FIRST LEGO League competitions the robot must move backward very often. It is helpful to have in your toolbox the ability to align backward with the robot.
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.
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.
In this video tutorial we run the robot for 10 times and we demonstrate the consistency of the robot behavior with our advanced algorithm for smooth line following. What you will get from it is an understanding and demonstration of what can you expect from the robot.
This is the first video tutorial from the LEGO Education SPIKE Prime programming course in which we use a sensor, and we've selected to use the motion sensor. The Motion sensor allows us to detect how the robot turns in a 3-dimensional space-time continuum, or, to put it simply, we use it to move straight with the robot. That's it. We want to move straight - we use a sensor, and the Motion Sensor is a good choice.
In this 10 out of 10 tutorial we demonstrate the accuracy of the robot when we use acceleration in its movements. The robot has not sensors attached to it and it is not making use of it's internal sensors. The goal of the tutorial is to give you the understanding and to make a demonstration of how difficult it is to consistently reach a mission model without the use of sensor even when we use acceleration.
One of the important blocks for making an autonomous robot is the infinite motion block. In combination with other blocks, it allows us a lot of control over the movement of the robot. Here's how this works!
Sometimes it is useful for us to have the robot wait before it goes so that we can stand back and not disturb it or even to take a picture of it. This is how we can program this!
Here's one way to program with a force sensor!
How do you perceive the world? And how can a robot do it? Here is the first way!
We already learned how to use the start sound block in this tutorial, now let's see how to make the sound play all the way!
We already learned how to use the block to turn on the controller display in this tutorial. Now we will find out how to do this for a specified amount of time!
Through SPIKE Prime software we can play all kinds of sounds! Here's how to do it.
This is how we can draw whatever we want on our robot's hub display!
Sometimes we want a part to move more, sometimes less. Here are the pins that can help with that!
Have you ever wanted your robot to move as fast as possible? Or slower? Here's how!
Have you ever needed to make an arc turn? Do you know what an arc turn is? Let's find out!
Here we will learn our first turn, namely a spot turn!
This lesson teaches lighter and more interesting material for students and combined with the fun blocks, they are often distracted. Here are some guidelines that may help you.
Sometimes we make a mistake in starting the robot and we have to stop it before its program runs out. Here's how to do it with a SPIKE Prime controller.