In this video tutorial we follow a line 10 consecutive times. In this way we demonstrate whats the consistency that you could expect from the robot when following a line with a multi-states algorithm.
- #1936
- 30 Jun 2022
- 3:12
- LEGO Education SPIKE Prime
- Line follow, 10 out of 10, Line follow, LEGO Education SPIKE App Word Blocks 2, Scratch, Programming, Sensors, Light and Color Sensor
How to use this tutorial?
Download the program and check how your robot behaves. Is it more or less consistent. This will help you set the expectations of what you can expect from the robot and will generally be much more fun.
English
In this video tutorial we will do a ten out of ten runs on how to follow a line with a multi-state program. We use LEGO Education SPIKE Prime. Let's see how it works. Ten runs. How consistent is the robot? We follow the line, we take the turn and this is where we stop. These are 10 seconds for our robot. Let's try again. We'll do ten of those "follow the line".
So it's almost at the same place.
10 seconds. A lot of turns. There could be a lot of slips and wheels - they could slip on the map. But at the end we arrived at almost the same place. Here we are at exactly a different place. The point here, and what I'm trying to emphasize on is that if we just rely on the timer to follow the line, it might not be the best idea because when we rely on time, the robot could arrive at different places. We should always rely on something else, like another event that could happen. For example, we detect a different line with the other sensor and in this way we say we are at the exact location. It's not that we've waited some time and we hope we are there. We specifically wait for events to occur. Let's do a couple of more of those. Start, follow third right here on the left turn. We kind of get to the same place, but just relying on the timer. And in some of the next tutorials we'll demonstrate how you can wait for another event to occur. How you can, for example, stop when you detect the second black line. And this way you know exactly where you are on the field, which is priceless, because that's what's difficult on the competition. It's difficult to know with your robot where you are on the field. If you can figure this out, the rest is quite easy. So how can we know where we are on the field? Again, turn,
download, experiment and see you in the next tutorial.
Курсове и занятия включващи този Урок
Този Урок е използван в следните курсове и занятия.
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
Color Sensor - Follow a line with a multiple states algorithm
On the topic of following lines with a robot there is a way to make the robot follow the line a little more precisely. This method is called "Multi-states" program. Or at least we call it like this. In this tutorial you will see how we program 5 state for the robot line following program. This could be particularly important with FIRST LEGO League competitions where we must build consistent and reliable robots.
- 2
- 0
- 1
- 3d_rotation 1