Programs -
-Filters:

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

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 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 forward align with Color Sensors from LEGO Education SPIKE Prime
In this program we demonstrate how to program a SPIKE robot to align to а line with the aid of two color sensors. Make sure the line is big enough for the sensor to detect it. For this program to work, the sensors must be placed in front of the wheels.
This program was intended for and tested on the Gazon robot
- #uvj9mr
- 10 Aug 2022

Scratch (Word Blocks) program for backward align with Color Sensors from LEGO Education SPIKE Prime
In this program we demonstrate how to program a SPIKE robot to align to а line with the aid of two color sensors while moving backward. Make sure the line is big enough for the sensor to detect it. For this program to work, the sensors must be placed in front of the wheels.
This program was intended for and tested on the Gazon robot
- #oq6j5c
- 10 Aug 2022

Scratch (Word Blocks) program for follow a line and stop at an 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 an intersection with 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
- #svy2oz
- 10 Aug 2022

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 for follow and align with Color Sensors from LEGO Education SPIKE Prime
In this program, we demonstrate how to follow a line with a SPIKE robot and then align to that line. That way the robot can position itself at specific distances on a predetermined path.
This program was intended for and tested on the Gazon robot
- #xr01bk
- 10 Aug 2022

Program for Calix - LEGO SPIKE Prime carrying robot - LSAv3.4.5.llsp3
This program is designed for the Calix – LEGO SPIKE Prime carrying robot. Calix is built to carry an object while autonomously following a black line.
This concept is one of the first things many people imagine when thinking about robotics—a robot that can assist at home!
Calix is a simple, first attempt at turning that idea into reality. It can transport light objects from one room to another by following a predefined black line.
The program operates as follows: First, it waits for you to place an object on the robot and press either the left or right hub button. Once triggered, the robot lifts the object slightly and begins following the black line. It continues along the path until it detects the same color consistently for more than 3 seconds—this is how it knows it has reached the end of the line. At that point, the robot raises the object higher and waits, holding the item securely in place.
- #p6ldyr
- 04 Aug 2020
Follow a black line block
- #3ln5m6
- 10 Dec 2013
Quickly follow black line with one sensor
- #m35vh8
- 20 Jul 2013