Content for Line follow
Scratch (Word Blocks) program for follow a line and stop at a second intersection with Color Sensors from LEGO Education SPIKE Prime
In this program, we demonstrate how to program a SPIKE robot to follow a line with the aid of one color sensor and detect and stop at the second intersection with the aid of another color sensor. Make sure the line is big enough for the sensor to detect it and react to it. For some thinner lines, the speed of the robot can be lowered, but if that does not help, the program can be easily adapted to work with reflected light intensity.
This program was intended for and tested on the Gazon robot
- #5tjgvi
- 10 Aug 2022
Scratch (Word Blocks) program with an a advanced algorithm for smooth line follow with Color Sensor from LEGO Education SPIKE Prime
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of a color sensor. In this program, we use the sensor value to calculate a number to feed in the "start moving" command. The numbers in this program depend highly on the size of the wheels of the robot, the distance between the wheels, the color sensor reflected light range, the wheels friction, and the speed at which the robot moves. The numbers in the program must be adjusted for every case, and are in no meaning optimal to use as is, in other projects.
This program was intended for and tested on the Gazon robot
- #zlb4ke
- 10 Aug 2022
Scratch (Word Blocks) program for a multiple states algorith for line follow with Color Sensor from LEGO Education SPIKE Prime
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of a color sensor. Make sure the line is big enough for the sensor to detect it and react to it. since we are measuring reflected light rather than the color of the line, we can and have implemented multiple states line following.
This program was intended for and tested on the Gazon robot
- #nkyhzr
- 10 Aug 2022
Scratch (Word Blocks) program for simple (2 states) line follow with Color Sensor from LEGO Education SPIKE Prime
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of a color sensor. Make sure the line is big enough for the sensor to detect it and react to it. For some thinner lines, the speed of the robot can be lowered, but if that does not help, the program can be easily adapted to work with reflected light intensity.
This program was intended for and tested on the Gazon robot
- #30mt5i
- 10 Aug 2022
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
FLL 2021: Use of motion and color sensors for a three-part mission - How to accomplish the Train Tracks mission
This tutorial explains the use of motion and light/color sensors to accomplish a complex mission split into three parts. It gets into detail about how we keep a straight line with the motion sensor, follow a line with the color sensors, and transition between different parts of the program by aligning and detecting lines with the sensor. The goal is to get to a reliable and consistent behavior of the robot. On top of that, it is configurable, as we've left a few parameters that could be set to configure the behavior for a specific robot, venue, lighting, battery level, and wheels friction.
- #2089
- 21 Feb 2023
FLL 2021: Completely Perfect, 100% consistent, 10 out of 10, auto-correct behavior for Train Tracks
This is a recording of a completely perfect, 10 out of 10 accomplishment of a two-part mission - Train tracks, from the FIRST LEGO League 2021-2022 Cargo Connect competition. Due to the proper use of motion and color/light sensors, the robot is 100% consistent and reliable for a non-trivial mission. Even when the robot makes a mistake, it auto-corrects and compensates for this mistake.
- #2090
- 21 Feb 2023
LEGO MINDSTORMS Robot Inventor Programming for competition with Word Blocks
To successfully advance at competitions we need to understand two concepts - how to reliably and consistently navigate the field and position the robot exactly where we need it to be on every run, and how to build attachments that would accomplish a mission model 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 Mindstorms Robot Inventor. "Challenge" competition for 9-16 years old.
The goal of this course is to help you learn to program LEGO Robots using Scratch and make them behave consistently and reliably during competitions. As a language we use LEGO MINDSTORMS 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 - for example, how to follow a line fast, slow, in a smooth way, with 5 states. Also, how to align to lines, how to do double align, how to keep a straight line with a motion sensor.
Unfortunately, LEGO discontinued the robot series during the making of this course which is why it's kind of shortish. You could use the SPIKE Prime course for a more in-depth analysis.
- 8
- 38:50
- 5
WRO 2021 Junior: Slaimi - a post season WRO competition solution robot
This is the robot that we use to demonstrate a solution for competition. This is a Post season solution. We never release any solutions during the season as this will have a negative impact on the competition. But after the competition we try to make a review and to see how we could have accomplish it. Our goal is to be better for next year.
This robot is quite powerful. The attachment mechanism on the front is one of a kind as it can do several things with a single motor: it can lift, it can unlock, it can grab. All of this thanks to the unique mechanism of gears
- #1601
- 18 Jan 2023
FLL 2021: Scratch (Word Blocks) program to solve the Cargo Connect M09 Train Tracks mission with sensors
The program uses the light and color sensor along with the motion sensor to accomplish the mission. It contains a few interesting tricks on detecting lines and configuring the behavior of the robot with specific params.
- #j8zonx
- 21 Feb 2023
FIRST LEGO League 2021-2022 Cargo Connect solutions and review with LEGO Education SPIKE Prime
In this course, we demonstrate and explain example solutions for the FIRST LEGO League 2021-2022 Cargo Connect competition. Just like every year, we share solutions only after the season is over. In this course, you will find examples and principles of building attachments and will learn how to program consistent and reliable robots for each mission. You can follow the course, and as you go through each mission, try to replicate the solutions to understand the programs and explanations. Upon completion of the course, you will have many new ideas about how to approach the missions in every FLL robotics competition and how to help your team score more points.
Before starting this course, we suggest you go through the FIRST LEGO League robot game guide
- 55
- 181:18
- 34
Scratch (Word Blocks) program to solve the Cargo Connect M10 Sorting Center mission
We use motion sensor to move straight with the LEGO Education SPIKE Prime robot and to control the configurable attachment needed for the sorting mission from FIRST LEGO League 2021-2022 Cargo Connect challenge.
- #lgu504
- 28 Feb 2023
The power of State Machines. Gapped and Crossed Line Following with LEGO Mindstorms EV3
There comes a time when you need to program the robot to "follow a line, but if another sensor detects something you would like to stop, do some work, and then continue following the line". This is applicable to competition robots as it is applicable to real-life robots.
There comes the State Machine Pattern. An advanced and very powerful concept that allows you to easily implement complex robot behaviours with a simple, well-organized, extensible, bug-free program where the robot could be in 1,2, 10 or 100 states and you will still be able to manage the complexity of the world around the robot.
- 12
- 92:11
- 0
Gapped and Crossed Line Following with LEGO Mindstorms. Part 1. Challenge. Use of State Machines
We start a course for following a line with crosses and gaps. This is a challenge that one of the users at FLLCasts.com was trying to accomplish and asked us for advice. We present the whole challenge to you step-by-step. But first, let's also see the whole run of the line following algorithm. With this course, we also do an introduction of using State Machine as a programming pattern.
- #204
- 06 Jan 2016
Gapped & Crossed Line Following. Part 2. Strategy
Looking at the field we must first think of a strategy of solving this line following problem. There are rules that the robot must follow and these rules should be programmed in the robot.
- #205
- 13 Jan 2016
Gapped & Crossed Line Following. Part 3. Strategy and Robot
We list the number of decisions that the robot is making while following the line. Then, we group them and decide on the number of sensors to be used.
- #206
- 20 Jan 2016
Gapped & Crossed Line Following. Part 4. Follow to Gap
We follow a line. We start from the Smooth Proportional Line Following program and modify it a little for this program. We follow the line with the middle sensor attached on port 2.
- #207
- 03 Feb 2016
Gapped & Crossed Line Following. Part 5. Detect Gap
It's inevitable. While following this gapped line we would reach a gap. The robot must somehow understand that there is a gap and must make a decision on what to do. For detecting the gap we use the Rotation Sensor. Not the most popular, but very convenient in many cases. Check out the video.
- #208
- 10 Feb 2016
Gapped & Crossed Line Following. Part 6. Move after the Gap
We've detected the gap. It's time to move over it. This is difficult because we have to detect where the line is after the 0.1 meters gap on the line following field.
- #209
- 17 Feb 2016